mpv/sub
nanahi 07acdf09b3 sd_ass: fix margin y scale with font size
--sub-margin-y is documented to scale with font size, which is scaled
"by" or "with" window depending on the options. However, when using
ass_set_font_scale to change font size, the y margin isn't scaled, so it is
still scaled to video size. This causes the y margin size becoming smaller
when the video becomes smaller, even when the font size isn't changing.

Fix this by also scale the MarginV with the font scale. Also use lrint
instead of round.
2024-07-18 23:03:02 +02:00
..
ass_mp.c sub: add (sub/osd)-border-style; renaming sub options 2024-07-12 20:17:38 +00:00
ass_mp.h sub: add flag if sub_bitmap should be rendered in video color space 2024-03-02 15:57:02 +00:00
dec_sub.c sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
dec_sub.h sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
draw_bmp.c all: add missing repr assignments 2024-01-26 18:17:02 +02:00
draw_bmp.h csputils: replace mp_alpha_type with pl_alpha_mode 2024-01-22 14:54:55 +00:00
filter_jsre.c sd_ass: allow get_text to return more than 500 bytes 2024-04-27 01:19:56 +02:00
filter_regex.c sd_ass: allow get_text to return more than 500 bytes 2024-04-27 01:19:56 +02:00
filter_sdh.c filter_sdh: optimize get_char_bytes 2024-01-15 16:05:17 +00:00
img_convert.c various: replace some OOM handling 2023-11-24 10:04:55 +01:00
img_convert.h
lavc_conv.c various: remove no longer needed availability checks 2024-06-22 16:12:14 +02:00
meson.build build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
osd.c sub: add (sub/osd)-border-style; renaming sub options 2024-07-12 20:17:38 +00:00
osd.h sub: add (sub/osd)-border-style; renaming sub options 2024-07-12 20:17:38 +00:00
osd_font.otf tools: add narrow left arrow glyph for OSD 2024-05-05 13:47:20 +02:00
osd_libass.c sub: add (sub/osd)-border-style; renaming sub options 2024-07-12 20:17:38 +00:00
osd_state.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
sd.h options: move sub-ass-override 'scale' above 'force' 2024-05-29 17:48:50 +00:00
sd_ass.c sd_ass: fix margin y scale with font size 2024-07-18 23:03:02 +02:00
sd_lavc.c sub: update codec info 2024-06-08 23:06:22 +02:00