mpv/sub
wm4 0728726251 client API, lua: add new API for setting OSD overlays
Lua scripting has an undocumented mp.set_osd_ass() function, which is
used by osc.lua and console.lua. Apparently, 3rd party scripts also use
this. It's probably time to make this a public API.

The Lua implementation just bypassed the libmpv API. To make it usable
by any type of client, turn it into a command, "osd-overlay".

There's already a "overlay-add". Ignore it (although the manpage admits
guiltiness). I don't really want to deal with that old command. Its main
problem is that it uses global IDs, while I'd like to avoid that scripts
mess with each others overlays (whether that is accidentally or
intentionally). Maybe "overlay-add" can eventually be merged into
"osd-overlay", but I'm too lazy to do that now.

Scripting now uses the commands. There is a helper to manage OSD
overlays. The helper is very "thin"; I only want to force script authors
to use the ID allocation, which may help with putting multiple scripts
into a single .lua file without causing conflicts (basically, avoiding
singletons within a script's environment). The old set_osd_ass() is
emulated with the new API.

The JS scripting wrapper also provides a set_osd_ass() function, which
calls internal mpv API. Comment that part (to keep it compiling), but
I'm leaving it to @avih to finish the change.
2019-12-23 11:44:24 +01:00
..
ass_mp.c ass_mp: reset packer when allocation fails 2019-11-02 14:42:36 +01:00
ass_mp.h
dec_sub.c
dec_sub.h
draw_bmp.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
draw_bmp.h
filter_sdh.c
img_convert.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
img_convert.h
lavc_conv.c
osd.c
osd.h client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_dummy.c client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_font.otf osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osd_libass.c client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_state.h client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
sd.h
sd_ass.c
sd_lavc.c sd_lavc: add a hack ontop of another hack to fix completely fucked file 2019-12-03 22:33:45 +01:00