| GStreamer VA-API Plugins 1.2 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GstVaapiWindowX11; #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);
#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) |