summaryrefslogtreecommitdiffstats
path: root/libmpdemux/stheader.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-13 18:38:29 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-13 18:38:29 +0000
commit48c301ddbcd5a1f4d396a3ccb8a8b00426f6b48b (patch)
treee3cef9b05980379fde688472272edb080d39d150 /libmpdemux/stheader.h
parent656bde87fa9adfe6539b791042054097c1bcc79d (diff)
downloadmpv-48c301ddbcd5a1f4d396a3ccb8a8b00426f6b48b.tar.bz2
mpv-48c301ddbcd5a1f4d396a3ccb8a8b00426f6b48b.tar.xz
Move sh_sub_t to stheader.h, where all the other sh structs are defined
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20892 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stheader.h')
-rw-r--r--libmpdemux/stheader.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h
index 43d0d32758..e4c1bac0c1 100644
--- a/libmpdemux/stheader.h
+++ b/libmpdemux/stheader.h
@@ -90,6 +90,20 @@ typedef struct {
void* context; // codec-specific stuff (usually HANDLE or struct pointer)
} sh_video_t;
+typedef struct {
+ int sid;
+ char type; // t = text, v = VobSub, a = SSA/ASS
+ int has_palette; // If we have a valid palette
+ unsigned int palette[16]; // for VobSubs
+ int width, height; // for VobSubs
+ int custom_colors;
+ unsigned int colors[4];
+ int forced_subs_only;
+#ifdef USE_ASS
+ ass_track_t* ass_track; // for SSA/ASS streams (type == 'a')
+#endif
+} sh_sub_t;
+
// demuxer.c:
#define new_sh_audio(d, i) new_sh_audio_aid(d, i, i)
sh_audio_t* new_sh_audio_aid(demuxer_t *demuxer,int id,int aid);