summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-10-18 09:50:53 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-01-05 10:25:32 +0100
commit172505b8bc361e4b08c75baf2d4d94e6c2ac94b9 (patch)
tree8ef353e762c23a8ee88834f6387567654ad28511 /tests
parent92f1bed14cef9c3a48adf84ef838b78ba61a6d72 (diff)
lavfi: add kerndeint filter
This is a port of the kerndeint filter (libmpcodecs/vf_kerndeint) by Donal A. Graft (original avisynth plugin author), and is based on the work by Jérémy Tran <tran.jeremy.av@gmail.com> done for SOCIS 2012.
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/avfilter.mak1
-rwxr-xr-xtests/lavfi-regression.sh4
-rw-r--r--tests/ref/lavfi/kerndeint3
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/fate/avfilter.mak b/tests/fate/avfilter.mak
index e69d6a14e2..ad865df4a5 100644
--- a/tests/fate/avfilter.mak
+++ b/tests/fate/avfilter.mak
@@ -11,6 +11,7 @@ FATE_LAVFI = fate-lavfi-alphaextract_rgb \
fate-lavfi-fade \
fate-lavfi-field \
fate-lavfi-idet \
+ fate-lavfi-kerndeint \
fate-lavfi-life \
fate-lavfi-null \
fate-lavfi-overlay \
diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh
index 741e716c26..a22331fb3c 100755
--- a/tests/lavfi-regression.sh
+++ b/tests/lavfi-regression.sh
@@ -80,6 +80,7 @@ do_lavfi_pixfmts(){
test ${test%_[bl]e} = $testname || return 0
filter=$2
filter_args=$3
+ prefilter_chain=$4
showfiltfmts="$target_exec $target_path/libavfilter/filtfmts-test"
scale_exclude_fmts=${outfile}${testname}_scale_exclude_fmts
@@ -96,7 +97,7 @@ do_lavfi_pixfmts(){
pix_fmts=$(comm -12 $scale_exclude_fmts $in_fmts)
for pix_fmt in $pix_fmts; do
- do_video_filter $pix_fmt "format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt
+ do_video_filter $pix_fmt "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt
done
rm $in_fmts $scale_in_fmts $scale_out_fmts $scale_exclude_fmts
@@ -104,6 +105,7 @@ do_lavfi_pixfmts(){
# all these filters have exactly one input and exactly one output
do_lavfi_pixfmts "field" "field" "bottom"
+do_lavfi_pixfmts "kerndeint" "kerndeint" "" "tinterlace=interleave_top,"
do_lavfi_pixfmts "pixfmts_copy" "copy" ""
do_lavfi_pixfmts "pixfmts_crop" "crop" "100:100:100:100"
do_lavfi_pixfmts "pixfmts_hflip" "hflip" ""
diff --git a/tests/ref/lavfi/kerndeint b/tests/ref/lavfi/kerndeint
new file mode 100644
index 0000000000..d7ace93679
--- /dev/null
+++ b/tests/ref/lavfi/kerndeint
@@ -0,0 +1,3 @@
+argb 484893f83e13c937328f13a7c84d2f50
+yuv420p a935cce07c5287b92c6d5220361866ed
+yuyv422 f549c98059ba9ce50e28204256d13b5d