FFmpeg
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | MA_NP 4 |
Moving Average (MA) prediction order. | |
#define | VQ_1ST_BITS 7 |
first stage vector of quantizer (size in bits) | |
#define | VQ_2ND_BITS 5 |
second stage vector of quantizer (size in bits) | |
#define | GC_1ST_IDX_BITS_8K 3 |
gain codebook (first stage) index, 8k mode (size in bits) | |
#define | GC_2ND_IDX_BITS_8K 4 |
gain codebook (second stage) index, 8k mode (size in bits) | |
#define | GC_1ST_IDX_BITS_6K4 3 |
gain codebook (first stage) index, 6.4k mode (size in bits) | |
#define | GC_2ND_IDX_BITS_6K4 3 |
gain codebook (second stage) index, 6.4k mode (size in bits) | |
Variables | |
static const int16_t | cb_lsp_1st [1<< VQ_1ST_BITS][10] |
first stage LSP codebook (10-dimensional, with 128 entries (3.24 of G.729) | |
static const int16_t | cb_lsp_2nd [1<< VQ_2ND_BITS][10] |
second stage LSP codebook, high and low parts (both 5-dimensional, with 32 entries (3.2.4 of G.729) | |
static const int16_t | cb_gain_1st_8k [1<< GC_1ST_IDX_BITS_8K][2] |
gain codebook (first stage), 8k mode (3.9.2 of G.729) | |
static const int16_t | cb_gain_2nd_8k [1<< GC_2ND_IDX_BITS_8K][2] |
gain codebook (second stage), 8k mode (3.9.2 of G.729) | |
static const int16_t | cb_gain_1st_6k4 [1<< GC_1ST_IDX_BITS_6K4][2] |
gain codebook (first stage), 6.4k mode (D.3.9.2 of G.729) | |
static const int16_t | cb_gain_2nd_6k4 [1<< GC_2ND_IDX_BITS_6K4][2] |
gain codebook (second stage), 6.4k mode (D.3.9.2 of G.729) | |
static const int16_t | cb_ma_predictor [2][MA_NP][10] |
4th order Moving Average (MA) Predictor codebook (3.2.4 of G.729) | |
static const int16_t | cb_ma_predictor_sum [2][10] |
15 3 cb_ma_predictor_sum[j][i] = floor( 2 * (1.0 - sum ( cb_ma_predictor_float[j][k][i] ) ) ) k=0 j=0..1, i=0..9 | |
static const int16_t | cb_ma_predictor_sum_inv [2][10] |
12 2 cb_ma_predictor_sum_inv[j][i] = floor(------------------------------------------—) 3 1.0 - sum ( cb_ma_predictor_float[j][k][i] ) k=0 j=0..1, i=0..9 | |
static const uint16_t | ma_prediction_coeff [4] |
MA prediction coefficients (3.9.1 of G.729, near Equation 69) | |
static const int16_t | lsp_init [10] |
initial LSP coefficients belongs to virtual frame preceding the first frame of the stream | |
static const int16_t | phase_filter [3][40] |
additional "phase" post-processing filter impulse response (D.6.2 of G.729) | |
#define MA_NP 4 |
Moving Average (MA) prediction order.
Definition at line 27 of file g729data.h.
Referenced by decode_frame(), decoder_init(), lsf_decode(), and lsf_restore_from_previous().
#define VQ_1ST_BITS 7 |
first stage vector of quantizer (size in bits)
Definition at line 29 of file g729data.h.
Referenced by decode_frame().
#define VQ_2ND_BITS 5 |
second stage vector of quantizer (size in bits)
Definition at line 30 of file g729data.h.
Referenced by decode_frame().
#define GC_1ST_IDX_BITS_8K 3 |
gain codebook (first stage) index, 8k mode (size in bits)
Definition at line 32 of file g729data.h.
#define GC_2ND_IDX_BITS_8K 4 |
gain codebook (second stage) index, 8k mode (size in bits)
Definition at line 33 of file g729data.h.
#define GC_1ST_IDX_BITS_6K4 3 |
gain codebook (first stage) index, 6.4k mode (size in bits)
Definition at line 35 of file g729data.h.
#define GC_2ND_IDX_BITS_6K4 3 |
gain codebook (second stage) index, 6.4k mode (size in bits)
Definition at line 36 of file g729data.h.
|
static |
first stage LSP codebook (10-dimensional, with 128 entries (3.24 of G.729)
Definition at line 42 of file g729data.h.
Referenced by lsf_decode().
|
static |
second stage LSP codebook, high and low parts (both 5-dimensional, with 32 entries (3.2.4 of G.729)
Definition at line 177 of file g729data.h.
Referenced by lsf_decode().
|
static |
gain codebook (first stage), 8k mode (3.9.2 of G.729)
Definition at line 215 of file g729data.h.
Referenced by decode_frame().
|
static |
gain codebook (second stage), 8k mode (3.9.2 of G.729)
Definition at line 229 of file g729data.h.
Referenced by decode_frame().
|
static |
gain codebook (first stage), 6.4k mode (D.3.9.2 of G.729)
Definition at line 251 of file g729data.h.
Referenced by decode_frame().
|
static |
gain codebook (second stage), 6.4k mode (D.3.9.2 of G.729)
Definition at line 266 of file g729data.h.
Referenced by decode_frame().
|
static |
4th order Moving Average (MA) Predictor codebook (3.2.4 of G.729)
float cb_ma_predictor_float[2][MA_NP][10] = { { {0.2570, 0.2780, 0.2800, 0.2736, 0.2757, 0.2764, 0.2675, 0.2678, 0.2779, 0.2647}, {0.2142, 0.2194, 0.2331, 0.2230, 0.2272, 0.2252, 0.2148, 0.2123, 0.2115, 0.2096}, {0.1670, 0.1523, 0.1567, 0.1580, 0.1601, 0.1569, 0.1589, 0.1555, 0.1474, 0.1571}, {0.1238, 0.0925, 0.0798, 0.0923, 0.0890, 0.0828, 0.1010, 0.0988, 0.0872, 0.1060}, }, { {0.2360, 0.2405, 0.2499, 0.2495, 0.2517, 0.2591, 0.2636, 0.2625, 0.2551, 0.2310}, {0.1285, 0.0925, 0.0779, 0.1060, 0.1183, 0.1176, 0.1277, 0.1268, 0.1193, 0.1211}, {0.0981, 0.0589, 0.0401, 0.0654, 0.0761, 0.0728, 0.0841, 0.0826, 0.0776, 0.0891}, {0.0923, 0.0486, 0.0287, 0.0498, 0.0526, 0.0482, 0.0621, 0.0636, 0.0584, 0.0794}, }, }; 15 cb_ma_predictor[j][k][i] = floor( 2 * cb_ma_predictor_float[j][k][i] )
j=0..1, i=0..9, k=0..MA_NP-1
Definition at line 300 of file g729data.h.
Referenced by lsf_decode(), and lsf_restore_from_previous().
|
static |
15 3
cb_ma_predictor_sum[j][i] = floor( 2 * (1.0 - sum ( cb_ma_predictor_float[j][k][i] ) ) ) k=0 j=0..1, i=0..9
Definition at line 321 of file g729data.h.
Referenced by lsf_decode().
|
static |
12 2
cb_ma_predictor_sum_inv[j][i] = floor(------------------------------------------—) 3 1.0 - sum ( cb_ma_predictor_float[j][k][i] ) k=0 j=0..1, i=0..9
Definition at line 335 of file g729data.h.
Referenced by lsf_restore_from_previous().
|
static |
MA prediction coefficients (3.9.1 of G.729, near Equation 69)
Definition at line 343 of file g729data.h.
Referenced by decode_frame().
|
static |
initial LSP coefficients belongs to virtual frame preceding the first frame of the stream
Definition at line 351 of file g729data.h.
Referenced by decoder_init().
|
static |
additional "phase" post-processing filter impulse response (D.6.2 of G.729)
Table contains three impulse responses, correspond to different amounts of spreading.
Definition at line 361 of file g729data.h.
Referenced by g729d_get_new_exc().