[FFmpeg-devel] [PATCH] WMA Voice decoder
Ronald S. Bultje
rsbultje
Mon Jan 25 22:21:58 CET 2010
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[].
Ronald
More information about the ffmpeg-devel
mailing list