mirror of https://github.com/mpv-player/mpv
6ad3e2bfbd
Resize the image based on the dimensions reported by vo_get_src_dst_rects to correctly handle aspect ratio that might be set/ignored. Added pad-x and pad-y options for padding. These options will be used to remove the extra padding. Some terminals report the padding of 2px in the ioctl dimensions which can't be used for displaying sixel output. These options can be used for fine tuning the output video resolution. Now all the terminal size detection and calculation logic is done in a single function at resize. Also top and left values are computed from the dst_rect parameters to simplify the logic for the aspect ratio based centering. Additionally vo-sixel-rows and vo-sixel-cols options have been added to enable the user to override the values in case of failures with get_terminal_size2. This commit also adds ability to handle video zoom correctly. Whenever video-zoom is triggered, the src and dst rects will be updated. Scaling seems to work well now. |
||
---|---|---|
.. | ||
man | ||
client-api-changes.rst | ||
compatibility.rst | ||
compile-windows.md | ||
contribute.md | ||
edl-mpv.rst | ||
encoding.rst | ||
interface-changes.rst | ||
mplayer-changes.rst | ||
release-policy.md | ||
tech-overview.txt | ||
waf-buildsystem.rst |