OSDN Git Service

vp9encoder: encoder to handle properly CSC on input surface
authorDaniel Charles <daniel.charles@intel.com>
Sat, 13 Aug 2016 00:30:55 +0000 (17:30 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 15 Aug 2016 07:55:32 +0000 (15:55 +0800)
commit98555d27c8291fe2511355d53924d17a5263dc22
treec34ff240a83e1ab20f9862ab952318ac147560ae
parent3e115315e9ef2df1b3d8f64bced69d0f685c6651
vp9encoder: encoder to handle properly CSC on input surface

VP9 encoder was not checking for the yuv surface fourcc provided as the input.
If the format is I420, the driver creates an underlying surface where the input
is converted to NV12.

The underlying temporary surface was not used properly by the vme_pipeline_vp9 as
intel_encoder_check_yuv_surface will place the underlying surface on the
encode_state->input_yuv_object if it needed conversion or it will place the correct
current_render_target if the conversion is not needed.

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
src/gen9_vp9_encoder.c
src/i965_encoder.c