mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 04:45:33 +00:00
331982b99c
Get rid of the 1-char subtitle type field. Use sh_stream->codec instead just like audio and video do. Use codec names as defined by libavcodec for simplicity, even if they're somewhat verbose and annoying. Note that ffmpeg might switch to "ass" as codec name for ASS, so we don't bother with the current silly "ssa" name.
20 lines
673 B
C
20 lines
673 B
C
#ifndef MPLAYER_SD_H
|
|
#define MPLAYER_SD_H
|
|
|
|
#include "dec_sub.h"
|
|
|
|
struct sd_functions {
|
|
bool (*probe)(struct sh_sub *sh);
|
|
int (*init)(struct sh_sub *sh, struct osd_state *osd);
|
|
void (*decode)(struct sh_sub *sh, struct osd_state *osd,
|
|
void *data, int data_len, double pts, double duration);
|
|
void (*get_bitmaps)(struct sh_sub *sh, struct osd_state *osd,
|
|
struct mp_osd_res dim, double pts,
|
|
struct sub_bitmaps *res);
|
|
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
|