Revision 82696bee
libavcodec/dsputil.h  

262  262 
FFTContext fft; 
263  263 
} MDCTContext; 
264  264  
265 
int mdct_init(MDCTContext *s, int nbits, int inverse); 

266 
void imdct_calc(MDCTContext *s, FFTSample *output, 

265 
int ff_mdct_init(MDCTContext *s, int nbits, int inverse);


266 
void ff_imdct_calc(MDCTContext *s, FFTSample *output,


267  267 
const FFTSample *input, FFTSample *tmp); 
268 
void mdct_calc(MDCTContext *s, FFTSample *out, 

268 
void ff_mdct_calc(MDCTContext *s, FFTSample *out,


269  269 
const FFTSample *input, FFTSample *tmp); 
270 
void mdct_end(MDCTContext *s); 

270 
void ff_mdct_end(MDCTContext *s);


271  271  
272  272 
#endif 
libavcodec/mdct.c  

21  21 
/* 
22  22 
* init MDCT or IMDCT computation 
23  23 
*/ 
24 
int mdct_init(MDCTContext *s, int nbits, int inverse) 

24 
int ff_mdct_init(MDCTContext *s, int nbits, int inverse)


25  25 
{ 
26  26 
int n, n4, i; 
27  27 
float alpha; 
...  ...  
69  69 
* @param input N/2 samples 
70  70 
* @param tmp N/2 samples 
71  71 
*/ 
72 
void imdct_calc(MDCTContext *s, FFTSample *output, 

73 
const FFTSample *input, FFTSample *tmp) 

72 
void ff_imdct_calc(MDCTContext *s, FFTSample *output,


73 
const FFTSample *input, FFTSample *tmp)


74  74 
{ 
75  75 
int k, n8, n4, n2, n, j; 
76  76 
const uint16_t *revtab = s>fft.revtab; 
...  ...  
121  121 
* @param out N/2 samples 
122  122 
* @param tmp temporary storage of N/2 samples 
123  123 
*/ 
124 
void mdct_calc(MDCTContext *s, FFTSample *out, 

125 
const FFTSample *input, FFTSample *tmp) 

124 
void ff_mdct_calc(MDCTContext *s, FFTSample *out,


125 
const FFTSample *input, FFTSample *tmp)


126  126 
{ 
127  127 
int i, j, n, n8, n4, n2, n3; 
128  128 
FFTSample re, im, re1, im1; 
...  ...  
162  162 
} 
163  163 
} 
164  164  
165 
void mdct_end(MDCTContext *s) 

165 
void ff_mdct_end(MDCTContext *s)


166  166 
{ 
167  167 
av_freep(&s>tcos); 
168  168 
av_freep(&s>tsin); 
Also available in: Unified diff