From 8d3666c425602b2feb985be900c14edf82dc328a Mon Sep 17 00:00:00 2001 From: "Huang, Zhengxu" Date: Thu, 24 Aug 2017 10:16:28 +0800 Subject: libavfilter/vf_vpp: Add common filters of the qsv vpp Add common filters of the qsv vpp features including scale,denosie, deinterlace,frc,crop and procAmp. Performance will be significantly reduced in the test if using cascade mode just like qsv framerate + qsv scale + qsv deinterlace + qsv denoise in separated way no matter in system or video memmory cases. And the code is so redundant because so much the same just as session and surface's creation and management. So we add a common qsv filter. Usage: -hwaccel qsv -c:v h264_qsv -r 25 -i in -vf vpp_qsv=w=iw/2:h=400:deinterlace=1:framerate=60:detail=50:denoise=50 -b 2M -maxrate 3M -c:v h264_qsv -y out.h264 Signed-off-by: ChaoX A Liu Signed-off-by: Zhengxu Huang Signed-off-by: Andrew Zhang Change-Id: I130392ce722138c209ab658c5f03f0009b6e8024 Signed-off-by: Maxym Dmytrychenko --- libavfilter/allfilters.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter/allfilters.c') diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c index 3f09f46bb9..ef94516ebc 100644 --- a/libavfilter/allfilters.c +++ b/libavfilter/allfilters.c @@ -116,6 +116,7 @@ void avfilter_register_all(void) REGISTER_FILTER(TRIM, trim, vf); REGISTER_FILTER(UNSHARP, unsharp, vf); REGISTER_FILTER(VFLIP, vflip, vf); + REGISTER_FILTER(VPP_QSV, vpp_qsv, vf); REGISTER_FILTER(YADIF, yadif, vf); REGISTER_FILTER(COLOR, color, vsrc); -- cgit v1.2.3