Mercurial > libavcodec.hg
comparison dct.c @ 12099:1bf322283429 libavcodec
SSE optimized 32-point DCT
author | vitor |
---|---|
date | Tue, 06 Jul 2010 16:58:54 +0000 |
parents | 3f3d08bb5cf8 |
children |
comparison
equal
deleted
inserted
replaced
12098:95f57b61c9b3 | 12099:1bf322283429 |
---|---|
28 */ | 28 */ |
29 | 29 |
30 #include <math.h> | 30 #include <math.h> |
31 #include "libavutil/mathematics.h" | 31 #include "libavutil/mathematics.h" |
32 #include "fft.h" | 32 #include "fft.h" |
33 #include "x86/fft.h" | |
33 | 34 |
34 #define DCT32_FLOAT | 35 #define DCT32_FLOAT |
35 #include "dct32.c" | 36 #include "dct32.c" |
36 | 37 |
37 /* sin((M_PI * x / (2*n)) */ | 38 /* sin((M_PI * x / (2*n)) */ |
211 | 212 |
212 if (inverse == DCT_II && nbits == 5) | 213 if (inverse == DCT_II && nbits == 5) |
213 s->dct_calc = dct32_func; | 214 s->dct_calc = dct32_func; |
214 | 215 |
215 s->dct32 = dct32; | 216 s->dct32 = dct32; |
217 if (HAVE_MMX) ff_dct_init_mmx(s); | |
216 | 218 |
217 return 0; | 219 return 0; |
218 } | 220 } |
219 | 221 |
220 av_cold void ff_dct_end(DCTContext *s) | 222 av_cold void ff_dct_end(DCTContext *s) |