Mercurial > mplayer.hg
annotate adpcm.h @ 3854:c8aaa63aaaf5
no fix can be expected until saturday :(
author | arpi |
---|---|
date | Fri, 28 Dec 2001 21:15:56 +0000 |
parents | 8a88ed2473aa |
children | e3caff2daa98 |
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 |
3787 | 10 #define MS_ADPCM_BLOCK_SIZE 256 |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
11 #define MS_ADPCM_SAMPLES_PER_BLOCK \ |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
12 ((MS_ADPCM_BLOCK_SIZE - MS_ADPCM_PREAMBLE_SIZE) * 2) |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
13 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
14 // pretend there's such a thing as mono for this format |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
15 #define FOX62_ADPCM_PREAMBLE_SIZE 8 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
16 #define FOX62_ADPCM_BLOCK_SIZE 0x400 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
17 #define FOX62_ADPCM_SAMPLES_PER_BLOCK \ |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
18 ((FOX62_ADPCM_BLOCK_SIZE - FOX62_ADPCM_PREAMBLE_SIZE) * 2) |
3756 | 19 |
3787 | 20 int ima_adpcm_decode_block(unsigned short *output, unsigned char *input, |
21 int channels); | |
22 int ms_adpcm_decode_block(unsigned short *output, unsigned char *input, | |
23 int channels); | |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
24 int fox62_adpcm_decode_block(unsigned short *output, unsigned char *input, |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
25 int channels); |
3756 | 26 |
27 #endif |