From 172505b8bc361e4b08c75baf2d4d94e6c2ac94b9 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 18 Oct 2012 09:50:53 +0200 Subject: lavfi: add kerndeint filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 done for SOCIS 2012. --- tests/fate/avfilter.mak | 1 + tests/lavfi-regression.sh | 4 +++- tests/ref/lavfi/kerndeint | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/ref/lavfi/kerndeint (limited to 'tests') diff --git a/tests/fate/avfilter.mak b/tests/fate/avfilter.mak index e69d6a1..ad865df 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 741e716..a22331f 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 0000000..d7ace93 --- /dev/null +++ b/tests/ref/lavfi/kerndeint @@ -0,0 +1,3 @@ +argb 484893f83e13c937328f13a7c84d2f50 +yuv420p a935cce07c5287b92c6d5220361866ed +yuyv422 f549c98059ba9ce50e28204256d13b5d -- cgit v1.1