From: gb Date: Tue, 23 Mar 2010 06:40:27 +0000 (+0000) Subject: Add GST_VAAPI_WINDOW_XWINDOW() helper macro. X-Git-Tag: 0.1.1~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1b25e880782761bd651ae9154f03d3e5a0b69a8;p=platform%2Fupstream%2Fgstreamer-vaapi.git Add GST_VAAPI_WINDOW_XWINDOW() helper macro. --- diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index f12019b..9178ba7 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -48,10 +48,10 @@ gst_vaapi_video_sink_get_type
gstvaapidisplay_x11 -GST_VAAPI_DISPLAY_XDISPLAY GstVaapiDisplayX11 GstVaapiDisplayX11 GstVaapiDisplayX11Class +GST_VAAPI_DISPLAY_XDISPLAY gst_vaapi_display_x11_new gst_vaapi_display_x11_new_with_display gst_vaapi_display_x11_get_display @@ -70,6 +70,7 @@ GST_VAAPI_DISPLAY_X11_GET_CLASS GstVaapiWindowX11 GstVaapiWindowX11 GstVaapiWindowX11Class +GST_VAAPI_WINDOW_XWINDOW gst_vaapi_window_x11_new gst_vaapi_window_x11_new_with_xid gst_vaapi_window_x11_get_xid diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_x11.h b/gst-libs/gst/vaapi/gstvaapiwindow_x11.h index d46b996..59fe140 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_x11.h +++ b/gst-libs/gst/vaapi/gstvaapiwindow_x11.h @@ -51,6 +51,15 @@ G_BEGIN_DECLS GST_VAAPI_TYPE_WINDOW_X11, \ GstVaapiWindowX11Class)) +/** + * GST_VAAPI_WINDOW_XWINDOW: + * @window: a #GstVaapiWindow + * + * Macro that evaluates to the underlying X11 #Window of @window + */ +#define GST_VAAPI_WINDOW_XWINDOW(window) \ + gst_vaapi_window_x11_get_xid(GST_VAAPI_WINDOW_X11(window)) + typedef struct _GstVaapiWindowX11 GstVaapiWindowX11; typedef struct _GstVaapiWindowX11Private GstVaapiWindowX11Private; typedef struct _GstVaapiWindowX11Class GstVaapiWindowX11Class;