decoder: expose new parse/decode API.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 29 Nov 2012 14:06:00 +0000 (15:06 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 18 Dec 2012 14:31:51 +0000 (15:31 +0100)
commit6bed9ebe0fa3aeb5a97abc3d0f564ca3a5dc7613
treec8a42e9fa34aefed0a8ea8913df113abcc4ca10c
parentea9703362c084a7295dc6d132cead99cd8cb685e
decoder: expose new parse/decode API.

Introduce new decoding process whereby a GstVideoCodecFrame is created
first. Next, input stream buffers are accumulated into a GstAdapter,
that is then passed to the _parse() function. The GstVaapiDecoder object
accumulates all parsed units and when a complete frame or field is
detected, that GstVideoCodecFrame is passed to the _decode() function.

Ultimately, the caller receives a GstVaapiSurfaceProxy if decoding
process was successful.
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder.h
gst-libs/gst/vaapi/gstvaapidecoder_objects.c