diff options
author | wm4 <wm4@nowhere> | 2013-06-14 23:59:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-15 18:35:09 +0200 |
commit | 0e2fb5d8e87768defdc49c025ffe74fc2ec3265b (patch) | |
tree | 20a33e6c825c1ec51c8cffbd860c36d7bb1b8796 /video/img_format.c | |
parent | 60631acd29fb04a3ec1de2c9a52ac859a50bbce9 (diff) | |
download | mpv-0e2fb5d8e87768defdc49c025ffe74fc2ec3265b.tar.bz2 mpv-0e2fb5d8e87768defdc49c025ffe74fc2ec3265b.tar.xz |
vo: redo video display rectangle calculations
This code calculates the source/display video rectangle for scaling with
most VOs. It's responsible for clipping the display rectangle against
the screen and adjusting the source rectangle accordingly.
Until now, it assumed that the video was centered on the screen. Change
this so that any rectangle is possible. Basically, the clipping is
extended to two sides (e.g. left and right), instead of handling both at
the same time.
The rounding behavior slightly changes. It seems to be slightly better
than before. On the other hand, the video is not strictly centered
anymore (due to different rounding on either side). When using panscan
controls, the video can "jitter" by 1 or 2 pixels around the center as
the panscan value is changed.
Diffstat (limited to 'video/img_format.c')
0 files changed, 0 insertions, 0 deletions