[FFmpeg-devel] [PATCH] Add functions shared by AMR and SIPR

Ronald S. Bultje rsbultje
Sun Oct 25 00:51:15 CEST 2009


Hi,

On Sun, Oct 18, 2009 at 7:41 PM, Vitor Sessak <vitor1001 at gmail.com> wrote:
> The SIPR decoder shares quite a few code with AMR. Most of those functions
> are copied from the last AMR patch in -devel. An exception is
> ff_acelp_interpolatef(), that was copied from a fixed-point version and is
> used in AMR in the function interp_pitch_vector().
[..]
> +void ff_set_max_dist_lsf(float *lsf, float min_spacing, int size)
> +{
> +    int i;
> +    float prev = 0.0;
> +    for (i = 0; i < size; i++)
> +        prev = lsf[i] = FFMAX(lsf[i], prev + min_spacing);
> +}

ff_set_min_dist_lsf().

I'd like these for WMAVoice also.

Ronald



More information about the ffmpeg-devel mailing list