FFmpeg
|
G.722 ADPCM audio codec. More...
Go to the source code of this file.
Macros | |
#define | ACCUM(k, x, d) |
Functions | |
static void | s_zero (int cur_diff, struct G722Band *band) |
static void | do_adaptive_prediction (struct G722Band *band, const int cur_diff) |
adaptive predictor More... | |
static int | linear_scale_factor (const int log_factor) |
void | ff_g722_update_low_predictor (struct G722Band *band, const int ilow) |
void | ff_g722_update_high_predictor (struct G722Band *band, const int dhigh, const int ihigh) |
Variables | |
static const int8_t | sign_lookup [2] = { -1, 1 } |
static const int16_t | inv_log2_table [32] |
static const int16_t | high_log_factor_step [2] = { 798, -214 } |
const int16_t | ff_g722_high_inv_quant [4] = { -926, -202, 926, 202 } |
static const int16_t | low_log_factor_step [16] |
low_log_factor_step[index] == wl[rl42[index]] More... | |
const int16_t | ff_g722_low_inv_quant4 [16] |
const int16_t | ff_g722_low_inv_quant6 [64] |
G.722 ADPCM audio codec.
This G.722 decoder is a bit-exact implementation of the ITU G.722 specification for all three specified bitrates - 64000bps, 56000bps and 48000bps. It passes the ITU tests.
Definition in file g722.c.
#define ACCUM | ( | k, | |
x, | |||
d | |||
) |
Referenced by s_zero().
|
inlinestatic |
Definition at line 74 of file g722.c.
Referenced by do_adaptive_prediction().
|
static |
adaptive predictor
cur_diff | the dequantized and scaled delta calculated from the current codeword |
Definition at line 110 of file g722.c.
Referenced by ff_g722_update_high_predictor(), and ff_g722_update_low_predictor().
|
inlinestatic |
Definition at line 136 of file g722.c.
Referenced by ff_g722_update_high_predictor(), and ff_g722_update_low_predictor().
void ff_g722_update_low_predictor | ( | struct G722Band * | band, |
const int | ilow | ||
) |
Definition at line 143 of file g722.c.
Referenced by encode_byte(), g722_decode_frame(), and g722_encode_trellis().
void ff_g722_update_high_predictor | ( | struct G722Band * | band, |
const int | dhigh, | ||
const int | ihigh | ||
) |
Definition at line 154 of file g722.c.
Referenced by encode_byte(), g722_decode_frame(), and g722_encode_trellis().
|
static |
Definition at line 42 of file g722.c.
Referenced by do_adaptive_prediction().
|
static |
Definition at line 44 of file g722.c.
Referenced by linear_scale_factor().
|
static |
Definition at line 50 of file g722.c.
Referenced by ff_g722_update_high_predictor().
const int16_t ff_g722_high_inv_quant[4] = { -926, -202, 926, 202 } |
Definition at line 51 of file g722.c.
Referenced by encode_byte(), g722_decode_frame(), and g722_encode_trellis().
|
static |
low_log_factor_step[index] == wl[rl42[index]]
Definition at line 55 of file g722.c.
Referenced by ff_g722_update_low_predictor().
const int16_t ff_g722_low_inv_quant4[16] |
Definition at line 59 of file g722.c.
Referenced by ff_g722_update_low_predictor().
const int16_t ff_g722_low_inv_quant6[64] |
Definition at line 63 of file g722.c.
Referenced by g722_encode_trellis().