aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 18:04:55 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 18:04:55 +0000
commit75df2edbb915f5faa0ee67d8d36d94a68e584fc0 (patch)
tree170a54282e94ee78425588bd88a3ab68d80723a9 /libavcodec/dsputil.h
parent4ee726b67097dcba8435f78235953389dac4e06e (diff)
downloadffmpeg-75df2edbb915f5faa0ee67d8d36d94a68e584fc0.tar.gz
Add support for hardcoded ff_sin_* tables.
Originally committed as revision 20244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index cfa9bcf011..b94c2f910a 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -744,14 +744,16 @@ typedef struct FFTContext {
#if CONFIG_HARDCODED_TABLES
#define COSTABLE_CONST const
+#define SINTABLE_CONST const
#else
#define COSTABLE_CONST
+#define SINTABLE_CONST
#endif
#define COSTABLE(size) \
COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_cos_##size[size/2])
#define SINTABLE(size) \
- DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2])
+ SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2])
extern COSTABLE(16);
extern COSTABLE(32);
extern COSTABLE(64);
@@ -874,7 +876,7 @@ typedef struct {
/* pre/post rotation tables */
const FFTSample *tcos;
- FFTSample *tsin;
+ SINTABLE_CONST FFTSample *tsin;
FFTContext fft;
} RDFTContext;