[FFmpeg-devel] [PATCH/RFC] Add some dsputil functions useful for AAC decoder

Måns Rullgård mans
Sat Sep 19 11:52:39 CEST 2009


Alex Converse <alex.converse at gmail.com> writes:

>> +static void vector_fmul_scalar_vp_2_c(float *dst, const float *src,
>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?const float **vp, float mul, int len)
>> +{
>> + ? ?int i;
>> + ? ?for (i = 0; i < len; i += 2, vp++) {
>> + ? ? ? ?dst[i ?] = src[i ?] * vp[0][0] * mul;
>> + ? ? ? ?dst[i+1] = src[i+1] * vp[0][1] * mul;
>> + ? ?}
>> +}
>
> Why "const float **vp" and not just "const float *vp"?

Because that wouldn't do the right thing.  You probably missed the vp++.

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



More information about the ffmpeg-devel mailing list