Top | ![]() |
![]() |
![]() |
![]() |
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
.
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.
GstVaapiID
gst_vaapi_subpicture_get_id (GstVaapiSubpicture *subpicture
);
Returns the underlying VASubpictureID of the subpicture
.
guint
gst_vaapi_subpicture_get_flags (GstVaapiSubpicture *subpicture
);
Returns the subpicture
flags.
gfloat
gst_vaapi_subpicture_get_global_alpha (GstVaapiSubpicture *subpicture
);
Returns the value of global_alpha, set for 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.
GstVaapiImage *
gst_vaapi_subpicture_get_image (GstVaapiSubpicture *subpicture
);
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
.