msdkmjpegdec: support 422 output
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Sat, 22 Jun 2019 01:18:44 +0000 (18:18 -0700)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 29 Jun 2019 17:40:06 +0000 (17:40 +0000)
commitb756b13ee2541e9899536c0594475dee6026488a
treeca4ad9284bd5b14c56c35d09d747fb0a1f73162a
parent70bfd34b4166b1b0e53526077f049e17fa563f36
msdkmjpegdec: support 422 output

MSDK supports JPEG YUY2 (422 chroma) output color
format. The color format of input bitstream is
described by JPEGChromaFormat and JPEGColorFormat
fields in the mfxInfoMFX structure which is filled
in by the MFXVideoDECODE_DecodeHeader function.

To obtain lossless decoded output from 422 encoded
JPEGs, we must set the output color format in the
FourCC and ChromaFormat fields in the mfxFrameInfo
structure to the appropriate values at post_configure
so that they are propagated through to the srcpad
caps accordingly.
sys/msdk/gstmsdkmjpegdec.c