2011-01-16 18:03:08 +00:00
|
|
|
#ifndef MPLAYER_SD_H
|
|
|
|
#define MPLAYER_SD_H
|
|
|
|
|
VO, sub: refactor
Remove VFCTRL_DRAW_OSD, VFCAP_EOSD_FILTER, VFCAP_EOSD_RGBA, VFCAP_EOSD,
VOCTRL_DRAW_EOSD, VOCTRL_GET_EOSD_RES, VOCTRL_QUERY_EOSD_FORMAT.
Remove draw_osd_with_eosd(), which rendered the OSD by calling
VOCTRL_DRAW_EOSD. Change VOs to call osd_draw() directly, which takes
a callback as argument. (This basically works like the old OSD API,
except multiple OSD bitmap formats are supported and caching is
possible.)
Remove all mentions of "eosd". It's simply "osd" now.
Make OSD size per-OSD-object, as they can be different when using
vf_sub. Include display_par/video_par in resolution change detection.
Fix the issue with margin borders in vo_corevideo.
2012-10-19 17:25:18 +00:00
|
|
|
#include "dec_sub.h"
|
2011-01-16 18:03:08 +00:00
|
|
|
|
|
|
|
struct sd_functions {
|
2013-04-15 19:25:21 +00:00
|
|
|
bool (*probe)(struct sh_sub *sh);
|
2012-08-16 15:21:21 +00:00
|
|
|
int (*init)(struct sh_sub *sh, struct osd_state *osd);
|
2011-01-16 18:03:08 +00:00
|
|
|
void (*decode)(struct sh_sub *sh, struct osd_state *osd,
|
|
|
|
void *data, int data_len, double pts, double duration);
|
2012-08-25 18:22:39 +00:00
|
|
|
void (*get_bitmaps)(struct sh_sub *sh, struct osd_state *osd,
|
VO, sub: refactor
Remove VFCTRL_DRAW_OSD, VFCAP_EOSD_FILTER, VFCAP_EOSD_RGBA, VFCAP_EOSD,
VOCTRL_DRAW_EOSD, VOCTRL_GET_EOSD_RES, VOCTRL_QUERY_EOSD_FORMAT.
Remove draw_osd_with_eosd(), which rendered the OSD by calling
VOCTRL_DRAW_EOSD. Change VOs to call osd_draw() directly, which takes
a callback as argument. (This basically works like the old OSD API,
except multiple OSD bitmap formats are supported and caching is
possible.)
Remove all mentions of "eosd". It's simply "osd" now.
Make OSD size per-OSD-object, as they can be different when using
vf_sub. Include display_par/video_par in resolution change detection.
Fix the issue with margin borders in vo_corevideo.
2012-10-19 17:25:18 +00:00
|
|
|
struct mp_osd_res dim, double pts,
|
2012-08-25 18:22:39 +00:00
|
|
|
struct sub_bitmaps *res);
|
2011-01-16 18:03:08 +00:00
|
|
|
void (*reset)(struct sh_sub *sh, struct osd_state *osd);
|
|
|
|
void (*switch_off)(struct sh_sub *sh, struct osd_state *osd);
|
|
|
|
void (*uninit)(struct sh_sub *sh);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|