Top | ![]() |
![]() |
![]() |
![]() |
GstVaapiDisplay * | gst_vaapi_video_pool_get_display () |
GstVaapiVideoPoolObjectType | gst_vaapi_video_pool_get_object_type () |
gpointer | gst_vaapi_video_pool_get_object () |
void | gst_vaapi_video_pool_put_object () |
gboolean | gst_vaapi_video_pool_add_object () |
gboolean | gst_vaapi_video_pool_add_objects () |
guint | gst_vaapi_video_pool_get_capacity () |
void | gst_vaapi_video_pool_set_capacity () |
guint | gst_vaapi_video_pool_get_size () |
gboolean | gst_vaapi_video_pool_reserve () |
GstVaapiDisplay *
gst_vaapi_video_pool_get_display (GstVaapiVideoPool *pool
);
Retrieves the GstVaapiDisplay the pool
is bound to. The pool
owns the returned object and it shall not be unref'ed.
GstVaapiVideoPoolObjectType
gst_vaapi_video_pool_get_object_type (GstVaapiVideoPool *pool
);
Retrieves the type of objects the video pool
supports.
gpointer
gst_vaapi_video_pool_get_object (GstVaapiVideoPool *pool
);
Retrieves a new object from the pool
, or allocates a new one if
none was found. The pool
holds a reference on the returned object
and thus shall be released through gst_vaapi_video_pool_put_object()
when it's no longer needed.
void gst_vaapi_video_pool_put_object (GstVaapiVideoPool *pool
,gpointer object
);
Pushes the object
back into the pool. The object
shall be
obtained from the pool
through gst_vaapi_video_pool_get_object()
.
Calling this function with an arbitrary object yields undefined
behaviour.
gboolean gst_vaapi_video_pool_add_object (GstVaapiVideoPool *pool
,gpointer object
);
Adds the object
to the pool. The pool then holds a reference on
the object
. This operation does not change the capacity of the
pool.
gboolean gst_vaapi_video_pool_add_objects (GstVaapiVideoPool *pool
,GPtrArray *objects
);
Adds the objects
to the pool. The pool then holds a reference on
the objects
. This operation does not change the capacity of the
pool and is just a wrapper around gst_vaapi_video_pool_add_object()
.
guint
gst_vaapi_video_pool_get_capacity (GstVaapiVideoPool *pool
);
Returns the maximum number of objects in the pool. i.e. the maximum
number of objects that can be returned by gst_vaapi_video_pool_get_object()
.
void gst_vaapi_video_pool_set_capacity (GstVaapiVideoPool *pool
,guint capacity
);
Sets the maximum number of objects that can be allocated in the pool.
guint
gst_vaapi_video_pool_get_size (GstVaapiVideoPool *pool
);
Returns the number of free objects available in the pool.
gboolean gst_vaapi_video_pool_reserve (GstVaapiVideoPool *pool
,guint n
);
Pre-allocates up to n
objects in the pool. If n
is less than or
equal to the number of free and used objects in the pool, this call
has no effect. Otherwise, it is a request for allocation of
additional objects.