Has anyone written a freebasic SuperEagle scaler?

General FreeBASIC programming questions.
lassar
Posts: 300
Joined: Jan 17, 2006 1:35
Contact:

Has anyone written a freebasic SuperEagle scaler?

Postby lassar » Aug 08, 2018 17:10

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: 6027
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Has anyone written a freebasic SuperEagle scaler?

Postby counting_pine » Aug 09, 2018 11:31

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: 6027
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Has anyone written a freebasic SuperEagle scaler?

Postby counting_pine » Aug 09, 2018 11:38

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: 300
Joined: Jan 17, 2006 1:35
Contact:

Re: Has anyone written a freebasic SuperEagle scaler?

Postby lassar » Aug 09, 2018 14:18

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: 1225
Joined: Jun 04, 2005 9:51

Re: Has anyone written a freebasic SuperEagle scaler?

Postby dafhi » Aug 11, 2018 11:03

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

Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests