18 #include "videooverlay.h"
20 #include <gst/video/videooverlay.h>
21 #include <QtCore/QRect>
25 void VideoOverlay::expose()
27 gst_video_overlay_expose(object<GstVideoOverlay>());
30 void VideoOverlay::setWindowHandle(WId
id)
33 QGLIB_STATIC_ASSERT(
sizeof(WId) ==
sizeof(guintptr),
34 "Size of WId doesn't match guintptr. Please file a bug report.");
35 gst_video_overlay_set_window_handle(object<GstVideoOverlay>(), *
reinterpret_cast<guintptr*
>(&
id));
37 gst_video_overlay_set_window_handle(object<GstVideoOverlay>(),
id);
41 void VideoOverlay::enableEventHandling(
bool enabled)
43 gst_video_overlay_handle_events(object<GstVideoOverlay>(), enabled);
46 bool VideoOverlay::setRenderRectangle(
int x,
int y,
int width,
int height)
48 return gst_video_overlay_set_render_rectangle(object<GstVideoOverlay>(), x, y, width, height);
51 bool VideoOverlay::setRenderRectangle(
const QRect& rect)
53 return setRenderRectangle(rect.x(), rect.y(), rect.width(), rect.height());
56 bool VideoOverlay::isPrepareWindowHandleMessage(
const MessagePtr & msg)
58 return gst_is_video_overlay_prepare_window_handle_message(msg);
Wrappers for GStreamer classes.