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

Vladimir Voroshilov voroshil
Thu Aug 14 15:16:09 CEST 2008


2008/8/14 Michael Niedermayer <michaelni at gmx.at>:
> On Sat, Jul 12, 2008 at 02:32:22PM +0700, Vladimir Voroshilov wrote:
>> Patch is updated
>
> it seems i have forgotten these patches ...

NP.
The rest was helpful.

>
> [...]
>> +/**
>> + * first stage LSP codebook
>> + * (10-dimensional, with 128 entries (3.24 of G.729)
>> + */
>> +static const int16_t ff_g729_cb_lsp_1st[1<<VQ_1ST_BITS][10] =
>
> static tables do not need ff_g729_ prefixes

Fixed locally

> [...]
>> +/**
>> + * initial lq values
>> + *
>> + *  ff_g729_lq_init[j]=PI*(float)(j+1)/11.0
>> + */
>> +static const int16_t ff_g729_lq_init[10] =
>> +{ /* (2.13) */
>> +  2339, 4679, 7018, 9358, 11698, 14037, 16377, 18717, 21056, 23396
>> +};
>
> lq stands for what?

Quantized LSP coefficients belongs to virtual frame preceding  the
first frame of the stream.
lq_prev context member is filled with this values before decoding is started.
Don't know how to spell this well.


-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719




More information about the ffmpeg-devel mailing list