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

Måns Rullgård mans
Wed Sep 23 01:38:02 CEST 2009


Vitor Sessak <vitor1001 at gmail.com> writes:

> 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.

I keep saying generic functions should be put in common files, but
nobody ever listens...

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



More information about the ffmpeg-cvslog mailing list