summaryrefslogtreecommitdiffstats
path: root/video/out/vo_rpi.c
diff options
context:
space:
mode:
authorShreesh Adiga <16567adigashreesh@gmail.com>2020-11-12 16:07:33 +0530
committeravih <avih@users.noreply.github.com>2020-11-22 13:34:25 +0200
commit6ad3e2bfbdc5fbf729c59ce61aa57eca27163d7f (patch)
tree1d00c37a102bc3b15c6bb1a03367dc06ca989c53 /video/out/vo_rpi.c
parentc615e51051371178895e97eae5f46d6c20db6898 (diff)
downloadmpv-6ad3e2bfbdc5fbf729c59ce61aa57eca27163d7f.tar.bz2
mpv-6ad3e2bfbdc5fbf729c59ce61aa57eca27163d7f.tar.xz
vo_sixel: Add aspect ratio based output centering
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.
Diffstat (limited to 'video/out/vo_rpi.c')
0 files changed, 0 insertions, 0 deletions