OSDN Git Service

videoeffect: Query vpp caps before use it
authorXuGuangxin <Guangxin.Xu@intel.com>
Mon, 19 Mar 2018 09:00:43 +0000 (02:00 -0700)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Mon, 19 Mar 2018 09:00:43 +0000 (02:00 -0700)
commit89909d407c1efd4fec07156719739e9e83f3fba4
treed12edd9017464bdc268632a47ab279d53a411b63
parent81790462d3088c058bcf885cfd6cd14eb1d9c723
videoeffect: Query vpp caps before use it

two things fixed here:
1. We query caps on UpdateCaps, but we use the caps in SetVAProcFilterDeinterlaceMode.
But SetVAProcFilterDeinterlaceMode call before UpdateCaps, this makes
SetVAProcFilterDeinterlaceMode use a invalid value.
2. when we changed the video effect, we mmeset the param_, it will make
the param_.surface_region and param_.output_region useless

Jira: None.
Test: 1. Video playback works fine.
2. adb shell hwcservice_test -b 100, you see the video turn bright on screen
common/compositor/va/varenderer.cpp
common/compositor/va/varenderer.h