Mercurial > libavcodec.hg
comparison rdft.c @ 10407:57acce8b1380 libavcodec
Move/add COSTABLE/SINTABLE macros to dsputil to add extern definitions
for ff_cos_* and ff_sin_* without introducing too much code duplication.
author | reimar |
---|---|
date | Thu, 15 Oct 2009 17:55:51 +0000 |
parents | 06bdadf410a9 |
children | 8fd8f6c1cdcc |
comparison
equal
deleted
inserted
replaced
10406:825c7f57cfac | 10407:57acce8b1380 |
---|---|
25 * @file libavcodec/rdft.c | 25 * @file libavcodec/rdft.c |
26 * (Inverse) Real Discrete Fourier Transforms. | 26 * (Inverse) Real Discrete Fourier Transforms. |
27 */ | 27 */ |
28 | 28 |
29 /* sin(2*pi*x/n) for 0<=x<n/4, followed by n/2<=x<3n/4 */ | 29 /* sin(2*pi*x/n) for 0<=x<n/4, followed by n/2<=x<3n/4 */ |
30 DECLARE_ALIGNED_16(FFTSample, ff_sin_16[8]); | 30 SINTABLE(16); |
31 DECLARE_ALIGNED_16(FFTSample, ff_sin_32[16]); | 31 SINTABLE(32); |
32 DECLARE_ALIGNED_16(FFTSample, ff_sin_64[32]); | 32 SINTABLE(64); |
33 DECLARE_ALIGNED_16(FFTSample, ff_sin_128[64]); | 33 SINTABLE(128); |
34 DECLARE_ALIGNED_16(FFTSample, ff_sin_256[128]); | 34 SINTABLE(256); |
35 DECLARE_ALIGNED_16(FFTSample, ff_sin_512[256]); | 35 SINTABLE(512); |
36 DECLARE_ALIGNED_16(FFTSample, ff_sin_1024[512]); | 36 SINTABLE(1024); |
37 DECLARE_ALIGNED_16(FFTSample, ff_sin_2048[1024]); | 37 SINTABLE(2048); |
38 DECLARE_ALIGNED_16(FFTSample, ff_sin_4096[2048]); | 38 SINTABLE(4096); |
39 DECLARE_ALIGNED_16(FFTSample, ff_sin_8192[4096]); | 39 SINTABLE(8192); |
40 DECLARE_ALIGNED_16(FFTSample, ff_sin_16384[8192]); | 40 SINTABLE(16384); |
41 DECLARE_ALIGNED_16(FFTSample, ff_sin_32768[16384]); | 41 SINTABLE(32768); |
42 DECLARE_ALIGNED_16(FFTSample, ff_sin_65536[32768]); | 42 SINTABLE(65536); |
43 FFTSample * const ff_sin_tabs[] = { | 43 FFTSample * const ff_sin_tabs[] = { |
44 ff_sin_16, ff_sin_32, ff_sin_64, ff_sin_128, ff_sin_256, ff_sin_512, ff_sin_1024, | 44 ff_sin_16, ff_sin_32, ff_sin_64, ff_sin_128, ff_sin_256, ff_sin_512, ff_sin_1024, |
45 ff_sin_2048, ff_sin_4096, ff_sin_8192, ff_sin_16384, ff_sin_32768, ff_sin_65536, | 45 ff_sin_2048, ff_sin_4096, ff_sin_8192, ff_sin_16384, ff_sin_32768, ff_sin_65536, |
46 }; | 46 }; |
47 | 47 |