summaryrefslogtreecommitdiff
path: root/tests/codec-regression.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codec-regression.sh')
-rwxr-xr-xtests/codec-regression.sh38
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"