Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ima_adpcm.h File Reference

Go to the source code of this file.

Typedefs

typedef ima_adpcm_state_s ima_adpcm_state_t

Enumerations

enum  { IMA_ADPCM_IMA4 = 0, IMA_ADPCM_DVI4 = 1, IMA_ADPCM_VDVI = 2 }

Functions

 SPAN_DECLARE (ima_adpcm_state_t *) ima_adpcm_init(ima_adpcm_state_t *s
 SPAN_DECLARE (int) ima_adpcm_release(ima_adpcm_state_t *s)
 Release an HDLC receiver context.

Variables

int variant
int int chunk_size
uint8_t ima_data []
uint8_t const int16_t amp []
uint8_t const int16_t int len
int16_t const uint8_t int ima_bytes


Detailed Description


Typedef Documentation

typedef struct ima_adpcm_state_s 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.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
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


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Release an HDLC receiver context.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE ima_adpcm_state_t  ) 
 

Initialise an IMA ADPCM encode or decode context.

Parameters:
s The IMA ADPCM context
variant ???
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.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1