diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-07 18:24:55 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-07 18:24:55 +0000 |
commit | ce2e4ae35aba69f982676996743bfcc5ea75ae51 (patch) | |
tree | 00cb0b83d46b91a9f0cd5d33d9e261b460d249f4 /tests | |
parent | 4d508e4de54ba3d4bbcc1df3dc8a7a027006a71f (diff) | |
download | ffmpeg-ce2e4ae35aba69f982676996743bfcc5ea75ae51.tar.gz |
Add pixdesctest filter and corresponding test.
Originally committed as revision 24092 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lavfi-regression.sh | 20 |
1 files changed, 20 insertions, 0 deletions
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 |