summaryrefslogtreecommitdiffstats
path: root/stheader.h
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-06 01:18:59 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-06 01:18:59 +0000
commitd9a5713e26f69230f3dc35a8d9136d2d583f7b7f (patch)
tree0b23fc29e4255baa3aa03b76c63c11caa95d89cc /stheader.h
parentd81123c78b8d00d9a9534173ba69dc5c437f80d5 (diff)
downloadmpv-d9a5713e26f69230f3dc35a8d9136d2d583f7b7f.tar.bz2
mpv-d9a5713e26f69230f3dc35a8d9136d2d583f7b7f.tar.xz
sh_audio/sh_video added, general codec cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@292 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stheader.h')
-rw-r--r--stheader.h49
1 files changed, 49 insertions, 0 deletions
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;
+