| GStreamer VA-API Plugins 0.10 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
enum GstVaapiDecoderStatus; struct GstVaapiDecoder; struct GstVaapiDecoderClass; GstCaps * gst_vaapi_decoder_get_caps (GstVaapiDecoder *decoder); gboolean gst_vaapi_decoder_put_buffer (GstVaapiDecoder *decoder,GstBuffer *buf); GstVaapiSurfaceProxy * gst_vaapi_decoder_get_surface (GstVaapiDecoder *decoder,GstVaapiDecoderStatus *pstatus);
"caps" gpointer : Read / Write / Construct Only "display" GstVaapiDisplay* : Read / Write / Construct Only
typedef enum {
GST_VAAPI_DECODER_STATUS_SUCCESS = 0,
GST_VAAPI_DECODER_STATUS_END_OF_STREAM,
GST_VAAPI_DECODER_STATUS_ERROR_ALLOCATION_FAILED,
GST_VAAPI_DECODER_STATUS_ERROR_INIT_FAILED,
GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_CODEC,
GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA,
GST_VAAPI_DECODER_STATUS_ERROR_NO_SURFACE,
GST_VAAPI_DECODER_STATUS_ERROR_INVALID_SURFACE,
GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER,
GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE,
GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_CHROMA_FORMAT,
GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN = -1
} GstVaapiDecoderStatus;
Decoder status for gst_vaapi_decoder_get_surface().
| Success. | |
| End-Of-Stream. | |
| No memory left. | |
| Decoder initialization failure. | |
| Unsupported codec. | |
| Not enough input data to decode. | |
| No surface left to hold the decoded picture. | |
| Invalid surface. | |
| Invalid or unsupported bitstream data. | |
| Unsupported codec profile. | |
| Unsupported chroma format. | |
| Unknown error. |
GstCaps * gst_vaapi_decoder_get_caps (GstVaapiDecoder *decoder);
Retrieves the decoder caps. The deocder owns the returned caps, so
use gst_caps_ref() whenever necessary.
|
a GstVaapiDecoder |
Returns : |
the decoder caps |
gboolean gst_vaapi_decoder_put_buffer (GstVaapiDecoder *decoder,GstBuffer *buf);
Queues a GstBuffer to the HW decoder. The decoder holds a
reference to buf.
Caller can notify an End-Of-Stream with buf set to NULL. However,
if an empty buffer is passed, i.e. a buffer with NULL data pointer
or size equals to zero, then the function ignores this buffer and
returns TRUE.
|
a GstVaapiDecoder |
|
a GstBuffer |
Returns : |
TRUE on success |
GstVaapiSurfaceProxy * gst_vaapi_decoder_get_surface (GstVaapiDecoder *decoder,GstVaapiDecoderStatus *pstatus);
Flushes encoded buffers to the decoder and returns a decoded surface, if any.
|
a GstVaapiDecoder |
|
return location for the decoder status, or NULL
|
Returns : |
a GstVaapiSurfaceProxy holding the decoded surface,
or NULL if none is available (e.g. an error). Caller owns the
returned object. g_object_unref() after usage. |
"display" property"display" GstVaapiDisplay* : Read / Write / Construct Only
The GstVaapiDisplay this decoder is bound to.