comparison libmpdemux/demuxer.h @ 30088:4977e04f3a18

Add support for parsing audio streams (though should be easy to extend to video) via libavcodec. Parsing can be done at the demuxer stage (currently disabled) or at the decoder (ad_ffmpeg, enabled). Should allow using the libavcodec AAC, DTS, ... decoders independent of container format.
author reimar
date Sun, 27 Dec 2009 15:28:01 +0000
parents 25ff7b370523
children a16c4f8a1614
comparison
equal deleted inserted replaced
30087:081f53690522 30088:4977e04f3a18
380 void ds_free_packs(demux_stream_t *ds); 380 void ds_free_packs(demux_stream_t *ds);
381 int ds_get_packet(demux_stream_t *ds,unsigned char **start); 381 int ds_get_packet(demux_stream_t *ds,unsigned char **start);
382 int ds_get_packet_pts(demux_stream_t *ds, unsigned char **start, double *pts); 382 int ds_get_packet_pts(demux_stream_t *ds, unsigned char **start, double *pts);
383 int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start); 383 int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start);
384 double ds_get_next_pts(demux_stream_t *ds); 384 double ds_get_next_pts(demux_stream_t *ds);
385 int ds_parse(demux_stream_t *sh, uint8_t **buffer, int *len, double pts, off_t pos);
385 386
386 // This is defined here because demux_stream_t ins't defined in stream.h 387 // This is defined here because demux_stream_t ins't defined in stream.h
387 stream_t* new_ds_stream(demux_stream_t *ds); 388 stream_t* new_ds_stream(demux_stream_t *ds);
388 389
389 static inline int avi_stream_id(unsigned int id){ 390 static inline int avi_stream_id(unsigned int id){