[FFmpeg-devel] [RFC][PATCH] Add swscale-test2

Ramiro Polla ramiro.polla
Sat Aug 28 04:41:03 CEST 2010


On Wed, Aug 25, 2010 at 12:17 PM, Ramiro Polla <ramiro.polla at gmail.com> wrote:
> 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.
>
> Opinions?

Hm, no comments? I'd like to get this reviewed then, I think it would
be a nice addition to testing libswscale.

Ramiro Polla



More information about the ffmpeg-devel mailing list