Asterisk - The Open Source Telephony Project
18.5.0
|
Go to the source code of this file.
Macros | |
#define | FALSE 0 |
#define | TRUE (!FALSE) |
Functions | |
static void | block4 (g722_encode_state_t *s, int band, int d) |
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) |
static __inline__ int16_t | saturate (int32_t amp) |
#define FALSE 0 |
Definition at line 43 of file g722_encode.c.
Referenced by g722_encode_init().
#define TRUE (!FALSE) |
Definition at line 46 of file g722_encode.c.
Referenced by g722_encode_init().
|
static |
Definition at line 63 of file g722_encode.c.
References g722_encode_state_t::a, g722_encode_state_t::ap, g722_encode_state_t::b, g722_encode_state_t::band, g722_encode_state_t::bp, g722_encode_state_t::d, d, g722_encode_state_t::p, g722_encode_state_t::r, g722_encode_state_t::s, saturate(), g722_encode_state_t::sg, g722_encode_state_t::sp, and g722_encode_state_t::sz.
Referenced by g722_encode().
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().
Definition at line 49 of file g722_encode.c.
References INT16_MAX, and INT16_MIN.
Referenced by block4(), and g722_encode().