summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-11-05 18:29:06 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-11-05 18:29:06 +0000
commit1ffc6e83276b24ffaea586c83b7aabb904e4be4b (patch)
tree89042ae2619a30b0c281553f75e5e2eca94149d3 /libavcodec/dsputil.h
parent9cad7e219377de4b466e8858286de23df3615b86 (diff)
Add ff_init_ff_cos_tabs function and use it in rdft.c to ensure that the
necessary ff_cos_tabs tables are initialized. Fixes issue 1507 (QDM2 broken since r20237 without hardcoded tables). Originally committed as revision 20464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index d64ef939ac..4079396ff5 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -769,6 +769,12 @@ extern COSTABLE(32768);
extern COSTABLE(65536);
extern COSTABLE_CONST FFTSample* const ff_cos_tabs[17];
+/**
+ * Initializes the cosine table in ff_cos_tabs[index]
+ * \param index index in ff_cos_tabs array of the table to initialize
+ */
+void ff_init_ff_cos_tabs(int index);
+
extern SINTABLE(16);
extern SINTABLE(32);
extern SINTABLE(64);