FreeSWITCH API Documentation
1.7.0
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <inttypes.h>
#include "g711.h"
Go to the source code of this file.
Functions | |
uint8_t | alaw_to_ulaw (uint8_t alaw) |
Transcode from A-law to u-law, using the procedure defined in G.711. More... | |
uint8_t | ulaw_to_alaw (uint8_t ulaw) |
Transcode from u-law to A-law, using the procedure defined in G.711. More... | |
Variables | |
static const uint8_t | ulaw_to_alaw_table [256] |
static const uint8_t | alaw_to_ulaw_table [256] |
uint8_t alaw_to_ulaw | ( | uint8_t | alaw | ) |
Transcode from A-law to u-law, using the procedure defined in G.711.
alaw | The A-law sample to transcode. |
Definition at line 79 of file g711.c.
References alaw_to_ulaw_table.
uint8_t ulaw_to_alaw | ( | uint8_t | ulaw | ) |
Transcode from u-law to A-law, using the procedure defined in G.711.
ulaw | The u-law sample to transcode. |
Definition at line 86 of file g711.c.
References ulaw_to_alaw_table.
|
static |
Definition at line 60 of file g711.c.
Referenced by alaw_to_ulaw().
|
static |
Definition at line 38 of file g711.c.
Referenced by ulaw_to_alaw().