From d9a5713e26f69230f3dc35a8d9136d2d583f7b7f Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Fri, 6 Apr 2001 01:18:59 +0000 Subject: sh_audio/sh_video added, general codec cleanup git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@292 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stheader.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 stheader.h (limited to 'stheader.h') diff --git a/stheader.h b/stheader.h new file mode 100644 index 0000000000..9fd5558c7c --- /dev/null +++ b/stheader.h @@ -0,0 +1,49 @@ +// Stream headers: + +typedef struct { + int driver; + // codec descriptor from codec.conf +} codecinfo_t; + +typedef struct { + demux_stream_t *ds; + codecinfo_t codec; + // output format: + int samplerate; + int samplesize; + int channels; + int o_bps; // == samplerate*samplesize*channels + // buffers: + char* a_in_buffer; + int a_in_buffer_len; + int a_in_buffer_size; + // win32 codec stuff: + AVIStreamHeader audio; + WAVEFORMATEX wf; + char wf_ext[64]; // in format + WAVEFORMATEX o_wf; // out format + HACMSTREAM srcstream; // handle + int audio_in_minsize; + int audio_out_minsize; + // other codecs: + ac3_frame_t *ac3_frame; + int pcm_bswap; +} sh_audio_t; + +typedef struct { + demux_stream_t *ds; + codecinfo_t codec; + // output format: + float fps; + float frametime; // 1/fps + unsigned int outfmt; +// unsigned int bitrate; + // buffers: + char *our_out_buffer; + // win32 codec stuff: + AVIStreamHeader video; + BITMAPINFOHEADER bih; // in format + BITMAPINFOHEADER o_bih; // out format + HIC hic; // handle +} sh_video_t; + -- cgit v1.2.3