diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-12-01 13:58:02 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-12-01 13:58:02 +0300 |
commit | f8aa76453b75bbe3ff627ea78bd24dd8c191e6fe (patch) | |
tree | a1a92f12b8083ac4dc2c622ea68268a6eca0123b /tests | |
parent | d449d1bc64248dd91aaecff68d7ddab7ba9f4b82 (diff) |
Use a function for image formats.
Originally committed as revision 7197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/regression.sh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/regression.sh b/tests/regression.sh index ee0099f02d..b23fa80463 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -172,6 +172,14 @@ do_streamed_images() do_ffmpeg_crc $file -f image2pipe -i $file } +do_image_formats() +{ + file=${outfile}libav%02d.$1 + $ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $2 $3 $file + do_ffmpeg_crc $file $3 -i $file + +} + do_audio_only() { file=${outfile}libav.$1 @@ -727,19 +735,13 @@ do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file #################### # image formats # pgm (we do not do md5 on image files yet) -file=${outfile}libav%02d.pgm -$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file -do_ffmpeg_crc $file -i $file +do_image_formats pgm # ppm (we do not do md5 on image files yet) -file=${outfile}libav%02d.ppm -$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file -do_ffmpeg_crc $file -i $file +do_image_formats ppm # jpeg (we do not do md5 on image files yet) -file=${outfile}libav%02d.jpg -$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src -flags +bitexact -dct fastint -idct simple -pix_fmt yuvj420p -f image2 $file -do_ffmpeg_crc $file -f image2 -i $file +do_image_formats jpg "-flags +bitexact -dct fastint -idct simple -pix_fmt yuvj420p" "-f image2" #################### # audio only |