comparison fft.c @ 10161:a349795e8dca libavcodec

Prepare for optimised forward MDCT implementations This adds a function pointer for forward MDCT to FFTContext and initialises it with the existing C function. ff_calc_mdct() is changed to an inline function calling the selected version as done for other fft/mdct functions.
author mru
date Fri, 11 Sep 2009 02:24:19 +0000
parents 7a63015e4627
children 8d369aee733f
comparison
equal deleted inserted replaced
10160:75bab19c59a2 10161:a349795e8dca
84 84
85 s->fft_permute = ff_fft_permute_c; 85 s->fft_permute = ff_fft_permute_c;
86 s->fft_calc = ff_fft_calc_c; 86 s->fft_calc = ff_fft_calc_c;
87 s->imdct_calc = ff_imdct_calc_c; 87 s->imdct_calc = ff_imdct_calc_c;
88 s->imdct_half = ff_imdct_half_c; 88 s->imdct_half = ff_imdct_half_c;
89 s->mdct_calc = ff_mdct_calc_c;
89 s->exptab1 = NULL; 90 s->exptab1 = NULL;
90 91
91 #if HAVE_MMX && HAVE_YASM 92 #if HAVE_MMX && HAVE_YASM
92 has_vectors = mm_support(); 93 has_vectors = mm_support();
93 if (has_vectors & FF_MM_SSE && HAVE_SSE) { 94 if (has_vectors & FF_MM_SSE && HAVE_SSE) {