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_decode_state_t *s, int band, int d) |
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) |
static __inline__ int16_t | saturate (int32_t amp) |
#define FALSE 0 |
Definition at line 41 of file g722_decode.c.
Referenced by g722_decode_init().
#define TRUE (!FALSE) |
Definition at line 44 of file g722_decode.c.
Referenced by g722_decode_init().
|
static |
Definition at line 63 of file g722_decode.c.
References g722_decode_state_t::a, g722_decode_state_t::ap, g722_decode_state_t::b, g722_decode_state_t::band, g722_decode_state_t::bp, g722_decode_state_t::d, d, g722_decode_state_t::p, g722_decode_state_t::r, g722_decode_state_t::s, saturate(), g722_decode_state_t::sg, g722_decode_state_t::sp, and g722_decode_state_t::sz.
Referenced by g722_decode(), and saturate().
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().