Mercurial > mplayer.hg
annotate stheader.h @ 757:8814b8de8b4e
audio review: pcm hardware formats, uLaw support
author | arpi_esp |
---|---|
date | Fri, 11 May 2001 01:20:59 +0000 |
parents | cd1f0d4de0b8 |
children | 5a92a5601666 |
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; | |
746 | 18 int o_bps; // == samplerate*samplesize*channels (uncompr. bytes/sec) |
19 int i_bps; // == bitrate (compressed bytes/sec) | |
296 | 20 // in buffers: |
291 | 21 char* a_in_buffer; |
22 int a_in_buffer_len; | |
23 int a_in_buffer_size; | |
296 | 24 // out buffers: |
25 char* a_buffer; | |
26 int a_buffer_len; | |
27 int a_buffer_size; | |
291 | 28 // win32 codec stuff: |
29 AVIStreamHeader audio; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
30 WAVEFORMATEX *wf; |
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
31 // char wf_ext[64]; // in format |
291 | 32 WAVEFORMATEX o_wf; // out format |
33 HACMSTREAM srcstream; // handle | |
34 int audio_in_minsize; | |
35 int audio_out_minsize; | |
36 // other codecs: | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
37 // ac3_frame_t *ac3_frame; |
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
38 void* ac3_frame; |
291 | 39 int pcm_bswap; |
40 } sh_audio_t; | |
41 | |
42 typedef struct { | |
43 demux_stream_t *ds; | |
303 | 44 unsigned int format; |
45 codecs_t *codec; | |
291 | 46 // output format: |
47 float fps; | |
48 float frametime; // 1/fps | |
399 | 49 int disp_w,disp_h; // display size (filled by fileformat parser) |
50 // int coded_w,coded_h; // coded size (filled by video codec) | |
303 | 51 unsigned int outfmtidx; |
291 | 52 // unsigned int bitrate; |
53 // buffers: | |
54 char *our_out_buffer; | |
55 // win32 codec stuff: | |
56 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
57 BITMAPINFOHEADER *bih; // in format |
291 | 58 BITMAPINFOHEADER o_bih; // out format |
59 HIC hic; // handle | |
60 } sh_video_t; | |
61 | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
62 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
|
63 sh_video_t* new_sh_video(int id); |
426 | 64 |