Mercurial > mplayer.hg
annotate adpcm.h @ 5114:1f668483b7ff
faszom.
author | arpi |
---|---|
date | Fri, 15 Mar 2002 22:29:22 +0000 |
parents | 4a6dde59834c |
children | f9cd6381e327 |
rev | line source |
---|---|
3756 | 1 #ifndef ADPCM_H |
2 #define ADPCM_H | |
3 | |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
4 #define IMA_ADPCM_PREAMBLE_SIZE 2 |
3756 | 5 #define IMA_ADPCM_BLOCK_SIZE 0x22 |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
6 #define IMA_ADPCM_SAMPLES_PER_BLOCK \ |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
7 ((IMA_ADPCM_BLOCK_SIZE - IMA_ADPCM_PREAMBLE_SIZE) * 2) |
3756 | 8 |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
9 #define MS_ADPCM_PREAMBLE_SIZE 7 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
10 #define MS_ADPCM_SAMPLES_PER_BLOCK \ |
3875
e3caff2daa98
fixed stereo MS ADPCM decoder and reinstated opensource decoder as the
melanson
parents:
3826
diff
changeset
|
11 ((sh_audio->wf->nBlockAlign - MS_ADPCM_PREAMBLE_SIZE) * 2) |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
12 |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
13 #define DK4_ADPCM_PREAMBLE_SIZE 4 |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
14 #define DK4_ADPCM_SAMPLES_PER_BLOCK \ |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
15 (((sh_audio->wf->nBlockAlign - DK4_ADPCM_PREAMBLE_SIZE) * 2) + 1) |
3933
60db4273246d
added initial support for format 0x61 ADPCM (sounds good, but still pops)
melanson
parents:
3875
diff
changeset
|
16 |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
17 // pretend there's such a thing as mono for this format |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
18 #define DK3_ADPCM_PREAMBLE_SIZE 8 |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
19 #define DK3_ADPCM_BLOCK_SIZE 0x400 |
4001 | 20 // this isn't exact |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
21 #define DK3_ADPCM_SAMPLES_PER_BLOCK 6000 |
3756 | 22 |
3787 | 23 int ima_adpcm_decode_block(unsigned short *output, unsigned char *input, |
24 int channels); | |
25 int ms_adpcm_decode_block(unsigned short *output, unsigned char *input, | |
3875
e3caff2daa98
fixed stereo MS ADPCM decoder and reinstated opensource decoder as the
melanson
parents:
3826
diff
changeset
|
26 int channels, int block_size); |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
27 int dk4_adpcm_decode_block(unsigned short *output, unsigned char *input, |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
28 int channels, int block_size); |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
29 int dk3_adpcm_decode_block(unsigned short *output, unsigned char *input); |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
30 |
3756 | 31 #endif |