Mercurial > mplayer.hg
annotate stheader.h @ 699:a0bd25f1165b
question & answer for 44/48Khz dilemma
author | gabucino |
---|---|
date | Sat, 05 May 2001 14:59:52 +0000 |
parents | 8511095c5283 |
children | cd1f0d4de0b8 |
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: | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
36 // ac3_frame_t *ac3_frame; |
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
37 void* ac3_frame; |
291 | 38 int pcm_bswap; |
39 } sh_audio_t; | |
40 | |
41 typedef struct { | |
42 demux_stream_t *ds; | |
303 | 43 unsigned int format; |
44 codecs_t *codec; | |
291 | 45 // output format: |
46 float fps; | |
47 float frametime; // 1/fps | |
399 | 48 int disp_w,disp_h; // display size (filled by fileformat parser) |
49 // int coded_w,coded_h; // coded size (filled by video codec) | |
303 | 50 unsigned int outfmtidx; |
291 | 51 // unsigned int bitrate; |
52 // buffers: | |
53 char *our_out_buffer; | |
54 // win32 codec stuff: | |
55 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
56 BITMAPINFOHEADER *bih; // in format |
291 | 57 BITMAPINFOHEADER o_bih; // out format |
58 HIC hic; // handle | |
59 } sh_video_t; | |
60 | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
61 sh_audio_t* new_sh_audio(int id); |
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
62 sh_video_t* new_sh_video(int id); |
426 | 63 |