summaryrefslogtreecommitdiffstats
path: root/ima4.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-23 13:56:44 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-23 13:56:44 +0000
commit5462f7f5275121516786450f35053901e7d48b22 (patch)
tree876fca85993bfe1cc9cef4be56bd8a1bb9fba663 /ima4.h
parentadfdd89012aec17df319824f712acd817a26154e (diff)
downloadmpv-5462f7f5275121516786450f35053901e7d48b22.tar.bz2
mpv-5462f7f5275121516786450f35053901e7d48b22.tar.xz
ima4 mov audio support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2421 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'ima4.h')
-rw-r--r--ima4.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ima4.h b/ima4.h
index ec2ed1a107..07585e69d1 100644
--- a/ima4.h
+++ b/ima4.h
@@ -2,7 +2,18 @@
#define QUICKTIME_IMA4_H
//#include "quicktime.h"
-#include "inttypes.h"
+//#include "inttypes.h"
+
+/* Known by divine revelation */
+
+#define IMA4_BLOCK_SIZE 0x22
+#define IMA4_SAMPLES_PER_BLOCK 0x40
+
+// in: out buffer, in buffer (IMA4_BLOCK_SIZE bytes), outbuf max size
+// return: number of samples decoded
+int ima4_decode_block(unsigned short *output, unsigned char *input, int maxlen);
+
+#if 0
typedef struct
{
@@ -24,5 +35,6 @@ typedef struct
long read_size; /* Size of read buffer. */
} quicktime_ima4_codec_t;
+#endif
#endif