mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 02:22:19 +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.
35 lines
1017 B
C
35 lines
1017 B
C
#ifndef MPLAYER_DEC_SUB_H
|
|
#define MPLAYER_DEC_SUB_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "sub/sub.h"
|
|
|
|
struct sh_sub;
|
|
struct ass_track;
|
|
struct MPOpts;
|
|
|
|
bool is_text_sub(const char *t);
|
|
bool is_ass_sub(const char *t);
|
|
bool is_dvd_sub(const char *t);
|
|
|
|
void sub_decode(struct sh_sub *sh, struct osd_state *osd, void *data,
|
|
int data_len, double pts, double duration);
|
|
void sub_get_bitmaps(struct osd_state *osd, struct mp_osd_res dim, double pts,
|
|
struct sub_bitmaps *res);
|
|
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);
|
|
|
|
struct sh_sub *sd_ass_create_from_track(struct ass_track *track,
|
|
bool vsfilter_aspect,
|
|
struct MPOpts *opts);
|
|
|
|
#ifdef CONFIG_ASS
|
|
struct ass_track *sub_get_ass_track(struct osd_state *osd);
|
|
#endif
|
|
|
|
#endif
|