comparison libmpdemux/demuxer.h @ 5133:9841a86d66f9

Initial ogg demuxer. No seeking, a/v sync is broken. Support avi with ogg/vorbis audio.
author albeu
date Sat, 16 Mar 2002 14:32:03 +0000
parents 429994672d8c
children dd79075bbd98
comparison
equal deleted inserted replaced
5132:cfccb5dbe992 5133:9841a86d66f9
20 #define DEMUXER_TYPE_NUV 13 20 #define DEMUXER_TYPE_NUV 13
21 #define DEMUXER_TYPE_FILM 14 21 #define DEMUXER_TYPE_FILM 14
22 #define DEMUXER_TYPE_ROQ 15 22 #define DEMUXER_TYPE_ROQ 15
23 #define DEMUXER_TYPE_MF 16 23 #define DEMUXER_TYPE_MF 16
24 #define DEMUXER_TYPE_AUDIO 17 24 #define DEMUXER_TYPE_AUDIO 17
25 #define DEMUXER_TYPE_OGG 18
25 // This should always match the higest demuxer type number. 26 // This should always match the higest demuxer type number.
26 // Unless you want to disallow users to force the demuxer to some types 27 // Unless you want to disallow users to force the demuxer to some types
27 #define DEMUXER_TYPE_MAX 17 28 #define DEMUXER_TYPE_MAX 18
28 29
29 #define DEMUXER_TYPE_DEMUXERS (1<<16) 30 #define DEMUXER_TYPE_DEMUXERS (1<<16)
30 // A virtual demuxer type for the network code 31 // A virtual demuxer type for the network code
31 #define DEMUXER_TYPE_PLAYLIST (2<<16) 32 #define DEMUXER_TYPE_PLAYLIST (2<<16)
32 33
165 166
166 void ds_free_packs(demux_stream_t *ds); 167 void ds_free_packs(demux_stream_t *ds);
167 int ds_get_packet(demux_stream_t *ds,unsigned char **start); 168 int ds_get_packet(demux_stream_t *ds,unsigned char **start);
168 int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start); 169 int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start);
169 170
171 // This is defined here because demux_stream_t ins't defined in stream.h
172 stream_t* new_ds_stream(demux_stream_t *ds);
170 173
171 static inline int avi_stream_id(unsigned int id){ 174 static inline int avi_stream_id(unsigned int id){
172 unsigned char *p=(unsigned char *)&id; 175 unsigned char *p=(unsigned char *)&id;
173 unsigned char a,b; 176 unsigned char a,b;
174 #if WORDS_BIGENDIAN 177 #if WORDS_BIGENDIAN