2011-01-16 18:03:08 +00:00
|
|
|
#ifndef MPLAYER_SD_H
|
|
|
|
#define MPLAYER_SD_H
|
|
|
|
|
|
|
|
struct osd_state;
|
|
|
|
struct sh_sub;
|
2012-08-25 18:22:39 +00:00
|
|
|
struct sub_bitmaps;
|
2011-01-16 18:03:08 +00:00
|
|
|
|
|
|
|
struct sd_functions {
|
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,
|
|
|
|
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
|