Revision dc1ecb6a libavcodec/ffttest.c
libavcodec/ffttest.c  

95  95 
} 
96  96 
} 
97  97  
98 
void imdct_ref(float *out, float *in, int n) 

98 
void imdct_ref(float *out, float *in, int nbits)


99  99 
{ 
100 
int n = 1<<nbits; 

100  101 
int k, i, a; 
101  102 
double sum, f; 
102  103  
...  ...  
112  113 
} 
113  114  
114  115 
/* NOTE: no normalisation by 1 / N is done */ 
115 
void mdct_ref(float *output, float *input, int n) 

116 
void mdct_ref(float *output, float *input, int nbits)


116  117 
{ 
118 
int n = 1<<nbits; 

117  119 
int k, i; 
118  120 
double a, s; 
119  121  
...  ...  
246  248  
247  249 
if (do_mdct) { 
248  250 
if (do_inverse) { 
249 
imdct_ref((float *)tab_ref, (float *)tab1, fft_size);


251 
imdct_ref((float *)tab_ref, (float *)tab1, fft_nbits);


250  252 
ff_imdct_calc(m, tab2, (float *)tab1, tabtmp); 
251  253 
check_diff((float *)tab_ref, tab2, fft_size); 
252  254 
} else { 
253 
mdct_ref((float *)tab_ref, (float *)tab1, fft_size);


255 
mdct_ref((float *)tab_ref, (float *)tab1, fft_nbits);


254  256  
255  257 
ff_mdct_calc(m, tab2, (float *)tab1, tabtmp); 
256  258 
Also available in: Unified diff