summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-14 21:41:24 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-14 21:41:24 +0000
commit16aec74761c2a0e6d782135083e570b8358593e1 (patch)
treeaeca6a3459ee41e0f3d1d1b7d39365c5ac25ab17 /libavcodec/dsputil.h
parent6d924b5a5f39e33a02c4b39cc5892911bb508d4e (diff)
Use hardcoded instead of runtime-calculated ff_cos_* tables if
--enable-hardcoded-tables was used. Due to the size, the code for the tables is generated at compile time. Originally committed as revision 20232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index b7dc9e1ee3..3656d1c3b5 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -742,7 +742,11 @@ typedef struct FFTContext {
#define FF_MDCT_PERM_INTERLEAVE 1
} FFTContext;
+#if CONFIG_HARDCODED_TABLES
+extern const FFTSample* const ff_cos_tabs[13];
+#else
extern FFTSample* const ff_cos_tabs[13];
+#endif
/**
* Sets up a complex FFT.