mpv/player
Guido Cella 3986f34e2a stats.lua: calculate sizes like --osd-*-size options
Currently --script-opt=stats-font_size=n is much bigger than
--osd-font-size=n, which can confuse users, so calculate sizes the same
way.

The \fs value to replicate --osd-font-size is
${osd-font-size} * 288 / 720 with --osd-scale-by-window, and
\fs${osd-font-size} * 288 / ${osd-height}
with --osd-scale-by-window=no. This is because
sub/osd_libass.c:update_playres() sets
track->PlayResY = ass->res_y ? ass->res_y : MP_ASS_FONT_PLAYRESY,
where MP_ASS_FONT_PLAYRESY is 288.

This also works with persistent_overlay=yes.

{\fscx100}{\fscy100} would also replicate --osd-font-size with show-text
and with osd-verlay + --osd-scale-by-window, but not with osd-overlay +
--osd-scale-by-window=no.

The default sizes are multiplied by 720/288 = 2.5 to keep them the same
as before.
2024-10-29 20:35:35 +01:00
..
javascript input.lua,defaults.js: don't hardcode mp.input arguments 2024-10-04 21:13:29 +03:00
lua stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
audio.c audio: add pitch-shifting feature 2024-08-07 22:56:17 +02:00
client.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
client.h
command.c command: remove an extra space from track formatting 2024-10-24 22:04:44 +02:00
command.h command: print lang in track-list 2024-10-24 17:39:46 +02:00
configfiles.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
core.h player: make redraw_sub flag work on a per track basis 2024-10-16 02:26:06 +00:00
external_files.c player/external_files: fix null deref when cover-art-whitelist is empty 2024-09-29 22:56:40 +02:00
external_files.h misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
javascript.c player/javascript: disable stream error logging 2024-10-22 03:16:51 +03:00
loadfile.c command: print lang in track-list 2024-10-24 17:39:46 +02:00
lua.c lua: remove unused #define mp_lua_len 2024-09-26 16:45:08 +02:00
main.c misc/random: seed using libavutil/random_seed 2024-09-28 14:11:56 +02:00
misc.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
osd.c player/osd: don't add newlines when message would be empty anyway 2024-10-21 20:06:48 +02:00
playloop.c player: move a redraw_subs edgecase to loadfile 2024-10-16 02:26:06 +00:00
screenshot.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
screenshot.h
scripting.c player/scripting: remove outdated comment about posix_spawn 2024-07-29 21:00:48 +02:00
sub.c player: make redraw_sub flag work on a per track basis 2024-10-16 02:26:06 +00:00
video.c player/audio: invert audio_started boolean 2024-08-01 11:45:13 +00:00