[FFmpeg-devel] [PATCH] Common ACELP code & G.729 [5/7] - G.729 tables

Vladimir Voroshilov voroshil
Tue Aug 26 22:09:38 CEST 2008


2008/8/26 Michael Niedermayer <michaelni at gmx.at>:
> On Sat, Aug 23, 2008 at 08:40:35PM +0700, Vladimir Voroshilov wrote:

[...]

>> @@ -203,4 +211,97 @@ 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] =
>> +{ /*(1.14) (2.13) */
>> +  { 3242 ,  9949 }, //5
>> +  { 1551 ,  2425 }, //1
>> +  { 2678 , 27162 }, //7
>> +  { 1921 ,  9291 }, //4
>> +  { 1831 ,  5022 }, //2
>> +  {    1 ,  1516 }, //0
>> +  {  356 , 14756 }, //6
>> +  {   57 ,  5404 }, //3
>> +};
>
> 1.14 is wrong

replaced with 0.14

> and what do the comments on the right mean?

Row order in original table from g.729 reference code.
Those code uses tab[map[index]] expression for this tables.
I decided to remove "map" table and reorder rows.
Comment removed in updated patch, since it really does not look useful.


Updated patch is attached.

-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05_g729tab_89.diff
Type: text/x-diff
Size: 3012 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080827/8acceb95/attachment.diff>



More information about the ffmpeg-devel mailing list