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

g711.h File Reference

Go to the source code of this file.

Defines

#define _SPANDSP_G711_H_
#define G711_ALAW_IDLE_OCTET   0x5D
#define G711_ULAW_IDLE_OCTET   0xFF
#define ULAW_BIAS   0x84
#define ALAW_AMI_MASK   0x55

Typedefs

typedef g711_state_s g711_state_t

Enumerations

enum  { G711_ALAW = 0, G711_ULAW }

Functions

 SPAN_DECLARE (uint8_t) alaw_to_ulaw(uint8_t alaw)
 Transcode from A-law to u-law, using the procedure defined in G.711.
 SPAN_DECLARE (int) g711_decode(g711_state_t *s
 Release a V.8 context.
 SPAN_DECLARE (g711_state_t *) g711_init(g711_state_t *s

Variables

int16_t amp []
int16_t const uint8_t g711_data []
int16_t const uint8_t int g711_bytes
uint8_t const int16_t int len
uint8_t g711_out []
uint8_t const uint8_t g711_in []
int mode


Detailed Description


Function Documentation

SPAN_DECLARE g711_state_t *   ) 
 

Initialise a G.711 encode or decode context.

Parameters:
s The G.711 context.
mode The G.711 mode.
Returns:
A pointer to the G.711 context, or NULL for error.

SPAN_DECLARE int   ) 
 

Release a V.8 context.

Release a G.711 encode or decode context.

Parameters:
s The G.711 context.
Returns:
0 for OK.

SPAN_DECLARE uint8_t   ) 
 

Transcode from A-law to u-law, using the procedure defined in G.711.

Parameters:
ulaw The u-law sample to transcode.
Returns:
The best matching A-law value.


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