Mercurial > mplayer.hg
annotate adpcm.h @ 3905:91e5c563fce5
SSE added
author | arpi |
---|---|
date | Sun, 30 Dec 2001 20:26:19 +0000 |
parents | e3caff2daa98 |
children | 60db4273246d |
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 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
13 // 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
|
14 #define FOX62_ADPCM_PREAMBLE_SIZE 8 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
15 #define FOX62_ADPCM_BLOCK_SIZE 0x400 |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
16 #define FOX62_ADPCM_SAMPLES_PER_BLOCK \ |
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
17 ((FOX62_ADPCM_BLOCK_SIZE - FOX62_ADPCM_PREAMBLE_SIZE) * 2) |
3756 | 18 |
3787 | 19 int ima_adpcm_decode_block(unsigned short *output, unsigned char *input, |
20 int channels); | |
21 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
|
22 int channels, int block_size); |
3826
8a88ed2473aa
added initial, not-yet-functional, support for fox62 audio
melanson
parents:
3787
diff
changeset
|
23 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
|
24 int channels); |
3756 | 25 |
26 #endif |