<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-11 13:59 GMT+01:00 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">On Tue, 11 Feb 2014 10:34:10 +0100, Felix Abecassis<br>
<<a href="mailto:felix.abecassis@gmail.com">felix.abecassis@gmail.com</a>> wrote:<br>
> Looking at vout_intf.c, the "zoom" callback simply forward the new value<br>
to<br>
> "scale".<br>
> With the latest git version --zoom is working and --scale does nothing.<br>
<br>
</div>Scale should only have an effect if autoscale is disabled, so that is not<br>
necessarily wrong.<br></blockquote><div>Scale cannot work with the current code I think. If you have a use case where it does, I'm interested.<br></div><div>The zoom callback has the following statement: var_SetFloat( obj, "scale", cur.f_float ); <br>

</div><div>The scale callback is not currently triggered from vout_IntfReinit, even if it was it won't work.<br></div><div>If we trigger the zoom callback first, we will erase the previous value of scale.<br></div><div>

If we trigger the scale callback first, we will send a zoom event but the zoom callback will send another zoom event cancelling the first one.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I think zoom affects the (requested) video window size, while scale<br>
affects the video area size within the video window. Zoom is intended for<br>
use with autoscale, which is enabled by default. Using both zoom and scale<br>
simultaneous makes little practical sense, so it is theoretically possible<br>
to define it (zoom affects the window, scale affects the video area).<br></blockquote><div>Since in both cases (scale and zoom) we call vout_ControlChangeZoom, I don't see how this could work currently.<br></div><div>

Without autoscale, It looks like zoom has the behaviour you are describing for "scale".<br></div></div><br>-- <br>Félix Abecassis<div><a href="http://felix.abecassis.me" target="_blank">http://felix.abecassis.me</a></div>


</div></div>