#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include "floating_fudge.h"
#include <assert.h>
#include "spandsp/telephony.h"
#include "spandsp/bit_operations.h"
#include "spandsp/g711.h"
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. | |
int | g711_decode (g711_state_t *s, int16_t amp[], const uint8_t g711_data[], int g711_bytes) |
int | g711_encode (g711_state_t *s, uint8_t g711_data[], const int16_t amp[], int len) |
int | g711_transcode (g711_state_t *s, uint8_t g711_out[], const uint8_t g711_in[], int g711_bytes) |
g711_state_t * | g711_init (g711_state_t *s, int mode) |
int | g711_release (g711_state_t *s) |
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. |
g711_state_t* g711_init | ( | g711_state_t * | s, | |
int | mode | |||
) |
Initialise a G.711 encode or decode context.
s | The G.711 context. | |
mode | The G.711 mode. |
int g711_release | ( | g711_state_t * | s | ) |
Free a G.711 encode or decode context.
s | The G.711 context. |
uint8_t ulaw_to_alaw | ( | uint8_t | ulaw | ) |
Transcode from u-law to A-law, using the procedure defined in G.711.
alaw | The u-law sample to transcode. |