mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
Add more internal helpers.
This commit is contained in:
parent
2ecadd45b8
commit
56658c7aac
1 changed files with 41 additions and 0 deletions
|
@ -42,6 +42,47 @@ G_BEGIN_DECLS
|
||||||
#define GST_VAAPI_OBJECT_DISPLAY(object) \
|
#define GST_VAAPI_OBJECT_DISPLAY(object) \
|
||||||
GST_VAAPI_OBJECT_CAST(object)->priv->display
|
GST_VAAPI_OBJECT_CAST(object)->priv->display
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_OBJECT_VADISPLAY:
|
||||||
|
* @object: a #GstVaapiObject
|
||||||
|
*
|
||||||
|
* Macro that evaluates to the #VADisplay of @display.
|
||||||
|
* This is an internal macro that does not do any run-time type check.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_OBJECT_VADISPLAY(object) \
|
||||||
|
GST_VAAPI_DISPLAY_VADISPLAY(GST_VAAPI_OBJECT_DISPLAY(object))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_OBJECT_XDISPLAY:
|
||||||
|
* @object: a #GstVaapiObject
|
||||||
|
*
|
||||||
|
* Macro that evaluates to the underlying X11 #Display of @display.
|
||||||
|
* This is an internal macro that does not do any run-time type check.
|
||||||
|
* Besides, this is only valid within libgstvaapi-x11.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_OBJECT_XDISPLAY(object) \
|
||||||
|
GST_VAAPI_DISPLAY_XDISPLAY(GST_VAAPI_OBJECT_DISPLAY(object))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_OBJECT_LOCK_DISPLAY:
|
||||||
|
* @object: a #GstVaapiObject
|
||||||
|
*
|
||||||
|
* Macro that locks the #GstVaapiDisplay contained in the @object.
|
||||||
|
* This is an internal macro that does not do any run-time type check.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_OBJECT_LOCK_DISPLAY(object) \
|
||||||
|
GST_VAAPI_DISPLAY_LOCK(GST_VAAPI_OBJECT_DISPLAY(object))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VAAPI_OBJECT_UNLOCK_DISPLAY:
|
||||||
|
* @object: a #GstVaapiObject
|
||||||
|
*
|
||||||
|
* Macro that unlocks the #GstVaapiDisplay contained in the @object.
|
||||||
|
* This is an internal macro that does not do any run-time type check.
|
||||||
|
*/
|
||||||
|
#define GST_VAAPI_OBJECT_UNLOCK_DISPLAY(object) \
|
||||||
|
GST_VAAPI_DISPLAY_UNLOCK(GST_VAAPI_OBJECT_DISPLAY(object))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_OBJECT_ID:
|
* GST_VAAPI_OBJECT_ID:
|
||||||
* @object: a #GstVaapiObject
|
* @object: a #GstVaapiObject
|
||||||
|
|
Loading…
Reference in a new issue