decoder: h264: properly support grayscale formats.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sat, 10 May 2014 04:23:29 +0000 (06:23 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sat, 10 May 2014 04:29:25 +0000 (06:29 +0200)
commit85a60441fa240a0cf884fcb91bb296636a22efe7
tree1e537b97f54908e3086e0339bfee081df7a64c17
parentc4cd8e2b36ddf28412a517d94c158c958869be2c
decoder: h264: properly support grayscale formats.

Request the correct chroma format for decoding grayscale streams.
i.e. make lookups of the VA chroma format more generic, thus possibly
supporting more formats in the future.

This means that, if a VA driver doesn't support grayscale formats,
it is now going to fail. We cannot safely assume that maybe grayscale
was implemented on top of some YUV 4:2:0 with the chroma components
all set to 0x80.
gst-libs/gst/vaapi/gstvaapicontext.c
gst-libs/gst/vaapi/gstvaapidecoder_h264.c
gst-libs/gst/vaapi/gstvaapiutils.c
gst-libs/gst/vaapi/gstvaapiutils.h