summaryrefslogtreecommitdiff
path: root/jni
diff options
context:
space:
mode:
authorneonloop2021-04-02 14:32:47 +0000
committerneonloop2021-04-02 14:32:47 +0000
commitc6d6e8c60dcbdf977597f6df89511b4ac4fa0a38 (patch)
treeb0f1321bbc31b07d2f29b2913d4232132c857cf1 /jni
parentab945e9e1baba5fbb691444b79b36930afb2a179 (diff)
downloadpicogpsp-c6d6e8c60dcbdf977597f6df89511b4ac4fa0a38.tar.gz
picogpsp-c6d6e8c60dcbdf977597f6df89511b4ac4fa0a38.tar.bz2
picogpsp-c6d6e8c60dcbdf977597f6df89511b4ac4fa0a38.zip
Adds a "smooth subpixel" upscaler
Thanks to drowsnug for the original implementation of a subpixel scaler. This scaler uses the core of that one, but smooths the transition in the new pixels added during scaling. If you think of the scaler as 4x integer scaling of the GBA screen, and assigning each of those pixels to a subpixel, each subpixel takes the value of 50% the pixel assigned, 25% of the pixel to its left, and 25% of the pixel to its right. With the pixels: BGRBGRBGRBGR AAAABBBBCCCC ^--- this subpixel will be 1/4 A[G] + 1/2 B[G] + 1/4 B[G] The first and last pixels in each batch are not blended with the previous / next batch to keep them sharp.
Diffstat (limited to 'jni')
0 files changed, 0 insertions, 0 deletions