Asterisk - The Open Source Telephony Project
18.5.0
|
Go to the source code of this file.
Data Structures | |
struct | g722_decode_state_t |
struct | g722_encode_state_t |
Macros | |
#define | INT16_MAX 32767 |
#define | INT16_MIN (-32768) |
Enumerations | |
enum | { G722_SAMPLE_RATE_8000 = 0x0001, G722_PACKED = 0x0002 } |
Functions | |
int | g722_decode (g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len) |
g722_decode_state_t * | g722_decode_init (g722_decode_state_t *s, int rate, int options) |
int | g722_decode_release (g722_decode_state_t *s) |
int | g722_encode (g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len) |
g722_encode_state_t * | g722_encode_init (g722_encode_state_t *s, int rate, int options) |
int | g722_encode_release (g722_encode_state_t *s) |
#define INT16_MAX 32767 |
Definition at line 50 of file g722.h.
Referenced by saturate().
#define INT16_MIN (-32768) |
Definition at line 53 of file g722.h.
Referenced by saturate().
anonymous enum |
int g722_decode | ( | g722_decode_state_t * | s, |
int16_t | amp[], | ||
const uint8_t | g722_data[], | ||
int | len | ||
) |
Definition at line 186 of file g722_decode.c.
References g722_decode_state_t::band, g722_decode_state_t::bits_per_sample, block4(), g722_decode_state_t::det, g722_decode_state_t::eight_k, g722_decode_state_t::in_bits, g722_decode_state_t::in_buffer, g722_decode_state_t::itu_test_mode, len(), g722_decode_state_t::nb, g722_decode_state_t::packed, g722_decode_state_t::s, and g722_decode_state_t::x.
Referenced by g722tolin_framein().
g722_decode_state_t* g722_decode_init | ( | g722_decode_state_t * | s, |
int | rate, | ||
int | options | ||
) |
Definition at line 153 of file g722_decode.c.
References g722_decode_state_t::band, g722_decode_state_t::bits_per_sample, g722_decode_state_t::det, g722_decode_state_t::eight_k, FALSE, G722_PACKED, G722_SAMPLE_RATE_8000, malloc(), NULL, g722_decode_state_t::packed, and TRUE.
Referenced by g722tolin16_new(), and g722tolin_new().
int g722_decode_release | ( | g722_decode_state_t * | s | ) |
Definition at line 179 of file g722_decode.c.
References free().
int g722_encode | ( | g722_encode_state_t * | s, |
uint8_t | g722_data[], | ||
const int16_t | amp[], | ||
int | len | ||
) |
Definition at line 185 of file g722_encode.c.
References g722_encode_state_t::band, g722_encode_state_t::bits_per_sample, block4(), g722_encode_state_t::det, g722_encode_state_t::eight_k, el, g722_encode_state_t::itu_test_mode, len(), g722_encode_state_t::nb, g722_encode_state_t::out_bits, g722_encode_state_t::out_buffer, g722_encode_state_t::packed, g722_encode_state_t::s, saturate(), and g722_encode_state_t::x.
Referenced by lintog722_framein().
g722_encode_state_t* g722_encode_init | ( | g722_encode_state_t * | s, |
int | rate, | ||
int | options | ||
) |
Definition at line 152 of file g722_encode.c.
References g722_encode_state_t::band, g722_encode_state_t::bits_per_sample, g722_encode_state_t::det, g722_encode_state_t::eight_k, FALSE, G722_PACKED, G722_SAMPLE_RATE_8000, malloc(), NULL, g722_encode_state_t::packed, and TRUE.
Referenced by lin16tog722_new(), and lintog722_new().
int g722_encode_release | ( | g722_encode_state_t * | s | ) |
Definition at line 178 of file g722_encode.c.
References free().