lavf/qsvvpp: bypass vpp if not needed.
authorZhong Li <zhong.li@intel.com>
Wed, 4 Apr 2018 09:51:30 +0000 (17:51 +0800)
committerMaxym Dmytrychenko <maxim.d33@gmail.com>
Sun, 8 Apr 2018 18:47:59 +0000 (20:47 +0200)
commit29a8ed766354c45c9be4b8512c5b2eb25a450cdc
tree855a34a2bcda412f5684a8a1982806d07eb984f4
parent52ed83fa1a7f5170447eff6fad0b6c57119596e9
lavf/qsvvpp: bypass vpp if not needed.

Currently vpp pipeline is always created, even for the unnecessary
cases such as setting the option "vpp_qsv=w=1280:h=720" for an input
with native resolution 1280x720. Thus introduces unnecessary performance
dropping, so bypass vpp if not needed.

Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
libavfilter/vf_vpp_qsv.c