diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-19 17:17:49 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-19 17:17:49 +0000 |
commit | 7c1bb9143e8ebb1d55589b9c4dc839fee764a55b (patch) | |
tree | df7f11dc2590871194a885afa723022a22a587ef /tests/lavfi-regression.sh | |
parent | 48c281629ab0cae5afc94d2890bd8373caf975da (diff) | |
download | ffmpeg-7c1bb9143e8ebb1d55589b9c4dc839fee764a55b.tar.gz |
Fix lavfi pixdesc test
This test verifies the pixdesc code by comparing the output with and
without a filter which should have no effect on the image. Since the
available pixel formats depend on the byte order of the machine, a
simple reference checksum is not possible.
The test originally tried to solve this by generating a reference file
on the fly. The problem with this is that the test framework expects
the reference file in the source tree, and writing to the source tree
is not allowed.
To avoid complicating the test framework, we instead provide two
reference files and select which to use based on the byte order.
Originally committed as revision 24330 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/lavfi-regression.sh')
-rwxr-xr-x | tests/lavfi-regression.sh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh index 220d43cf0e..6ce3b41bb4 100755 --- a/tests/lavfi-regression.sh +++ b/tests/lavfi-regression.sh @@ -86,21 +86,9 @@ if [ -n "$do_lavfi_pix_fmts" ]; then done fi -if [ -n "$do_lavfi_pixdesc" ]; then +if [ -n "$do_pixdesc_be" ] || [ -n "$do_pixdesc_le" ]; 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 |