| GStreamer VA-API Plugins 0.10 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct GstVaapiVideoBuffer; struct GstVaapiVideoBufferClass; GstBuffer * gst_vaapi_video_buffer_typed_new (GType type,GstVaapiDisplay *display); GstBuffer * gst_vaapi_video_buffer_typed_new_from_pool (GType type,GstVaapiVideoPool *pool); GstBuffer * gst_vaapi_video_buffer_typed_new_from_buffer (GType type,GstBuffer *buffer); GstBuffer * gst_vaapi_video_buffer_typed_new_with_image (GType type,GstVaapiImage *image); GstBuffer * gst_vaapi_video_buffer_typed_new_with_surface (GType type,GstVaapiSurface *surface); GstBuffer * gst_vaapi_video_buffer_typed_new_with_surface_proxy (GType type,GstVaapiSurfaceProxy *proxy); GstVaapiDisplay * gst_vaapi_video_buffer_get_display (GstVaapiVideoBuffer *buffer); GstVaapiImage * gst_vaapi_video_buffer_get_image (GstVaapiVideoBuffer *buffer); void gst_vaapi_video_buffer_set_image (GstVaapiVideoBuffer *buffer,GstVaapiImage *image); gboolean gst_vaapi_video_buffer_set_image_from_pool (GstVaapiVideoBuffer *buffer,GstVaapiVideoPool *pool); GstVaapiSurface * gst_vaapi_video_buffer_get_surface (GstVaapiVideoBuffer *buffer); GstVaapiSurfaceProxy * gst_vaapi_video_buffer_get_surface_proxy (GstVaapiVideoBuffer *buffer); void gst_vaapi_video_buffer_set_surface (GstVaapiVideoBuffer *buffer,GstVaapiSurface *surface); void gst_vaapi_video_buffer_set_surface_proxy (GstVaapiVideoBuffer *buffer,GstVaapiSurfaceProxy *proxy); gboolean gst_vaapi_video_buffer_set_surface_from_pool (GstVaapiVideoBuffer *buffer,GstVaapiVideoPool *pool); guint gst_vaapi_video_buffer_get_render_flags (GstVaapiVideoBuffer *buffer); void gst_vaapi_video_buffer_set_render_flags (GstVaapiVideoBuffer *buffer,guint flags);
struct GstVaapiVideoBuffer;
A GstBuffer holding video objects (GstVaapiSurface and GstVaapiImage).
struct GstVaapiVideoBufferClass {
};
A GstBuffer holding video objects
GstBuffer * gst_vaapi_video_buffer_typed_new (GType type,GstVaapiDisplay *display);
Creates an empty GstBuffer. The caller is responsible for completing the initialization of the buffer with the gst_vaapi_video_buffer_set_*() functions.
This function shall only be called from within gstreamer-vaapi plugin elements.
|
a GstVaapiDisplay |
Returns : |
the newly allocated GstBuffer, or NULL or error |
GstBuffer * gst_vaapi_video_buffer_typed_new_from_pool (GType type,GstVaapiVideoPool *pool);
Creates a GstBuffer with a video object allocated from a pool.
Only GstVaapiSurfacePool and GstVaapiImagePool pools are supported.
The buffer is destroyed through the last call to gst_buffer_unref()
and the video objects are pushed back to their respective pools.
|
a GstVaapiVideoPool |
Returns : |
the newly allocated GstBuffer, or NULL on error |
GstBuffer * gst_vaapi_video_buffer_typed_new_from_buffer (GType type,GstBuffer *buffer);
Creates a GstBuffer with video objects bound to buffer video
objects, if any.
This function shall only be called from within gstreamer-vaapi plugin elements.
GstBuffer * gst_vaapi_video_buffer_typed_new_with_image (GType type,GstVaapiImage *image);
Creates a GstBuffer with the specified image. The resulting
buffer holds an additional reference to the image.
This function shall only be called from within gstreamer-vaapi plugin elements.
|
a GstVaapiImage |
Returns : |
the newly allocated GstBuffer, or NULL on error |
GstBuffer * gst_vaapi_video_buffer_typed_new_with_surface (GType type,GstVaapiSurface *surface);
Creates a GstBuffer with the specified surface. The resulting
buffer holds an additional reference to the surface.
This function shall only be called from within gstreamer-vaapi plugin elements.
|
a GstVaapiSurface |
Returns : |
the newly allocated GstBuffer, or NULL on error |
GstBuffer * gst_vaapi_video_buffer_typed_new_with_surface_proxy (GType type,GstVaapiSurfaceProxy *proxy);
Creates a GstBuffer with the specified surface proxy. The
resulting buffer holds an additional reference to the proxy.
This function shall only be called from within gstreamer-vaapi plugin elements.
|
a GstVaapiSurfaceProxy |
Returns : |
the newly allocated GstBuffer, or NULL on error |
GstVaapiDisplay * gst_vaapi_video_buffer_get_display (GstVaapiVideoBuffer *buffer);
Retrieves the GstVaapiDisplay the buffer is bound to. The buffer
owns the returned GstVaapiDisplay object so the caller is
responsible for calling g_object_ref() when needed.
|
a GstVaapiVideoBuffer |
Returns : |
the GstVaapiDisplay the buffer is bound to |
GstVaapiImage * gst_vaapi_video_buffer_get_image (GstVaapiVideoBuffer *buffer);
Retrieves the GstVaapiImage bound to the buffer. The buffer owns
the GstVaapiImage so the caller is responsible for calling
g_object_ref() when needed.
|
a GstVaapiVideoBuffer |
Returns : |
the GstVaapiImage bound to the buffer, or NULL if
there is none |
void gst_vaapi_video_buffer_set_image (GstVaapiVideoBuffer *buffer,GstVaapiImage *image);
Binds image to the buffer. If the buffer contains another image
previously allocated from a pool, it's pushed back to its parent
pool and the pool is also released.
|
a GstVaapiVideoBuffer |
|
a GstVaapiImage |
gboolean gst_vaapi_video_buffer_set_image_from_pool (GstVaapiVideoBuffer *buffer,GstVaapiVideoPool *pool);
Binds a newly allocated video object from the pool. The pool
shall be of type GstVaapiImagePool. Previously allocated objects
are released and returned to their parent pools, if any.
|
a GstVaapiVideoBuffer |
|
a GstVaapiVideoPool |
Returns : |
TRUE on success |
GstVaapiSurface * gst_vaapi_video_buffer_get_surface (GstVaapiVideoBuffer *buffer);
Retrieves the GstVaapiSurface bound to the buffer. The buffer
owns the GstVaapiSurface so the caller is responsible for calling
g_object_ref() when needed.
|
a GstVaapiVideoBuffer |
Returns : |
the GstVaapiSurface bound to the buffer, or NULL if
there is none |
GstVaapiSurfaceProxy * gst_vaapi_video_buffer_get_surface_proxy
(GstVaapiVideoBuffer *buffer);
Retrieves the GstVaapiSurfaceProxy bound to the buffer. The buffer
owns the GstVaapiSurfaceProxy so the caller is responsible for calling
g_object_ref() when needed.
|
a GstVaapiVideoBuffer |
Returns : |
the GstVaapiSurfaceProxy bound to the buffer, or
NULL if there is none |
void gst_vaapi_video_buffer_set_surface (GstVaapiVideoBuffer *buffer,GstVaapiSurface *surface);
Binds surface to the buffer. If the buffer contains another
surface previously allocated from a pool, it's pushed back to its
parent pool and the pool is also released.
|
a GstVaapiVideoBuffer |
|
a GstVaapiSurface |
void gst_vaapi_video_buffer_set_surface_proxy (GstVaapiVideoBuffer *buffer,GstVaapiSurfaceProxy *proxy);
Binds surface proxy to the buffer. If the buffer contains another
surface previously allocated from a pool, it's pushed back to its
parent pool and the pool is also released.
|
a GstVaapiVideoBuffer |
|
a GstVaapiSurfaceProxy |
gboolean gst_vaapi_video_buffer_set_surface_from_pool (GstVaapiVideoBuffer *buffer,GstVaapiVideoPool *pool);
Binds a newly allocated video object from the pool. The pool
shall be of type GstVaapiSurfacePool. Previously allocated objects
are released and returned to their parent pools, if any.
|
a GstVaapiVideoBuffer |
|
a GstVaapiVideoPool |
Returns : |
TRUE on success |
guint gst_vaapi_video_buffer_get_render_flags
(GstVaapiVideoBuffer *buffer);
Retrieves the surface render flags bound to the buffer.
|
a GstVaapiVideoBuffer |
Returns : |
a combination for GstVaapiSurfaceRenderFlags |
void gst_vaapi_video_buffer_set_render_flags (GstVaapiVideoBuffer *buffer,guint flags);
Sets GstVaapiSurfaceRenderFlags to the buffer.
|
a GstVaapiVideoBuffer |
|
a set of surface render flags |