libavfilter/vf_vpp: Add common filters of the qsv vpp
authorHuang, Zhengxu <zhengxu.maxwell@gmail.com>
Thu, 24 Aug 2017 02:16:28 +0000 (10:16 +0800)
committerMaxym Dmytrychenko <maxim.d33@gmail.com>
Sun, 17 Sep 2017 17:57:13 +0000 (19:57 +0200)
commit8d3666c425602b2feb985be900c14edf82dc328a
tree5fd77d0b5982e1b4e6c3111da4e0bc6e3a7b9699
parentac6691ab9938107d818cd8066ce3ea329ad14d8d
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 <chaox.a.liu@gmail.com>
Signed-off-by: Zhengxu Huang <zhengxu.maxwell@gmail.com>
Signed-off-by: Andrew Zhang <huazh407@gmail.com>
Change-Id: I130392ce722138c209ab658c5f03f0009b6e8024
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
configure
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/vf_vpp_qsv.c [new file with mode: 0644]