Mercurial > mplayer.hg
annotate stheader.h @ 1711:8ba9c06c359a
background color changed from black...
author | arpi |
---|---|
date | Mon, 27 Aug 2001 14:27:56 +0000 |
parents | cd77b8e28f82 |
children | 60afe3421c04 |
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; | |
1656 | 14 int inited; |
291 | 15 // output format: |
1369
7a2f1881b776
a_frame, v_frame killed, using sh_audio/video->timer. has_audio not more used after initialization.
arpi
parents:
1289
diff
changeset
|
16 float timer; // value of old a_frame |
291 | 17 int samplerate; |
18 int samplesize; | |
19 int channels; | |
746 | 20 int o_bps; // == samplerate*samplesize*channels (uncompr. bytes/sec) |
21 int i_bps; // == bitrate (compressed bytes/sec) | |
296 | 22 // in buffers: |
291 | 23 char* a_in_buffer; |
24 int a_in_buffer_len; | |
25 int a_in_buffer_size; | |
296 | 26 // out buffers: |
27 char* a_buffer; | |
28 int a_buffer_len; | |
29 int a_buffer_size; | |
758 | 30 int sample_format; |
291 | 31 // win32 codec stuff: |
32 AVIStreamHeader audio; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
33 WAVEFORMATEX *wf; |
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
34 // char wf_ext[64]; // in format |
291 | 35 WAVEFORMATEX o_wf; // out format |
36 HACMSTREAM srcstream; // handle | |
37 int audio_in_minsize; | |
38 int audio_out_minsize; | |
39 // other codecs: | |
587
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
40 // ac3_frame_t *ac3_frame; |
8511095c5283
stage#1 completed: c files no more included from mplayer.c
arpi_esp
parents:
432
diff
changeset
|
41 void* ac3_frame; |
291 | 42 int pcm_bswap; |
43 } sh_audio_t; | |
44 | |
45 typedef struct { | |
46 demux_stream_t *ds; | |
303 | 47 unsigned int format; |
48 codecs_t *codec; | |
1656 | 49 int inited; |
291 | 50 // output format: |
1369
7a2f1881b776
a_frame, v_frame killed, using sh_audio/video->timer. has_audio not more used after initialization.
arpi
parents:
1289
diff
changeset
|
51 float timer; // value of old v_frame |
291 | 52 float fps; |
53 float frametime; // 1/fps | |
1400 | 54 int i_bps; // == bitrate (compressed bytes/sec) |
399 | 55 int disp_w,disp_h; // display size (filled by fileformat parser) |
56 // int coded_w,coded_h; // coded size (filled by video codec) | |
303 | 57 unsigned int outfmtidx; |
291 | 58 // unsigned int bitrate; |
59 // buffers: | |
1400 | 60 float num_frames; // number of frames played |
1546 | 61 int num_frames_decoded; // number of frames decoded |
291 | 62 char *our_out_buffer; |
63 // win32 codec stuff: | |
64 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
65 BITMAPINFOHEADER *bih; // in format |
291 | 66 BITMAPINFOHEADER o_bih; // out format |
67 HIC hic; // handle | |
68 } sh_video_t; | |
69 | |
1289 | 70 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id); |
71 sh_video_t* new_sh_video(demuxer_t *demuxer,int id); | |
426 | 72 |