18#include "videooverlay.h"
20#include <gst/video/videooverlay.h>
21#include <QtCore/QRect>
25void VideoOverlay::expose()
27 gst_video_overlay_expose(object<GstVideoOverlay>());
30void 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);
41void VideoOverlay::enableEventHandling(
bool enabled)
43 gst_video_overlay_handle_events(object<GstVideoOverlay>(), enabled);
46bool VideoOverlay::setRenderRectangle(
int x,
int y,
int width,
int height)
48 return gst_video_overlay_set_render_rectangle(object<GstVideoOverlay>(), x, y, width, height);
51bool VideoOverlay::setRenderRectangle(
const QRect& rect)
53 return setRenderRectangle(rect.x(), rect.y(), rect.width(), rect.height());
56bool VideoOverlay::isPrepareWindowHandleMessage(
const MessagePtr & msg)
58 return gst_is_video_overlay_prepare_window_handle_message(msg);
Wrappers for GStreamer classes.