[FFmpeg-cvslog] r17916 - in trunk/libavcodec: Makefile acelp_vectors.c acelp_vectors.h qcelpdec.c

Måns Rullgård mans
Mon Mar 9 22:59:34 CET 2009


reynaldo <subversion at mplayerhq.hu> writes:

> Author: reynaldo
> Date: Mon Mar  9 22:55:24 2009
> New Revision: 17916
>
> Log:
> Functional part Kenan Gillet's 'extract and share weighted_vector_sumf'
> patchset. Idea is to share this common code between the AMR and QCELP
> decoders.
>
> Modified: trunk/libavcodec/acelp_vectors.c
> ==============================================================================
> --- trunk/libavcodec/acelp_vectors.c	Mon Mar  9 22:53:00 2009	(r17915)
> +++ trunk/libavcodec/acelp_vectors.c	Mon Mar  9 22:55:24 2009	(r17916)
> @@ -145,3 +145,13 @@ void ff_acelp_weighted_vector_sum(
>                   in_b[i] * weight_coeff_b +
>                   rounder) >> shift);
>  }
> +
> +void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
> +                             float weight_coeff_a, float weight_coeff_b, int length)
> +{
> +    int i;
> +
> +    for(i=0; i<length; i++)
> +        out[i] = weight_coeff_a * in_a[i]
> +               + weight_coeff_b * in_b[i];
> +}

This looks like something that should be SIMDified in dsputil.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list