summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-14 23:59:53 +0200
committerwm4 <wm4@nowhere>2013-06-15 18:35:09 +0200
commit0e2fb5d8e87768defdc49c025ffe74fc2ec3265b (patch)
tree20a33e6c825c1ec51c8cffbd860c36d7bb1b8796 /demux
parent60631acd29fb04a3ec1de2c9a52ac859a50bbce9 (diff)
downloadmpv-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 'demux')
0 files changed, 0 insertions, 0 deletions