* <title>GstVideoOverlay and Gtk+</title>
* <para>
* |[
- * #include <gst/video/xoverlay.h>
+ * #include <gst/video/videooverlay.h>
* #include <gtk/gtk.h>
* #ifdef GDK_WINDOWING_X11
* #include <gdk/gdkx.h> // for GDK_WINDOW_XID
* return GST_BUS_PASS;
*
* if (video_window_handle != 0) {
- * GstXOverlay *xoverlay;
+ * GstVideoOverlay *overlay;
*
* // GST_MESSAGE_SRC (message) will be the video sink element
- * xoverlay = GST_X_OVERLAY (GST_MESSAGE_SRC (message));
- * gst_x_overlay_set_window_handle (xoverlay, video_window_handle);
+ * overlay = GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message));
+ * gst_video_overlay_set_window_handle (overlay, video_window_handle);
* } else {
* g_warning ("Should have obtained video_window_handle by now!");
* }
* @handle: a handle referencing the window.
*
* This will call the video overlay's set_window_handle method. You
- * should use this method to tell to a XOverlay to display video output to a
+ * should use this method to tell to an overlay to display video output to a
* specific window (e.g. an XWindow on X11). Passing 0 as the @handle will
* tell the overlay to stop using that window and create an internal one.
*/
* events are forwarded upstream as navigation events. In some window system,
* events are not propagated in the window hierarchy if a client is listening
* for them. This method allows you to disable events handling completely
- * from the XOverlay.
+ * from the #GstVideoOverlay.
*/
void
gst_video_overlay_handle_events (GstVideoOverlay * overlay,
* @width: the width in pixels of Window @win
* @height: the height in pixels of Window @win
* @internal: used to remember if Window @win was created internally or passed
- * through the #GstXOverlay interface
+ * through the #GstVideoOverlay interface
* @gc: the Graphical Context of Window @win
*
* Structure used to store informations about a Window.
* @x_lock: used to protect X calls as we are not using the XLib in threaded
* mode
* @flow_lock: used to protect data flow routines from external calls such as
- * events from @event_thread or methods from the #GstXOverlay interface
+ * events from @event_thread or methods from the #GstVideoOverlay interface
* @par: used to override calculated pixel aspect ratio from @xcontext
* @pool_lock: used to protect the buffer pool
* @buffer_pool: a list of #GstXImageBuffer that could be reused at next buffer
* using the XVideo extension. Rendering to a remote display is theoretically
* possible but i doubt that the XVideo extension is actually available when
* connecting to a remote display. This element can receive a Window ID from the
- * application through the XOverlay interface and will then render video frames
- * in this drawable. If no Window ID was provided by the application, the
- * element will create its own internal window and render into it.
+ * application through the #GstVideoOverlay interface and will then render
+ * video frames in this drawable. If no Window ID was provided by the
+ * application, the element will create its own internal window and render
+ * into it.
*
* <refsect2>
* <title>Scaling</title>
* @width: the width in pixels of Window @win
* @height: the height in pixels of Window @win
* @internal: used to remember if Window @win was created internally or passed
- * through the #GstXOverlay interface
+ * through the #GstVideoOverlay interface
* @gc: the Graphical Context of Window @win
*
* Structure used to store informations about a Window.
* @x_lock: used to protect X calls as we are not using the XLib in threaded
* mode
* @flow_lock: used to protect data flow routines from external calls such as
- * events from @event_thread or methods from the #GstXOverlay interface
+ * events from @event_thread or methods from the #GstVideoOverlay interface
* @par: used to override calculated pixel aspect ratio from @xcontext
* @pool_lock: used to protect the buffer pool
* @image_pool: a list of #GstXvImageBuffer that could be reused at next buffer
g_signal_connect (G_OBJECT (window), "delete-event",
G_CALLBACK (window_closed), (gpointer) pipeline);
gtk_window_set_default_size (GTK_WINDOW (window), 320, 240);
- gtk_window_set_title (GTK_WINDOW (window), "GstXOverlay Gtk+ demo");
+ gtk_window_set_title (GTK_WINDOW (window), "GstVideoOverlay Gtk+ demo");
video_window = gtk_drawing_area_new ();
gtk_widget_set_double_buffered (video_window, FALSE);
QWidget window;
window.resize(320, 240);
- window.setWindowTitle("GstXOverlay Qt demo");
+ window.setWindowTitle("GstVideoOverlay Qt demo");
window.show();
WId xwinid = window.winId();
QGraphicsView view( &scene );
view.resize(320, 240);
- view.setWindowTitle("GstXOverlay Qt GraphicsView demo");
+ view.setWindowTitle("GstVideoOverlay Qt GraphicsView demo");
view.show();
gst_init (&argc, &argv);
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
- g_error ("Couldn't create native window needed for GstXOverlay!");
+ g_error ("Couldn't create native window needed for GstVideoOverlay!");
#if defined (GDK_WINDOWING_WIN32)
app->embed_xid = GDK_WINDOW_HWND (window);
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
- g_error ("Couldn't create native window needed for GstXOverlay!");
+ g_error ("Couldn't create native window needed for GstVideoOverlay!");
#ifdef HAVE_X
embed_xid = GDK_WINDOW_XID (window);
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
- g_error ("Couldn't create native window needed for GstXOverlay!");
+ g_error ("Couldn't create native window needed for GstVideoOverlay!");
embed_xid = GDK_WINDOW_XID (window);
g_print ("Window realize: video window XID = %lu\n", embed_xid);