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

g726.h File Reference

Go to the source code of this file.

Typedefs

typedef g726_state_s g726_state_t
typedef int16_t(* g726_decoder_func_t )(g726_state_t *s, uint8_t code)
typedef uint8_t(* g726_encoder_func_t )(g726_state_t *s, int16_t amp)

Enumerations

enum  { G726_ENCODING_LINEAR = 0, G726_ENCODING_ULAW, G726_ENCODING_ALAW }
enum  { G726_PACKING_NONE = 0, G726_PACKING_LEFT = 1, G726_PACKING_RIGHT = 2 }

Functions

 SPAN_DECLARE (g726_state_t *) g726_init(g726_state_t *s
 SPAN_DECLARE (int) g726_release(g726_state_t *s)
 Generate a block of FSK modem audio samples.

Variables

int bit_rate
int int ext_coding
int int int packing
int16_t amp []
int16_t const uint8_t g726_data []
int16_t const uint8_t int g726_bytes
uint8_t const int16_t int len


Detailed Description


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Generate a block of FSK modem audio samples.

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 g726_state_t  ) 
 

Initialise a G.726 encode or decode context.

Parameters:
s The G.726 context.
bit_rate The required bit rate for the ADPCM data. The valid rates are 16000, 24000, 32000 and 40000.
ext_coding The coding used outside G.726.
packing One of the G.726_PACKING_xxx options.
Returns:
A pointer to the G.726 context, or NULL for error.


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