diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-16 20:03:08 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 14:58:09 +0200 |
commit | e990fb2ffeaa786339895c8f3b3f104ef536bf39 (patch) | |
tree | 383aaa216cd5d1f7c4dd75f7c27cfbaadaa7970a /libmpdemux/stheader.h | |
parent | 8636eb77c5f9f1e49a12e3e1653fe4c2e8e0bfc3 (diff) | |
download | mpv-e990fb2ffeaa786339895c8f3b3f104ef536bf39.tar.bz2 mpv-e990fb2ffeaa786339895c8f3b3f104ef536bf39.tar.xz |
subtitles: add framework for subtitle decoders
Add a framework for subtitle decoder modules that work more like
audio/video decoders do, and change libass rendering of demuxed
subtitles to use the new framework.
The old subtitle code is messy, with details specific to handling
particular subtitle types spread over high-level code. This should
make it easier to clean things up and fix some bugs/limitations.
Diffstat (limited to 'libmpdemux/stheader.h')
-rw-r--r-- | libmpdemux/stheader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index 4bb2da3ac7..dc84518abc 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -19,6 +19,8 @@ #ifndef MPLAYER_STHEADER_H #define MPLAYER_STHEADER_H +#include <stdbool.h> + #include "aviheader.h" #include "ms_hdr.h" struct MPOpts; @@ -135,9 +137,10 @@ typedef struct sh_sub { SH_COMMON int sid; char type; // t = text, v = VobSub, a = SSA/ASS + bool active; // after track switch decoder may stay initialized, not active unsigned char* extradata; // extra header data passed from demuxer int extradata_len; - struct ass_track *ass_track; // for SSA/ASS streams (type == 'a') + const struct sd_functions *sd_driver; } sh_sub_t; // demuxer.c: |