GstVideoOverlay SetRenderRectangle question
tom
ttustonic at outlook.com
Tue Jul 10 21:48:04 UTC 2018
Hello
I don't quite understand how VideoOverlayAdapter.SetRenderRectangle (from
gstreamer-sharp) and gst_video_overlay_set_render_rectangle works.
I have modified
https://github.com/GStreamer/gstreamer-sharp/blob/master/samples/BasicTutorial5.cs
to set the render rectangle, like this:
VideoOverlayAdapter adapter = new
VideoOverlayAdapter(overlay.Handle);
adapter.WindowHandle = windowHandle;
adapter.SetRenderRectangle(50, 50, 427, 240);
adapter.HandleEvents(true);
I expected that the video will be rendered in the 427x240 rectangle, at the
position 50,50, but there is a correct rectangle at the position, and video
is moved to the 50,50 inside this rectangle. The same happens in the
WinForms version of the sample.
See the image
<http://gstreamer-devel.966125.n4.nabble.com/file/t378393/renderrect.jpg>
Is this the correct behavior or a bug ?
I'm using GStreamer 1.14.1 32bit on Windows 10.
Thanks,
Tom
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list