Has anyone written a freebasic SuperEagle scaler?

General FreeBASIC programming questions.
Post Reply
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

Has anyone written a freebasic SuperEagle scaler?

Post by lassar »

Thought I had seen a SuperEagle pixel art scaler on freebasic.net.

But can't find it.

So has anyone written a freebasic SuperEagle scaler?
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Has anyone written a freebasic SuperEagle scaler?

Post by counting_pine »

http://games.freebasic.net/forum/index.php?topic=40.0 links to a zip file containing an hq2x library.
But it looks like the library itself has no source code available, and only works for 16-bit image buffers.
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Has anyone written a freebasic SuperEagle scaler?

Post by counting_pine »

If you want a pure FB version, then you could translate https://github.com/grom358/hqx/blob/master/src/hq2x.c - the code looks long, but it looks easy to translate - I can't see anything that would be difficult to write in FB.

EDIT: in the other thread we learned that a 64MB RGBtoYUV table is needed in the original library, but that the table lookup could easily be replaced by a function. The code for that is in https://github.com/grom358/hqx/blob/master/src/init.c.
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

Re: Has anyone written a freebasic SuperEagle scaler?

Post by lassar »

Have already written code that links to libhqx dll.

Forum page on linking to libhqx.

I am trying to scale up fonts, and hq2x distorts the fonts, and makes the them too thick.

That is why I was asking about Super Eagle.

The other scalers that seem to do a good job on fonts are 2xsal, super 2xsai, and epxc.
dafhi
Posts: 1640
Joined: Jun 04, 2005 9:51

Re: Has anyone written a freebasic SuperEagle scaler?

Post by dafhi »

this scaling stuff is neat. i zoomed an image in FastStone image viewer w/ magnifying glass and thought "huh, that looks .. did i copy clipboard correctly?"

it almost looked like i had zoomed in using a telephoto lens. not sure what to think at this point but i am impressed

[edit] - maybe it's not that special. yeah i don't think it is. just a simple bi filter looks pretty darn good. still, i'm intrigued

[edit] - magnifier shape: round (default) looks better than bilinear
Post Reply