[FFmpeg-devel] [PATCH] WMA Voice decoder

Vitor Sessak vitor1001
Mon Jan 25 22:29:54 CET 2010


On Mon, Jan 25, 2010 at 4:21 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi,
>
> On Mon, Jan 25, 2010 at 4:19 PM, Vitor Sessak <vitor1001 at gmail.com> wrote:
>> One can do something like
>>
>> ?void ff_set_fixed_vector(float *out, const AMRFixed *in, float scale, int size)
>> ?{
>> ? ? int i;
>>
>> ? ?if (in->pitch_fac == 0) {
>> ? ? ? ? for (i=0; i < in->n; i++)
>> ? ? ? ? ? ?out[in->x[i]] += in->y[i] * scale;
>> ? ? } else {
>> ? ? /// Code that exists currently
>> ? ? }
>> }
>
> Would be nice if I could do all pulses in the same struct so I don't
> have to call ff_set_fixed_vector() twice, e.g. pulse_repeat[] similar
> to x[] and y[].

You mean making AMRFixed.pitch_lag a vector? Fine to me...

-Vitor



More information about the ffmpeg-devel mailing list