![]() |
![]() |
![]() |
GStreamer VA-API Plugins 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct GstVaapiSubpicture; struct GstVaapiSubpictureClass; 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
); void gst_vaapi_subpicture_set_image (GstVaapiSubpicture *subpicture
,GstVaapiImage *image
);
"flags" guint : Read / Write / Construct Only "global-alpha" gfloat : Read / Write "image" GstVaapiImage* : Read / Write
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 |
void 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 |
"flags"
property"flags" guint : Read / Write / Construct Only
The GstVaapiSubpictureFlags this subpicture requires.
Default value: 0
"global-alpha"
property"global-alpha" gfloat : Read / Write
The global-alpha value associated with this subpicture.
Allowed values: [0,1]
Default value: 1
"image"
property"image" GstVaapiImage* : Read / Write
The GstVaapiImage this subpicture is bound to.