diff options
author | Vladimir Voroshilov <voroshil@gmail.com> | 2008-09-03 04:45:01 +0000 |
---|---|---|
committer | Vladimir Voroshilov <voroshil@gmail.com> | 2008-09-03 04:45:01 +0000 |
commit | 063ad8205aecdbad62dc658d250001c14ad0ef7b (patch) | |
tree | d4749d3a7395d0e6af23fce7e36a85015c3fa9e6 /libavcodec/g729data.h | |
parent | e9dea59f16d49e4fa03aa10447c8f4f7e902de76 (diff) | |
download | ffmpeg-063ad8205aecdbad62dc658d250001c14ad0ef7b.tar.gz |
gain codebook (first stage), 8k mode for G.729
Originally committed as revision 15171 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g729data.h')
-rw-r--r-- | libavcodec/g729data.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/g729data.h b/libavcodec/g729data.h index 0caf25cacc..09b3a47f0d 100644 --- a/libavcodec/g729data.h +++ b/libavcodec/g729data.h @@ -211,4 +211,18 @@ static const int16_t cb_lsp_2nd[1<<VQ_2ND_BITS][10] = { -163, 674, -11, -886, 531, -1125, -265, -242, 724, 934} }; +/** + * gain codebook (first stage), 8k mode (3.9.2 of G.729) + */ +static const int16_t cb_gain_1st_8k[1<<GC_1ST_IDX_BITS_8K][2] = +{ /*(0.14) (2.13) */ + { 3242 , 9949 }, + { 1551 , 2425 }, + { 2678 , 27162 }, + { 1921 , 9291 }, + { 1831 , 5022 }, + { 1 , 1516 }, + { 356 , 14756 }, + { 57 , 5404 }, +}; #endif // AVCODEC_G729DATA_H |