[FFmpeg-cvslog] r19955 - in trunk/libavcodec: dsputil.c dsputil.h

Vitor Sessak vitor1001
Tue Sep 22 23:50:42 CEST 2009


mru wrote:
> Author: mru
> Date: Tue Sep 22 02:48:41 2009
> New Revision: 19955
> 
> Log:
> Add some dsputil functions useful for AAC decoder
> 
> Modified:
>    trunk/libavcodec/dsputil.c
>    trunk/libavcodec/dsputil.h
> 
> Modified: trunk/libavcodec/dsputil.c
> ==============================================================================
> --- trunk/libavcodec/dsputil.c	Mon Sep 21 23:00:18 2009	(r19954)
> +++ trunk/libavcodec/dsputil.c	Tue Sep 22 02:48:41 2009	(r19955)
> @@ -4089,6 +4089,80 @@ void ff_vector_fmul_window_c(float *dst,
>      }

[...]

> +static float scalarproduct_float_c(const float *v1, const float *v2, int len)
> +{
> +    float p = 0.0;
> +    int i;
> +
> +    for (i = 0; i < len; i++)
> +        p += v1[i] * v2[i];
> +
> +    return p;
> +}
> +

I suggest moving ff_dot_productf() from celp_math.c to here instead of 
duplicating it.

-Vitor



More information about the ffmpeg-cvslog mailing list