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

Alex Converse alex.converse
Sat Sep 19 18:00:25 CEST 2009


2009/9/19 M?ns Rullg?rd <mans at mansr.com>:
> 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++.
>

You are correct. Sorry.



More information about the ffmpeg-devel mailing list