diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-09-27 09:33:37 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-09-27 09:33:37 +0000 |
commit | 40e024091d70f335337b0490c91a5e31c4874b6b (patch) | |
tree | 0fc9887c8314547780fcc0b5ebb6d1c82b3ae928 /tests | |
parent | d975e5e9b765855a085010341d9da87e62f73684 (diff) | |
download | ffmpeg-40e024091d70f335337b0490c91a5e31c4874b6b.tar.gz |
Implement a lavfitest target for testing regressions in libavfilter.
The target is disabled.
See the thread: "[PATCH] libavfilter-soc: regression test for libavfilter".
Originally committed as revision 20057 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/codec-regression.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh index e50106f55e..c00c97799f 100755 --- a/tests/codec-regression.sh +++ b/tests/codec-regression.sh @@ -660,4 +660,42 @@ for pix_fmt in $conversions ; do done fi +# libavfilter testing + +function do_lavfi() { + test_name=$1 + eval test=\$do_$test_name + vfilters=$2 + + if [ -n "$test" ] ; then + do_video_encoding ${test_name}.avi "-qscale 10" "-vcodec huffyuv -vfilters $vfilters" + fi +} + +# do_lavfi "crop" "crop=100:100:-1:-1" +# do_lavfi "crop_scale" "crop=100:100,scale=200:-1" +# do_lavfi "scale" "scale=200:200" + +# libavfilter testing + +function do_lavfi() { + test_name=$1 + eval test=\$do_$test_name + vfilters=$2 + + if [ -n "$test" ] ; then + do_video_encoding ${test_name}.avi "-qscale 10" "-vcodec huffyuv -vfilters $vfilters" + fi +} + +# example tests: +# do_lavfi "crop" "crop=100:100:-1:-1" +# do_lavfi "crop_scale" "crop=100:100,scale=200:-1" +# do_lavfi "scale" "scale=200:200" + +# TODO: add tests for +# direct rendering, +# slices +# chains with feedback loops + rm -f "$bench" "$bench2" |