Add VA and X11 display accessors.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Mon, 15 Mar 2010 14:57:57 +0000 (14:57 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Mon, 15 Mar 2010 14:57:57 +0000 (14:57 +0000)
gst-libs/gst/vaapi/gstvaapidisplay.h
gst-libs/gst/vaapi/gstvaapidisplay_x11.h

index 72488ba3cc8189006f19153e09d48665eeac4e95..cccb09565341fa2e7c62a612d306d9d8843f6477 100644 (file)
@@ -51,6 +51,9 @@ G_BEGIN_DECLS
                                GST_VAAPI_TYPE_DISPLAY,  \
                                GstVaapiDisplayClass))
 
+#define GST_VAAPI_DISPLAY_VADISPLAY(display) \
+    gst_vaapi_display_get_display(display)
+
 typedef struct _GstVaapiDisplay                 GstVaapiDisplay;
 typedef struct _GstVaapiDisplayPrivate          GstVaapiDisplayPrivate;
 typedef struct _GstVaapiDisplayClass            GstVaapiDisplayClass;
index baeb15b6151026958443c3b2d7923f6d00b93aec..3956315967046b963bdc5116988d878aaaf6ce86 100644 (file)
@@ -50,6 +50,9 @@ G_BEGIN_DECLS
                                GST_VAAPI_TYPE_DISPLAY_X11,      \
                                GstVaapiDisplayX11Class))
 
+#define GST_VAAPI_DISPLAY_XDISPLAY(display) \
+    gst_vaapi_display_x11_get_display(GST_VAAPI_DISPLAY_X11(display))
+
 typedef struct _GstVaapiDisplayX11              GstVaapiDisplayX11;
 typedef struct _GstVaapiDisplayX11Private       GstVaapiDisplayX11Private;
 typedef struct _GstVaapiDisplayX11Class         GstVaapiDisplayX11Class;