<div dir="ltr">The Native scaling function using set_render_rectangle didnt work for me. It was not playing smoothly for some reason. So this is what I did<div><br></div><div>1] Create a dismpanx window based on video resolution. ( This part may be missing in example code. I had hard-coded to  my test video resolution)</div><div>2] Set this window using set_window_hanlde ( refer to example code in the bug)</div><div>3] Once this happens you have complete control over the window, you can scale it, move it using dispmanx API  vc_dispmanx_element_change_attributes()</div><div><br></div><div>The attached example is not optimized but enough for you to understand how to scale and move(change dest rect  x, y value)..</div><div><br></div><div>Thanks & Regards</div><div>Munez<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 12:44 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2016-10-20 at 10:56 +0000, Stuart Axon wrote:<br>
> Hi,<br>
>    I'm building a player on raspberry pi, but want to be able to move<br>
> / scale the window.<br>
> Is there an example somewhere to do this ?<br>
><br>
> I saw the patch here<br>
> <a href="https://bugzilla.gnome.org/show_bug.cgi?id=772608" rel="noreferrer" target="_blank">https://bugzilla.gnome.org/<wbr>show_bug.cgi?id=772608</a><br>
><br>
><br>
> But I'm pretty new to coding opengl es, so not sure how to create the<br>
> window to pass into this API.<br>
><br>
> My app is in python, but this part doesn't necessarily need do be in<br>
> python.<br>
<br>
That bug also contains a test application as an attachment. Please take<br>
a look at that.<br>
<br>
It's nothing GL specific in this case, but RPi specific. You pass a<br>
dispmanx element there.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>