Mercurial > mplayer.hg
annotate libmpdemux/stheader.h @ 3343:58ab1490a0be
dunnowhat Q/A de biztos jo
author | gabucino |
---|---|
date | Wed, 05 Dec 2001 23:07:05 +0000 |
parents | ea6158be8103 |
children | 2cef9d562af0 |
rev | line source |
---|---|
291 | 1 // Stream headers: |
2 | |
2338 | 3 #include "wine/mmreg.h" |
4 #include "wine/avifmt.h" | |
5 #include "wine/vfw.h" | |
291 | 6 |
7 typedef struct { | |
8 demux_stream_t *ds; | |
303 | 9 unsigned int format; |
2310 | 10 struct codecs_st *codec; |
1656 | 11 int inited; |
291 | 12 // 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
|
13 float timer; // value of old a_frame |
291 | 14 int samplerate; |
15 int samplesize; | |
16 int channels; | |
746 | 17 int o_bps; // == samplerate*samplesize*channels (uncompr. bytes/sec) |
18 int i_bps; // == bitrate (compressed bytes/sec) | |
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; | |
758 | 27 int sample_format; |
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; |
1828 | 40 #ifdef HAVE_OGGVORBIS |
2341 | 41 struct ov_struct_st *ov; // should be assigned on init |
1828 | 42 #endif |
291 | 43 } sh_audio_t; |
44 | |
45 typedef struct { | |
46 demux_stream_t *ds; | |
303 | 47 unsigned int format; |
2310 | 48 struct codecs_st *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) | |
2031
624df8ea0e0e
New aspect prescale code, parses aspect value from mpeg sequence header or commandline.
atmos4
parents:
1828
diff
changeset
|
57 float aspect; |
303 | 58 unsigned int outfmtidx; |
291 | 59 // unsigned int bitrate; |
60 // buffers: | |
1400 | 61 float num_frames; // number of frames played |
1546 | 62 int num_frames_decoded; // number of frames decoded |
291 | 63 char *our_out_buffer; |
64 // win32 codec stuff: | |
65 AVIStreamHeader video; | |
432
5251b0c57e39
sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
arpi_esp
parents:
426
diff
changeset
|
66 BITMAPINFOHEADER *bih; // in format |
291 | 67 BITMAPINFOHEADER o_bih; // out format |
68 HIC hic; // handle | |
69 } sh_video_t; | |
70 | |
1289 | 71 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id); |
72 sh_video_t* new_sh_video(demuxer_t *demuxer,int id); | |
426 | 73 |
2567 | 74 int video_read_properties(sh_video_t *sh_video); |
75 int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char** start,int force_fps); |