Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

g711.c File Reference


Detailed Description


Functions

uint8_t alaw_to_ulaw (uint8_t alaw)
 Transcode from A-law to u-law, using the procedure defined in G.711.
uint8_t ulaw_to_alaw (uint8_t ulaw)
 Transcode from u-law to A-law, using the procedure defined in G.711.


Function Documentation

uint8_t alaw_to_ulaw uint8_t  alaw  ) 
 

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

Parameters:
alaw The A-law sample to transcode.
Returns:
The best matching u-law value.
00082 {
00083     return alaw_to_ulaw_table[alaw];
00084 }

uint8_t ulaw_to_alaw uint8_t  ulaw  ) 
 

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

Parameters:
ulaw The u-law sample to transcode.
Returns:
The best matching A-law value.
00088 {
00089     return ulaw_to_alaw_table[ulaw];
00090 }


Generated on Mon May 26 22:06:51 2008 for FreeSWITCH by  doxygen 1.3.9.1