Mercurial > mplayer.hg
comparison ima4.h @ 2420:311676805f20
ima4 mov audio support
author | arpi |
---|---|
date | Tue, 23 Oct 2001 13:56:44 +0000 |
parents | 35c767f8fea4 |
children |
comparison
equal
deleted
inserted
replaced
2419:24ba3dfb8e89 | 2420:311676805f20 |
---|---|
1 #ifndef QUICKTIME_IMA4_H | 1 #ifndef QUICKTIME_IMA4_H |
2 #define QUICKTIME_IMA4_H | 2 #define QUICKTIME_IMA4_H |
3 | 3 |
4 //#include "quicktime.h" | 4 //#include "quicktime.h" |
5 #include "inttypes.h" | 5 //#include "inttypes.h" |
6 | |
7 /* Known by divine revelation */ | |
8 | |
9 #define IMA4_BLOCK_SIZE 0x22 | |
10 #define IMA4_SAMPLES_PER_BLOCK 0x40 | |
11 | |
12 // in: out buffer, in buffer (IMA4_BLOCK_SIZE bytes), outbuf max size | |
13 // return: number of samples decoded | |
14 int ima4_decode_block(unsigned short *output, unsigned char *input, int maxlen); | |
15 | |
16 #if 0 | |
6 | 17 |
7 typedef struct | 18 typedef struct |
8 { | 19 { |
9 /* During decoding the work_buffer contains the most recently read chunk. */ | 20 /* During decoding the work_buffer contains the most recently read chunk. */ |
10 /* During encoding the work_buffer contains interlaced overflow samples */ | 21 /* During encoding the work_buffer contains interlaced overflow samples */ |
22 long work_size; | 33 long work_size; |
23 long work_overflow; /* Number of overflow samples from the last chunk written. */ | 34 long work_overflow; /* Number of overflow samples from the last chunk written. */ |
24 long read_size; /* Size of read buffer. */ | 35 long read_size; /* Size of read buffer. */ |
25 } quicktime_ima4_codec_t; | 36 } quicktime_ima4_codec_t; |
26 | 37 |
38 #endif | |
27 | 39 |
28 #endif | 40 #endif |