2015-03-28, 09:38
Nope, scaling is done by Kodi on the Pi. It scales the video to 1360x768 and sends it to the TV. The Pi has a GPU for that, and any
Your pseudocode is efficient but generates aliasing. A better way to generate the checkerboard is to keep the information from the "hidden" pixels using a low-pass filter:
- the better way is to determine which side the pixel (x,y) should be taken from using the above formula, and then to output for pixel (x,y) the value:
I(x,y)/2 + (I(x+1,y) + I(x-1,y) + I(x,y+1) + I(x,y-1))/8
This is easily coded in GLSL
Your pseudocode is efficient but generates aliasing. A better way to generate the checkerboard is to keep the information from the "hidden" pixels using a low-pass filter:
- the better way is to determine which side the pixel (x,y) should be taken from using the above formula, and then to output for pixel (x,y) the value:
I(x,y)/2 + (I(x+1,y) + I(x-1,y) + I(x,y+1) + I(x,y-1))/8
This is easily coded in GLSL