[vlc-devel] [PATCH] -- autoscale/scalefactor issues

brezhoneg1 brezhoneg1 at yahoo.fr
Fri Feb 13 14:25:32 CET 2009



After some more tests on Linux and Windows, this patch corrects the
following issues :

1- A Windows specific limitation.

On Windows (tested with vlc1.0-git-20060211 from jb's website), the
'Alt-o' hotkey leads to a black screen when zooming exceeds the
container size. This patch makes sure we don't exceed this container
size.


2 - Original width/height calculation

When an original video doesn't have square pixel (sar != 1:1), original
width and height is not straightforward. You need to choose one
direction as a reference and either scale up or down the other
direction. 

In vlc, scaling up was done in InitWindowSize and scaling down was done
in Vout_PlacePicture (but never used before autoscale was introduced )
This patch changes Vout_PicturePlace to also scale up as InitWindowSize
does.
3- small cosmetic change about i_zoom

Though this may be a bit technical, this is really bug corrections (no
new feature and no regression to be expected)


Erwan10

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-corrects-two-issues-related-to-autoscale-scalefactor.patch
Type: application/octet-stream
Size: 2806 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090213/7b7e1094/attachment.obj>


More information about the vlc-devel mailing list