[FFmpeg-devel] [RFC][PATCH] Add swscale-test2
Wed Aug 25 17:17:25 CEST 2010
Before this patch is torn to pieces I want to know people's opinions
on its usefulness. I find this useful because it allows to easily test
specific swscale code without having to go through ffmpeg. For example
this long line:
./libswscale/swscale-test2 -s 320x240 -pix_fmt yuva420p -g -pix_fmt
yuv420p -sws_flags bicublin+bitexact -pix_fmt yuv420p -times 1024
-scale -store -s 160x120 -pix_fmt bgr24 -scale -o output.bmp -s
320x240 -pix_fmt yuv420p -scale -ssd -crc
will generate a 320x240 yuva420p image, convert it to yuv420p 1024
times (with timer) using bicublin+bitexact, store the image (for ssd
later), scale it to 160x120 bgr24, output a bitmap so I can check the
image later, rescale to 320x240 yuv240p and compare ssd with the
previous image. Usually I just want to test one scaler though.
This could be possibly be done with avfilters (not yet though), but I
find a simple tool easier than having to go through ffmpeg.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 25416 bytes
Desc: not available
More information about the ffmpeg-devel