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

g722.h File Reference

Go to the source code of this file.

Typedefs

typedef g722_encode_state_s g722_encode_state_t
typedef g722_decode_state_s g722_decode_state_t

Enumerations

enum  { G722_SAMPLE_RATE_8000 = 0x0001, G722_PACKED = 0x0002 }

Functions

 SPAN_DECLARE (g722_encode_state_t *) g722_encode_init(g722_encode_state_t *s
 SPAN_DECLARE (int) g722_encode_release(g722_encode_state_t *s)
 Generate a block of FSK modem audio samples.
 SPAN_DECLARE (g722_decode_state_t *) g722_decode_init(g722_decode_state_t *s

Variables

int rate
int int options
uint8_t g722_data []
uint8_t const int16_t amp []
uint8_t const int16_t int len


Detailed Description


Function Documentation

SPAN_DECLARE g722_decode_state_t *   ) 
 

Initialise an G.722 decode context.

Parameters:
s The G.722 decode context.
rate The bit rate of the G.722 data. The valid rates are 64000, 56000 and 48000.
options 
Returns:
A pointer to the G.722 decode context, or NULL for error.

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 g722_encode_state_t *   ) 
 

Initialise an G.722 encode context.

Parameters:
s The G.722 encode context.
rate The required bit rate for the G.722 data. The valid rates are 64000, 56000 and 48000.
options 
Returns:
A pointer to the G.722 encode context, or NULL for error.


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