Go to the source code of this file.
◆ ima_adpcm_state_t
IMA (DVI/Intel) ADPCM conversion state descriptor. This defines the state of a single working instance of the IMA ADPCM converter. This is used for either linear to ADPCM or ADPCM to linear conversion. 
 
 
◆ anonymous enum
| Enumerator | 
|---|
| IMA_ADPCM_IMA4 | IMA4 is the original IMA ADPCM variant  | 
| IMA_ADPCM_DVI4 | DVI4 is the IMA ADPCM variant defined in RFC3551  | 
| IMA_ADPCM_VDVI | VDVI is the variable bit rate IMA ADPCM variant defined in RFC3551  | 
 
 
◆ ima_adpcm_decode()
      
        
          | int ima_adpcm_decode | ( | ima_adpcm_state_t * | s, | 
        
          |  |  | int16_t | amp[], | 
        
          |  |  | const uint8_t | ima_data[], | 
        
          |  |  | int | ima_bytes | 
        
          |  | ) |  |  | 
      
 
 
◆ ima_adpcm_encode()
      
        
          | int ima_adpcm_encode | ( | ima_adpcm_state_t * | s, | 
        
          |  |  | uint8_t | ima_data[], | 
        
          |  |  | const int16_t | amp[], | 
        
          |  |  | int | len | 
        
          |  | ) |  |  | 
      
 
 
◆ ima_adpcm_free()
Free an IMA ADPCM encode or decode context. 
- Parameters
- 
  
  
- Returns
- 0 for OK. 
 
 
◆ ima_adpcm_init()
Initialise an IMA ADPCM encode or decode context. 
- Parameters
- 
  
    | s | The IMA ADPCM context. |  | variant | IMA_ADPCM_IMA4, IMA_ADPCM_DVI4, or IMA_ADPCM_VDVI. |  | chunk_size | The size of a chunk, in samples. A chunk size of zero sample samples means treat each encode or decode operation as a chunk. |  
 
- Returns
- A pointer to the IMA ADPCM context, or NULL for error. 
References ima_adpcm_state_s::chunk_size.
 
 
◆ ima_adpcm_release()
Release an IMA ADPCM encode or decode context. 
- Parameters
- 
  
  
- Returns
- 0 for OK.