Ok I got the YUV scalling to work. But the code to convert RGB to YUV in the
testoverlay.c is so slow. It’s killing my frame rate.
How can I do “fast” RGB conversion to YUV with YUV accelerated scalling?
Ok I got the YUV scalling to work. But the code to convert RGB to YUV in the
testoverlay.c is so slow. It’s killing my frame rate.
How can I do “fast” RGB conversion to YUV with YUV accelerated scalling?
Matt Wheeler wrote:
Ok I got the YUV scalling to work. But the code to convert RGB to YUV in the
testoverlay.c is so slow. It’s killing my frame rate.How can I do “fast” RGB conversion to YUV with YUV accelerated scalling?
Why don’t you just use OpenGL scaling ? Or use the glscale SDL backend
to get automatic scaling of arbitrary SDL programs to any size :
http://icps.u-strasbg.fr/~marchesin/sdl/sdl_glscale.patch
Patch your SDL, compile, install and then :
export SDL_VIDEODRIVER_GLSCALE_X=1280
export SDL_VIDEODRIVER_GLSCALE_Y=1024
And now, all SDL programs use the 1280x1024 resolution.
Stephane