Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel scaling filter (hq2x, hq4x, scale2x...) #281

Open
Zegeri opened this issue Jun 29, 2014 · 5 comments
Open

Pixel scaling filter (hq2x, hq4x, scale2x...) #281

Zegeri opened this issue Jun 29, 2014 · 5 comments

Comments

@Zegeri
Copy link
Member

Zegeri commented Jun 29, 2014

At least one of these algorithms should be implemented as an optional post-processing filter.

@carstene1ns
Copy link
Member

👍
For reference: http://en.wikipedia.org/wiki/Image_scaling#Pixel_art_scaling_algorithms

Using most of them in a non-gpl project would mean have to reimplement them.
At least for scale2x this can be done easily and scale4x is just applied the same effect twice.
For hq2x there is a public domain implementation by byuu that can be abused (http://pastebin.com/YXpmqvW5)

The general problem is, that Player is using a feature of SDL2 that just scales the tiny image to display resolution. Scaling 320x240 to 640x480 by scale2x and then scaling to 1080px height by SDL2 will likely look bad. So this would mean to implement something in the middle.

@fdelapena fdelapena added this to the 0.3 milestone Jul 2, 2014
@Ghabry
Copy link
Member

Ghabry commented Jul 7, 2014

hq4x is LGPL

@Ghabry
Copy link
Member

Ghabry commented Jul 7, 2014

scale2x is GPL

@fdelapena fdelapena removed this from the 0.3 milestone Mar 13, 2015
@vinipsmaker
Copy link

@carstene1ns
Copy link
Member

Some comparison:
comparison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants