/** * gst_vaapi_display_x11_get_display: * @display: a #GstVaapiDisplayX11 * * Returns the underlying X11 #Display that was created by * gst_vaapi_display_x11_new() or that was bound from * gst_vaapi_display_x11_new_with_display(). * * Return value: the X11 #Display attached to @display */ Display * gst_vaapi_display_x11_get_display (GstVaapiDisplayX11 * display) { g_return_val_if_fail (GST_VAAPI_IS_DISPLAY_X11 (display), NULL); return GST_VAAPI_DISPLAY_XDISPLAY (display); }
/** * gst_vaapi_display_x11_get_screen: * @display: a #GstVaapiDisplayX11 * * Returns the default X11 screen that was created by * gst_vaapi_display_x11_new() or that was bound from * gst_vaapi_display_x11_new_with_display(). * * Return value: the X11 #Display attached to @display */ int gst_vaapi_display_x11_get_screen (GstVaapiDisplayX11 * display) { g_return_val_if_fail (GST_VAAPI_IS_DISPLAY_X11 (display), -1); return GST_VAAPI_DISPLAY_XSCREEN (display); }
/** * gst_vaapi_display_x11_get_screen: * @display: a #GstVaapiDisplayX11 * * Returns the default X11 screen that was created by * gst_vaapi_display_x11_new() or that was bound from * gst_vaapi_display_x11_new_with_display(). * * Return value: the X11 #Display attached to @display */ int gst_vaapi_display_x11_get_screen(GstVaapiDisplayX11 *display) { g_return_val_if_fail(GST_VAAPI_IS_DISPLAY_X11(display), -1); return display->priv->x11_screen; }
/** * gst_vaapi_display_x11_set_synchronous: * @display: a #GstVaapiDisplayX11 * @synchronous: boolean value that indicates whether to enable or * disable synchronization * * If @synchronous is %TRUE, gst_vaapi_display_x11_set_synchronous() * turns on synchronous behaviour on the underlying X11 * display. Otherwise, synchronous behaviour is disabled if * @synchronous is %FALSE. */ void gst_vaapi_display_x11_set_synchronous (GstVaapiDisplayX11 * display, gboolean synchronous) { g_return_if_fail (GST_VAAPI_IS_DISPLAY_X11 (display)); set_synchronous (display, synchronous); }