diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-08 17:03:44 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-20 23:15:48 +0000 |
commit | 7d6f9e37397ed57be0f1375afe8fddfc451aa152 (patch) | |
tree | 0dbc3c765a408359afff70e6d771c97a3d68cc44 /DOCS/man/options.rst | |
parent | 56ec3ea9f64e2434983f1aadf0241cc6cd09dc83 (diff) | |
download | mpv-7d6f9e37397ed57be0f1375afe8fddfc451aa152.tar.bz2 mpv-7d6f9e37397ed57be0f1375afe8fddfc451aa152.tar.xz |
aspect: change --video-pan-x/y to be relative to the destination rect
It makes it more usable to virtually move dst rect instead of scaled
src.
The issue with the latter is that it is affected by video-zoom
paramters. For example if we do `--video-pan-x=-0.5` in normal case it
will move video -50%, but if we apply video-zoom/scale the video will
float towards the middle in unintuitive way. Extreme case is when one do
--video-zoom-x=0.01, now it is impossible to move video unless you
specify huge video-pan-x value, but it is limited to [-3, 3]. So you
cannot do anything.
With this changes regardless of video scale/zoom, video-pan will keep
center of scaled video in one place.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r-- | DOCS/man/options.rst | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index cac04fcef7..c5da25fba2 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1539,9 +1539,7 @@ Video ``--video-pan-x=<value>``, ``--video-pan-y=<value>`` Moves the displayed video rectangle by the given value in the X or Y - direction. The unit is in fractions of the size of the scaled video (the - full size, even if parts of the video are not visible due to panscan or - other options). + direction. The unit is in fractions of the size of the destination rectangle. For example, displaying a 1280x720 video fullscreen on a 1680x1050 screen with ``--video-pan-x=-0.1`` would move the video 168 pixels to the left |