From ce2e4ae35aba69f982676996743bfcc5ea75ae51 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 7 Jul 2010 18:24:55 +0000 Subject: Add pixdesctest filter and corresponding test. Originally committed as revision 24092 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/lavfi-regression.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/lavfi-regression.sh') diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh index ebbc0f3f67..220d43cf0e 100755 --- a/tests/lavfi-regression.sh +++ b/tests/lavfi-regression.sh @@ -86,6 +86,26 @@ if [ -n "$do_lavfi_pix_fmts" ]; then done fi +if [ -n "$do_lavfi_pixdesc" ]; then + pix_fmts="$($ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO' | cut -d' ' -f2)" + + ref_file=tests/ref/lavfi/lavfi_pixdesc + rm -f $ref_file + res_file=$logfile + + for pix_fmt in $pix_fmts; do + # print to the reference logfile + logfile=$ref_file + do_video_encoding "lavfi_pixdesc-${pix_fmt}.nut" "" \ + "-vf slicify=random,format=$pix_fmt -vcodec rawvideo -pix_fmt $pix_fmt" + + # print to the result logfile + logfile=$res_file + do_video_encoding "lavfi_pixdesc-${pix_fmt}.nut" "" \ + "-vf slicify=random,format=$pix_fmt,pixdesctest -vcodec rawvideo -pix_fmt $pix_fmt" + done +fi + # TODO: add tests for # direct rendering, # chains with feedback loops -- cgit v1.2.3