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