decoder: h264: factor out allocation of reconstructed surfaces.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 14 May 2014 11:59:25 +0000 (13:59 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 2 Jun 2014 17:30:43 +0000 (19:30 +0200)
commit6d76944605a75872714744262ce0370581de9225
tree1a95fe02762edb4391c91098f04efb82929ebe05
parente29345cbdc26d5e4c6729100344eb8dbf9e35b65
decoder: h264: factor out allocation of reconstructed surfaces.

Add new avc_ensure_surface_bo() helper function to factor out the
allocatiion and initialization processes of the reconstructed VA
surface buffer stores.

Keep preferred native format (NV12) and initialize chroma values
to 0.0 (0x80) when needed for "fake" grayscale (Y800) surfaces
implemented on top of existing NV12.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
src/gen6_mfd.c
src/gen75_mfd.c
src/gen7_mfd.c
src/gen8_mfd.c
src/i965_decoder_utils.c
src/i965_decoder_utils.h