| GStreamer VA-API Plugins 1.2 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GstVaapiSubpicture; GstVaapiSubpicture * gst_vaapi_subpicture_new (GstVaapiImage *image,guint flags); GstVaapiSubpicture * gst_vaapi_subpicture_new_from_overlay_rectangle (GstVaapiDisplay *display,GstVideoOverlayRectangle *rect); GstVaapiID gst_vaapi_subpicture_get_id (GstVaapiSubpicture *subpicture); guint gst_vaapi_subpicture_get_flags (GstVaapiSubpicture *subpicture); gfloat gst_vaapi_subpicture_get_global_alpha (GstVaapiSubpicture *subpicture); gboolean gst_vaapi_subpicture_set_global_alpha (GstVaapiSubpicture *subpicture,gfloat global_alpha); GstVaapiImage * gst_vaapi_subpicture_get_image (GstVaapiSubpicture *subpicture); gboolean gst_vaapi_subpicture_set_image (GstVaapiSubpicture *subpicture,GstVaapiImage *image);
GstVaapiSubpicture * gst_vaapi_subpicture_new (GstVaapiImage *image,guint flags);
Creates a new GstVaapiSubpicture with image as source pixels. The
newly created object holds a reference on image.
|
a GstVaapiImage |
|
GstVaapiSubpictureFlags, or zero |
Returns : |
the newly allocated GstVaapiSubpicture object |
GstVaapiSubpicture * gst_vaapi_subpicture_new_from_overlay_rectangle (GstVaapiDisplay *display,GstVideoOverlayRectangle *rect);
Helper function that creates a new GstVaapiSubpicture from a GstVideoOverlayRectangle. A new GstVaapiImage is also created along the way and attached to the resulting subpicture. The subpicture holds a unique reference to the underlying image.
|
a GstVaapiDisplay |
|
a GstVideoOverlayRectangle |
Returns : |
the newly allocated GstVaapiSubpicture object |
GstVaapiID gst_vaapi_subpicture_get_id (GstVaapiSubpicture *subpicture);
Returns the underlying VASubpictureID of the subpicture.
|
a GstVaapiSubpicture |
Returns : |
the underlying VA subpicture id |
guint gst_vaapi_subpicture_get_flags (GstVaapiSubpicture *subpicture);
Returns the subpicture flags.
|
a GstVaapiSubpicture |
Returns : |
the subpicture flags |
gfloat gst_vaapi_subpicture_get_global_alpha
(GstVaapiSubpicture *subpicture);
Returns the value of global_alpha, set for this subpicture.
|
a GstVaapiSubpicture |
Returns : |
the global_alpha value of this subpicture
|
gboolean gst_vaapi_subpicture_set_global_alpha (GstVaapiSubpicture *subpicture,gfloat global_alpha);
Sets the global_alpha value of subpicture. This function calls
vaSetSubpictureGlobalAlpha() if the format of subpicture, i.e.
the current VA driver supports it.
|
a GstVaapiSubpicture |
|
value for global-alpha (range: 0.0 to 1.0, inclusive) |
Returns : |
TRUE if global_alpha could be set, FALSE otherwise |
GstVaapiImage * gst_vaapi_subpicture_get_image (GstVaapiSubpicture *subpicture);
Returns the GstVaapiImage this subpicture is bound to.
|
a GstVaapiSubpicture |
Returns : |
the GstVaapiImage this subpicture is bound to |
gboolean gst_vaapi_subpicture_set_image (GstVaapiSubpicture *subpicture,GstVaapiImage *image);
Binds a new GstVaapiImage to the subpicture. The reference to the
previous image is released and a new one is acquired on image.
|
a GstVaapiSubpicture |
|
a GstVaapiImage |
Returns : |
TRUE on success |