Go to the source code of this file.
Classes | |
| struct | ima_adpcm_state_t |
Functions | |
| ima_adpcm_state_t * | ima_adpcm_init (ima_adpcm_state_t *s) |
| int | ima_adpcm_release (ima_adpcm_state_t *s) |
| int | ima_adpcm_to_linear (ima_adpcm_state_t *s, int16_t *amp, const uint8_t *ima_data, int ima_bytes) |
| int | ima_linear_to_adpcm (ima_adpcm_state_t *s, uint8_t *ima_data, const int16_t *amp, int samples) |
| ima_adpcm_state_t* ima_adpcm_init | ( | ima_adpcm_state_t * | s | ) |
Initialise an IMA ADPCM encode or decode context.
| s | The IMA ADPCM context |
| int ima_adpcm_release | ( | ima_adpcm_state_t * | s | ) |
Free an IMA ADPCM encode or decode context.
| s | The IMA ADPCM context. |
| int ima_adpcm_to_linear | ( | ima_adpcm_state_t * | s, | |
| int16_t * | amp, | |||
| const uint8_t * | ima_data, | |||
| int | ima_bytes | |||
| ) |
Decode a buffer of IMA ADPCM data to linear PCM.
| s | The IMA ADPCM context. | |
| amp | ||
| ima_data | ||
| ima_bytes |
| int ima_linear_to_adpcm | ( | ima_adpcm_state_t * | s, | |
| uint8_t * | ima_data, | |||
| const int16_t * | amp, | |||
| int | samples | |||
| ) |
Encode a buffer of linear PCM data to IMA ADPCM.
| s | The IMA ADPCM context. | |
| ima_data | ||
| amp | ||
| samples |
1.4.7