diff options
author | Dudemanguy <random342@airmail.cc> | 2021-08-09 08:59:55 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-08-09 16:33:39 +0000 |
commit | 9dc0857b3d989148fb9d871e6cd3f1bc3c9110db (patch) | |
tree | 8aed4b88c87097f5ef359ba6ab70bcb9fda3a3b9 /TOOLS/osxbundle | |
parent | 77f2fd97f89c93be6595dde29b86384047f05ba2 (diff) | |
download | mpv-9dc0857b3d989148fb9d871e6cd3f1bc3c9110db.tar.bz2 mpv-9dc0857b3d989148fb9d871e6cd3f1bc3c9110db.tar.xz |
command: check for rotation in window-scale
The vo currently handles rotations in 90 degree steps and some VOs set
this via VO_CAP_ROTATE90. When the rotation exactly hits either 90 or
270 degrees, this causes the values of dwidth and dheight to perfectly
swap like one would expect. However, the mp_image_params_get_dsize
function call in both of the window scale functions do not take this
special case into account. So the width/height values returned will be
incorrectly flipped in the 90 and 270 degree cases if the vo driver does
implement VO_CAP_ROTATE90 (like vo=gpu). Fortunately, the
mp_image_params struct keeps track of the rotation for us. So all we
need to do is check if the image is rotated at 90 or 270 degrees and
check that the current vo driver supports VO_CAP_ROTATE90. If so, then
swap vid_w and vid_h to their true, correct values.
Diffstat (limited to 'TOOLS/osxbundle')
0 files changed, 0 insertions, 0 deletions