Mercurial > mplayer.hg
annotate adpcm.h @ 5489:5e6e08ff47d5
dvdnav support improved - patch by Kees Cook <mplayer@outflux.net>
spudec initialization cleanup(?)
author | arpi |
---|---|
date | Thu, 04 Apr 2002 14:44:47 +0000 |
parents | f9cd6381e327 |
children |
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 |
5408 | 23 int qt_ima_adpcm_decode_block(unsigned short *output, unsigned char *input, |
3787 | 24 int channels); |
5408 | 25 int ms_ima_adpcm_decode_block(unsigned short *output, unsigned char *input, |
26 int channels, int block_size); | |
3787 | 27 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
|
28 int channels, int block_size); |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
29 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
|
30 int channels, int block_size); |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4001
diff
changeset
|
31 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
|
32 |
3756 | 33 #endif |