| Top |
GstVaapiTexture * gst_vaapi_texture_new (GstVaapiDisplay *display,guint target,guint format,guint width,guint height);
Creates a texture with the specified dimensions, target
and
format
. Note that only GL_TEXTURE_2D target
and GL_RGBA or
GL_BGRA formats are supported at this time.
The application shall maintain the live GL context itself.
guint
gst_vaapi_texture_get_id (GstVaapiTexture *texture);
Returns the underlying texture id of the texture
.
guint
gst_vaapi_texture_get_target (GstVaapiTexture *texture);
Returns the texture
target type
guint
gst_vaapi_texture_get_format (GstVaapiTexture *texture);
Returns the texture
format
guint
gst_vaapi_texture_get_width (GstVaapiTexture *texture);
Returns the texture
width.
guint
gst_vaapi_texture_get_height (GstVaapiTexture *texture);
Returns the texture
height.
void gst_vaapi_texture_get_size (GstVaapiTexture *texture,guint *width_ptr,guint *height_ptr);
Retrieves the dimensions of a GstVaapiTexture.
gboolean gst_vaapi_texture_put_surface (GstVaapiTexture *texture,GstVaapiSurface *surface,const GstVaapiRectangle *crop_rect,guint flags);
Renders the surface
into the àtexture. The flags
specify how
de-interlacing (if needed), color space conversion, scaling and
other postprocessing transformations are performed.