mpv/sub
Guido Cella d6610a5b2f command: add escape-ass
This adds a command to escape ASS tags to remove code duplication
between sub/osd_libass.c, console.lua, osc.lua, stats.lua and any user
script that calls mp.create_osd_overlay().

A command is used instead of scripting functions so that all clients can
use this and not just use Lua and JS ones.

osd_mangle_ass() also interprets osd-sym-cc and osd-ass-cc/{0,1}, but
since they use invalid UTF-8 characters there is no risk of escape-ass
users using them by accident, like with any OSD message.

Always replacing \n with \\N in mangle_ass() even when it is not called
by escape-ass doesn't seem to cause any issue, but I made it conditional
anyway to avoid changing how all OSD messages are treated unnecessarily.
2024-03-21 03:20:14 +01:00
..
ass_mp.c sub: add flag if sub_bitmap should be rendered in video color space 2024-03-02 15:57:02 +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 player/sub: attempt to detect animated subtitles 2024-02-15 16:43:11 +00:00
dec_sub.h player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +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 sub: jsre filter: abort init early on empty filter list 2022-06-09 14:38:24 +03:00
filter_regex.c
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 sub/lavc_conv: properly fill avctx with codecpar values at init 2023-03-14 23:59:47 +02:00
meson.build build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
osd.c various: use static assertions where appropriate 2024-03-17 20:04:04 +01:00
osd.h command: add escape-ass 2024-03-21 03:20:14 +01:00
osd_font.otf
osd_libass.c command: add escape-ass 2024-03-21 03:20:14 +01:00
osd_state.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
sd.h command: fix sub-seek while paused without a video 2024-02-23 21:37:22 +01:00
sd_ass.c sub: add flag if sub_bitmap should be rendered in video color space 2024-03-02 15:57:02 +00:00
sd_lavc.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00