Mercurial > mplayer.hg
comparison libmpdemux/stheader.h @ 3642:2cef9d562af0
void* context added - it should keep the codec-specific stuff (struct ptr or HANDLE)
author | arpi |
---|---|
date | Fri, 21 Dec 2001 16:17:24 +0000 |
parents | ea6158be8103 |
children | b75f3bb25261 |
comparison
equal
deleted
inserted
replaced
3641:33c560ffd3dc | 3642:2cef9d562af0 |
---|---|
32 WAVEFORMATEX o_wf; // out format | 32 WAVEFORMATEX o_wf; // out format |
33 HACMSTREAM srcstream; // handle | 33 HACMSTREAM srcstream; // handle |
34 int audio_in_minsize; | 34 int audio_in_minsize; |
35 int audio_out_minsize; | 35 int audio_out_minsize; |
36 // other codecs: | 36 // other codecs: |
37 void* context; // codec-specific stuff (usually HANDLE or struct pointer) | |
37 // ac3_frame_t *ac3_frame; | 38 // ac3_frame_t *ac3_frame; |
38 void* ac3_frame; | 39 void* ac3_frame; // TODO: use *context |
39 int pcm_bswap; | 40 int pcm_bswap; |
40 #ifdef HAVE_OGGVORBIS | 41 #ifdef HAVE_OGGVORBIS |
41 struct ov_struct_st *ov; // should be assigned on init | 42 struct ov_struct_st *ov; // should be assigned on init TODO: use *context |
42 #endif | 43 #endif |
43 } sh_audio_t; | 44 } sh_audio_t; |
44 | 45 |
45 typedef struct { | 46 typedef struct { |
46 demux_stream_t *ds; | 47 demux_stream_t *ds; |
63 char *our_out_buffer; | 64 char *our_out_buffer; |
64 // win32 codec stuff: | 65 // win32 codec stuff: |
65 AVIStreamHeader video; | 66 AVIStreamHeader video; |
66 BITMAPINFOHEADER *bih; // in format | 67 BITMAPINFOHEADER *bih; // in format |
67 BITMAPINFOHEADER o_bih; // out format | 68 BITMAPINFOHEADER o_bih; // out format |
69 void* context; // codec-specific stuff (usually HANDLE or struct pointer) | |
68 HIC hic; // handle | 70 HIC hic; // handle |
69 } sh_video_t; | 71 } sh_video_t; |
70 | 72 |
71 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id); | 73 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id); |
72 sh_video_t* new_sh_video(demuxer_t *demuxer,int id); | 74 sh_video_t* new_sh_video(demuxer_t *demuxer,int id); |