![]() |
![]() |
![]() |
GStreamer VA-API Plugins 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GstVaapiWindowX11; GstVaapiWindowX11Class; #define GST_VAAPI_WINDOW_XWINDOW (window) GstVaapiWindow * gst_vaapi_window_x11_new (GstVaapiDisplay *display, guint width, guint height); GstVaapiWindow * gst_vaapi_window_x11_new_with_xid (GstVaapiDisplay *display, Window xid); Window gst_vaapi_window_x11_get_xid (GstVaapiWindowX11 *window); gboolean gst_vaapi_window_x11_is_foreign_xid (GstVaapiWindowX11 *window);
GObject +----GstVaapiObject +----GstVaapiWindow +----GstVaapiWindowX11 +----GstVaapiWindowGLX
#define GST_VAAPI_WINDOW_XWINDOW(window)
Macro that evaluates to the underlying X11 Window of window
|
a GstVaapiWindow |
GstVaapiWindow * gst_vaapi_window_x11_new (GstVaapiDisplay *display, guint width, guint height);
Creates a window with the specified width
and height
. The window
will be attached to the display
and remains invisible to the user
until gst_vaapi_window_show()
is called.
|
a GstVaapiDisplay |
|
the requested window width, in pixels |
|
the requested windo height, in pixels |
Returns : |
the newly allocated GstVaapiWindow object |
GstVaapiWindow * gst_vaapi_window_x11_new_with_xid (GstVaapiDisplay *display, Window xid);
Creates a GstVaapiWindow using the X11 Window xid
. The caller
still owns the window and must call XDestroyWindow()
when all
GstVaapiWindow references are released. Doing so too early can
yield undefined behaviour.
|
a GstVaapiDisplay |
|
an X11 Window id |
Returns : |
the newly allocated GstVaapiWindow object |
Window gst_vaapi_window_x11_get_xid (GstVaapiWindowX11 *window);
Returns the underlying X11 Window that was created by
gst_vaapi_window_x11_new()
or that was bound with
gst_vaapi_window_x11_new_with_xid()
.
|
a GstVaapiWindowX11 |
Returns : |
the underlying X11 Window bound to window .
|
gboolean gst_vaapi_window_x11_is_foreign_xid (GstVaapiWindowX11 *window);
Checks whether the window
XID was created by gst_vaapi_window_x11_new()
or bound with gst_vaapi_window_x11_new_with_xid()
.
|
a GstVaapiWindowX11 |
Returns : |
TRUE if the underlying X window is owned by the
caller (foreign window)
|