mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
Expose video pool display.
This commit is contained in:
parent
bceab0254c
commit
6f5e593abd
3 changed files with 22 additions and 1 deletions
|
@ -19,6 +19,7 @@ GST_VAAPI_SURFACE_POOL_GET_CLASS
|
||||||
<TITLE>GstVaapiVideoPool</TITLE>
|
<TITLE>GstVaapiVideoPool</TITLE>
|
||||||
GstVaapiVideoPool
|
GstVaapiVideoPool
|
||||||
GstVaapiVideoPoolClass
|
GstVaapiVideoPoolClass
|
||||||
|
gst_vaapi_video_pool_get_display
|
||||||
gst_vaapi_video_pool_get_caps
|
gst_vaapi_video_pool_get_caps
|
||||||
gst_vaapi_video_pool_get_object
|
gst_vaapi_video_pool_get_object
|
||||||
gst_vaapi_video_pool_put_object
|
gst_vaapi_video_pool_put_object
|
||||||
|
|
|
@ -146,7 +146,7 @@ gst_vaapi_video_pool_get_property(
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_DISPLAY:
|
case PROP_DISPLAY:
|
||||||
g_value_set_object(value, pool->priv->display);
|
g_value_set_object(value, gst_vaapi_video_pool_get_display(pool));
|
||||||
break;
|
break;
|
||||||
case PROP_CAPS:
|
case PROP_CAPS:
|
||||||
g_value_set_pointer(value, gst_vaapi_video_pool_get_caps(pool));
|
g_value_set_pointer(value, gst_vaapi_video_pool_get_caps(pool));
|
||||||
|
@ -230,6 +230,23 @@ gst_vaapi_video_pool_init(GstVaapiVideoPool *pool)
|
||||||
g_queue_init(&priv->free_objects);
|
g_queue_init(&priv->free_objects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_vaapi_video_pool_get_display:
|
||||||
|
* @pool: a #GstVaapiVideoPool
|
||||||
|
*
|
||||||
|
* Retrieves the #GstVaapiDisplay the @pool is bound to. The @pool
|
||||||
|
* owns the returned object and it shall not be unref'ed.
|
||||||
|
*
|
||||||
|
* Return value: the #GstVaapiDisplay the @pool is bound to
|
||||||
|
*/
|
||||||
|
GstVaapiDisplay *
|
||||||
|
gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail(GST_VAAPI_IS_VIDEO_POOL(pool), NULL);
|
||||||
|
|
||||||
|
return pool->priv->display;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_vaapi_video_pool_get_caps:
|
* gst_vaapi_video_pool_get_caps:
|
||||||
* @pool: a #GstVaapiVideoPool
|
* @pool: a #GstVaapiVideoPool
|
||||||
|
|
|
@ -88,6 +88,9 @@ struct _GstVaapiVideoPoolClass {
|
||||||
GType
|
GType
|
||||||
gst_vaapi_video_pool_get_type(void);
|
gst_vaapi_video_pool_get_type(void);
|
||||||
|
|
||||||
|
GstVaapiDisplay *
|
||||||
|
gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool);
|
||||||
|
|
||||||
GstCaps *
|
GstCaps *
|
||||||
gst_vaapi_video_pool_get_caps(GstVaapiVideoPool *pool);
|
gst_vaapi_video_pool_get_caps(GstVaapiVideoPool *pool);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue