Top | ![]() |
![]() |
![]() |
![]() |
GstClockTime | gst_vaapi_surface_proxy_get_duration () |
guint | gst_vaapi_surface_proxy_get_flags () |
GstVaapiSurface * | gst_vaapi_surface_proxy_get_surface () |
GstVaapiID | gst_vaapi_surface_proxy_get_surface_id () |
GstClockTime | gst_vaapi_surface_proxy_get_timestamp () |
GstVaapiSurfaceProxy * | gst_vaapi_surface_proxy_new_from_pool () |
GstVaapiSurfaceProxy * | gst_vaapi_surface_proxy_copy () |
GstVaapiSurfaceProxy * | gst_vaapi_surface_proxy_ref () |
void | gst_vaapi_surface_proxy_replace () |
void | gst_vaapi_surface_proxy_set_destroy_notify () |
void | gst_vaapi_surface_proxy_unref () |
GstClockTime
gst_vaapi_surface_proxy_get_duration (GstVaapiSurfaceProxy *proxy
);
Returns the presentation duration for this surface proxy
.
guint
gst_vaapi_surface_proxy_get_flags (GstVaapiSurfaceProxy *proxy
);
Returns the GstVaapiSurfaceProxyFlags associated with this surface
proxy
.
GstVaapiSurface *
gst_vaapi_surface_proxy_get_surface (GstVaapiSurfaceProxy *proxy
);
Returns the GstVaapiSurface stored in the proxy
.
GstVaapiID
gst_vaapi_surface_proxy_get_surface_id
(GstVaapiSurfaceProxy *proxy
);
Returns the VA surface ID stored in the proxy
.
GstClockTime
gst_vaapi_surface_proxy_get_timestamp (GstVaapiSurfaceProxy *proxy
);
Returns the presentation timestamp for this surface proxy
.
GstVaapiSurfaceProxy *
gst_vaapi_surface_proxy_new_from_pool (GstVaapiSurfacePool *pool
);
Allocates a new surface from the supplied surface pool
and creates
the wrapped surface proxy object from it. When the last reference
to the proxy object is released, then the underlying VA surface is
pushed back to its parent pool.
GstVaapiSurfaceProxy *
gst_vaapi_surface_proxy_copy (GstVaapiSurfaceProxy *proxy
);
Creates are new VA surface proxy object from the supplied parent
proxy
object with the same initial information, e.g. timestamp,
duration.
Note: the destroy notify function is not copied into the new surface proxy object.
GstVaapiSurfaceProxy *
gst_vaapi_surface_proxy_ref (GstVaapiSurfaceProxy *proxy
);
Atomically increases the reference count of the given proxy
by one.
void gst_vaapi_surface_proxy_replace (GstVaapiSurfaceProxy **old_proxy_ptr
,GstVaapiSurfaceProxy *new_proxy
);
Atomically replaces the proxy object held in old_proxy_ptr
with
new_proxy
. This means that old_proxy_ptr
shall reference a valid
object. However, new_proxy
can be NULL.
void gst_vaapi_surface_proxy_set_destroy_notify (GstVaapiSurfaceProxy *proxy
,GDestroyNotify destroy_func
,gpointer user_data
);
Sets destroy_func
as the function to call when the surface proxy
was released. At this point, the proxy object is considered
released, i.e. the underlying data storage is no longer valid and
the callback function shall not expect anything from that.
proxy |
a |
|
destroy_func |
a GDestroyNotify function |
|
user_data |
some extra data to pass to the |