[FFmpeg-devel] [PATCH] Call rdft by function pointer

Måns Rullgård mans
Sat Mar 20 22:27:25 CET 2010


M?ns Rullg?rd <mans at mansr.com> writes:

> Alex Converse <alex.converse at gmail.com> writes:
>
>> 2010/3/14 M?ns Rullg?rd <mans at mansr.com>:
>>> Alex Converse <alex.converse at gmail.com> writes:
>>>
>>>> Call the RDFT by a function pointer like other FFT related transforms.
>>>> This makes instruction set optimized versions possible.
>>
>>  void ff_rdft_calc(RDFTContext *s, FFTSample *data)
>>  {
>> -    ff_rdft_calc_c(s, data);
>> +    s->rdft_calc(s, data);
>>  }
>
> To avoid double function call overhead, perhaps that function should
> be moved to fft.h as an inline.

Applied with this change.

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



More information about the ffmpeg-devel mailing list