diff options
author | Vladimir Voroshilov <voroshil@gmail.com> | 2009-06-13 00:32:54 +0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-24 21:11:00 +0200 |
commit | 0b42463aecff38fda35982141ccd095c9445f78f (patch) | |
tree | 235ec7095fa3b9de0be0aa8cc0b909e9ce49a916 /libavcodec/g729data.h | |
parent | 12081d05997a32e018f22c03c02a7cc9ee4d2640 (diff) | |
download | ffmpeg-0b42463aecff38fda35982141ccd095c9445f78f.tar.gz |
Gain pitch and gain code for G729D
Diffstat (limited to 'libavcodec/g729data.h')
-rw-r--r-- | libavcodec/g729data.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libavcodec/g729data.h b/libavcodec/g729data.h index d3a0c4e8e6..c36be40bc0 100644 --- a/libavcodec/g729data.h +++ b/libavcodec/g729data.h @@ -246,6 +246,36 @@ static const int16_t cb_gain_2nd_8k[1<<GC_2ND_IDX_BITS_8K][2] = { /*(1.14) (1.13 }; /** + * gain codebook (first stage), 6.4k mode (D.3.9.2 of G.729) + */ +static const int16_t cb_gain_1st_6k4[1<<GC_1ST_IDX_BITS_6K4][2] = +{ /*(0.14) (1.14)*/ + { 5849, 0 }, + { 3171, 9280 }, + { 3617, 6747 }, + { 4987, 22294 }, + { 2929, 1078 }, + { 6068, 6093 }, + { 9425, 2731 }, + { 3915, 12872 }, +}; + +/** + * gain codebook (second 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] = +{ /*(1.14) (1.14)*/ + { 0, 4175 }, + {10828, 27602 }, + {16423, 15724 }, + { 4478, 7324 }, + { 3988, 0 }, + {10291, 11385 }, + {11956, 10735 }, + { 7876, 7821 }, +}; + +/** * 4th order Moving Average (MA) Predictor codebook (3.2.4 of G.729) * * float cb_ma_predictor_float[2][MA_NP][10] = { |