summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.h
blob: d6fbef25f0461382b6289cab2f4911e8683db113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct sh_sub;
struct osd_state;

static inline bool is_text_sub(int type)
{
    return type == 't' || type == 'm' || type == 'a';
}

void sub_decode(struct sh_sub *sh, struct osd_state *osd, void *data,
                int data_len, double pts, double duration);
void sub_init(struct sh_sub *sh, struct osd_state *osd);
void sub_reset(struct sh_sub *sh, struct osd_state *osd);
void sub_switchoff(struct sh_sub *sh, struct osd_state *osd);
void sub_uninit(struct sh_sub *sh);