Mercurial > mplayer.hg
annotate stheader.h @ 1004:57972eb8127a
prefix add to config.h
author | pontscho |
---|---|
date | Mon, 04 Jun 2001 18:23:10 +0000 |
parents | 5a92a5601666 |
children | 3f490fad9bdf |
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; | |
758 | 28 int sample_format; |
291 | 29 // win32 codec stuff: |
30 AVIStreamHeader audio; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
31 WAVEFORMATEX *wf; |
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
32 // char wf_ext[64]; // in format |
291 | 33 WAVEFORMATEX o_wf; // out format |
34 HACMSTREAM srcstream; // handle | |
35 int audio_in_minsize; | |
36 int audio_out_minsize; | |
37 // other codecs: | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
38 // ac3_frame_t *ac3_frame; |
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
39 void* ac3_frame; |
291 | 40 int pcm_bswap; |
41 } sh_audio_t; | |
42 | |
43 typedef struct { | |
44 demux_stream_t *ds; | |
303 | 45 unsigned int format; |
46 codecs_t *codec; | |
291 | 47 // output format: |
48 float fps; | |
49 float frametime; // 1/fps | |
399 | 50 int disp_w,disp_h; // display size (filled by fileformat parser) |
51 // int coded_w,coded_h; // coded size (filled by video codec) | |
303 | 52 unsigned int outfmtidx; |
291 | 53 // unsigned int bitrate; |
54 // buffers: | |
55 char *our_out_buffer; | |
56 // win32 codec stuff: | |
57 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
58 BITMAPINFOHEADER *bih; // in format |
291 | 59 BITMAPINFOHEADER o_bih; // out format |
60 HIC hic; // handle | |
61 } sh_video_t; | |
62 | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
63 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
|
64 sh_video_t* new_sh_video(int id); |
426 | 65 |