glimagesink resizing/reposition option

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

glimagesink resizing/reposition option

psiva87
Hi,
I'm using glimagesink as video sink on 96boards with wayland. Video is always rendered 320x240 from top-left side. glimagesink resizes the video decoder output to 320x240. How can I make glimagesink to play the original resolution of the video?
Reply | Threaded
Open this post in threaded view
|

Re: glimagesink resizing/reposition option

Nicolas Dufresne-5
Le vendredi 09 juin 2017 à 03:12 -0700, psiva87 a écrit :
> I'm using glimagesink as video sink on 96boards with wayland. Video
> is
> always rendered 320x240 from top-left side. glimagesink resizes the
> video
> decoder output to 320x240. How can I make glimagesink to play the
> original
> resolution of the video?

Same as for an X11 application. Create a wayland application, pass the
window handle to glimagesink. Resizing the window is then done by your
application embedding glimagesink. The following is few example using
GTK toolkit to retrieve the GLContext and Window handle. It's comes
with a small adapter that make it work on X11, OSX and Wayland.

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gl/gtk

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

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: glimagesink resizing/reposition option

psiva87
Nicolas Dufresne-5 wrote
Le vendredi 09 juin 2017 à 03:12 -0700, psiva87 a écrit :
> I'm using glimagesink as video sink on 96boards with wayland. Video
> is
> always rendered 320x240 from top-left side. glimagesink resizes the
> video
> decoder output to 320x240. How can I make glimagesink to play the
> original
> resolution of the video?

Same as for an X11 application. Create a wayland application, pass the
window handle to glimagesink. Resizing the window is then done by your
application embedding glimagesink. The following is few example using
GTK toolkit to retrieve the GLContext and Window handle. It's comes
with a small adapter that make it work on X11, OSX and Wayland.

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gl/gtk

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


signature.asc (188 bytes) <http://gstreamer-devel.966125.n4.nabble.com/attachment/4683274/0/signature.asc>
Thanks Nicolas for the insights. So if I pass the window handle to glimagesink, my application will be to control the sizing