How to use "gst_x_overlay_set_render_rectangle" to render ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use "gst_x_overlay_set_render_rectangle" to render ?

forestzhu
Hi all,

In a gstreamer program ,I get a widget 's winid/width/height
and use the "gst_x_overlay_set_xwindow_id" to render the video to the widget.
Because I need to render the video to a region of the widget,
I try to use the "gst_x_overlay_set_render_rectangle"  .
It runs ok ,but the rest background of the widget appears system-color.
How can I change it to black?
Anyone know about this ,please give me hint!

Thank your in advance!

forest
Aug 9
Reply | Threaded
Open this post in threaded view
|

Re: How to use "gst_x_overlay_set_render_rectangle" to render ?

forestzhu
Is this weakness of the function?
Reply | Threaded
Open this post in threaded view
|

Re: How to use "gst_x_overlay_set_render_rectangle" to render ?

Stefan Sauer
In reply to this post by forestzhu
On 08/09/2012 08:19 AM, forestzhu wrote:

> Hi all,
>
> In a gstreamer program ,I get a widget 's winid/width/height
> and use the "gst_x_overlay_set_xwindow_id" to render the video to the
> widget.
> Because I need to render the video to a region of the widget,
> I try to use the "gst_x_overlay_set_render_rectangle"  .
> It runs ok ,but the rest background of the widget appears system-color.
> How can I change it to black?
> Anyone know about this ,please give me hint!
Take a look at gst-plugins-base/tests/icles/test-xoverlay.c

Stefan

>
> Thank your in advance!
>
> forest
> Aug 9
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-gst-x-overlay-set-render-rectangle-to-render-tp4655890.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel