2012-07-28 20:00:31 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "config.h"
|
2016-01-11 18:03:40 +00:00
|
|
|
#include "mpv_talloc.h"
|
2017-01-26 15:34:31 +00:00
|
|
|
#include "osd_state.h"
|
2012-07-28 20:00:31 +00:00
|
|
|
|
|
|
|
void osd_init_backend(struct osd_state *osd)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void osd_destroy_backend(struct osd_state *osd)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-09-28 19:38:52 +00:00
|
|
|
void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function)
|
2012-07-28 20:00:31 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-09-28 19:38:52 +00:00
|
|
|
void osd_object_get_bitmaps(struct osd_state *osd, struct osd_object *obj,
|
2016-07-03 16:33:28 +00:00
|
|
|
int format, struct sub_bitmaps *out_imgs)
|
2012-07-28 20:00:31 +00:00
|
|
|
{
|
2012-09-28 19:38:52 +00:00
|
|
|
*out_imgs = (struct sub_bitmaps) {0};
|
2012-07-28 20:00:31 +00:00
|
|
|
}
|
2016-03-08 20:42:08 +00:00
|
|
|
|
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 10:40:27 +00:00
|
|
|
void osd_set_external(struct osd_state *osd, struct osd_external_ass *ov)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void osd_set_external_remove_owner(struct osd_state *osd, void *owner)
|
2016-03-08 20:42:08 +00:00
|
|
|
{
|
|
|
|
}
|
2017-01-26 17:24:53 +00:00
|
|
|
|
|
|
|
void osd_get_text_size(struct osd_state *osd, int *out_screen_h, int *out_font_h)
|
|
|
|
{
|
|
|
|
*out_screen_h = 0;
|
|
|
|
*out_font_h = 0;
|
|
|
|
}
|