mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
sub: pass preferred OSD format to subtitle renderers
The intention is to let mp_ass_packer_pack() produce different output for the RGBA and LIBASS formats. VOs (or whatever generates the OSD) currently do not signal a preferred format, and this mechanism just exists to switch between RGBA and LIBASS formats correctly, preferring LIBASS if the VO supports it.
This commit is contained in:
4
sub/sd.h
4
sub/sd.h
@@ -37,8 +37,8 @@ struct sd_functions {
|
||||
bool (*accepts_packet)(struct sd *sd); // implicit default if NULL: true
|
||||
int (*control)(struct sd *sd, enum sd_ctrl cmd, void *arg);
|
||||
|
||||
void (*get_bitmaps)(struct sd *sd, struct mp_osd_res dim, double pts,
|
||||
struct sub_bitmaps *res);
|
||||
void (*get_bitmaps)(struct sd *sd, struct mp_osd_res dim, int format,
|
||||
double pts, struct sub_bitmaps *res);
|
||||
char *(*get_text)(struct sd *sd, double pts);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user