Mercurial > mplayer.hg
annotate stheader.h @ 464:edea605a4a5d
add mixer support
author | pontscho |
---|---|
date | Mon, 16 Apr 2001 00:49:32 +0000 |
parents | 5251b0c57e39 |
children | 8511095c5283 |
rev | line source |
---|---|
291 | 1 // Stream headers: |
2 | |
303 | 3 /* |
291 | 4 typedef struct { |
5 int driver; | |
6 // codec descriptor from codec.conf | |
7 } codecinfo_t; | |
303 | 8 */ |
291 | 9 |
10 typedef struct { | |
11 demux_stream_t *ds; | |
303 | 12 unsigned int format; |
13 codecs_t *codec; | |
291 | 14 // output format: |
15 int samplerate; | |
16 int samplesize; | |
17 int channels; | |
18 int o_bps; // == samplerate*samplesize*channels | |
296 | 19 // in buffers: |
291 | 20 char* a_in_buffer; |
21 int a_in_buffer_len; | |
22 int a_in_buffer_size; | |
296 | 23 // out buffers: |
24 char* a_buffer; | |
25 int a_buffer_len; | |
26 int a_buffer_size; | |
291 | 27 // win32 codec stuff: |
28 AVIStreamHeader audio; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
29 WAVEFORMATEX *wf; |
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
30 // char wf_ext[64]; // in format |
291 | 31 WAVEFORMATEX o_wf; // out format |
32 HACMSTREAM srcstream; // handle | |
33 int audio_in_minsize; | |
34 int audio_out_minsize; | |
35 // other codecs: | |
36 ac3_frame_t *ac3_frame; | |
37 int pcm_bswap; | |
38 } sh_audio_t; | |
39 | |
40 typedef struct { | |
41 demux_stream_t *ds; | |
303 | 42 unsigned int format; |
43 codecs_t *codec; | |
291 | 44 // output format: |
45 float fps; | |
46 float frametime; // 1/fps | |
399 | 47 int disp_w,disp_h; // display size (filled by fileformat parser) |
48 // int coded_w,coded_h; // coded size (filled by video codec) | |
303 | 49 unsigned int outfmtidx; |
291 | 50 // unsigned int bitrate; |
51 // buffers: | |
52 char *our_out_buffer; | |
53 // win32 codec stuff: | |
54 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
55 BITMAPINFOHEADER *bih; // in format |
291 | 56 BITMAPINFOHEADER o_bih; // out format |
57 HIC hic; // handle | |
58 } sh_video_t; | |
59 | |
426 | 60 |