![]() |
![]() |
![]() |
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
); GstVaapiDecoderStatus gst_vaapi_decoder_get_surface (GstVaapiDecoder *decoder
,GstVaapiSurfaceProxy **out_proxy_ptr
);
"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_INVALID_PARAMETER, 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. | |
Unsupported parameter. | |
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 |
GstVaapiDecoderStatus gst_vaapi_decoder_get_surface (GstVaapiDecoder *decoder
,GstVaapiSurfaceProxy **out_proxy_ptr
);
Flushes encoded buffers to the decoder and returns a decoded surface, if any.
On successful return, *out_proxy_ptr
contains the decoded surface
as a GstVaapiSurfaceProxy. The caller owns this object, so
gst_vaapi_surface_proxy_unref()
shall be called after usage.
|
a GstVaapiDecoder |
|
the next decoded surface as a GstVaapiSurfaceProxy |
Returns : |
a GstVaapiDecoderStatus |
"display"
property"display" GstVaapiDisplay* : Read / Write / Construct Only
The GstVaapiDisplay this decoder is bound to.