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
This commit is contained in:
Stefano Sabatini
2009-09-27 09:33:37 +00:00
parent d975e5e9b7
commit 40e024091d
2 changed files with 54 additions and 2 deletions

View File

@ -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"