aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mdct.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-01-09 13:28:04 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-01-09 13:28:04 +0000
commit14b8607065ff7204cff29b108e42fd930a52a5ed (patch)
treeeb04acb8a0efea46d50055f7af472d9597ab37c8 /libavcodec/mdct.c
parentb090930d432957a06f78701212b3024f93958f17 (diff)
downloadffmpeg-14b8607065ff7204cff29b108e42fd930a52a5ed.tar.gz
Add support for hard-coded MDCT-related ff_sine_windows tables.
Originally committed as revision 21108 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r--libavcodec/mdct.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c
index a2b9e8b423..8734bdc56f 100644
--- a/libavcodec/mdct.c
+++ b/libavcodec/mdct.c
@@ -48,26 +48,7 @@ av_cold void ff_kbd_window_init(float *window, float alpha, int n)
window[i] = sqrt(local_window[i] / sum);
}
-DECLARE_ALIGNED(16, float, ff_sine_32 [ 32]);
-DECLARE_ALIGNED(16, float, ff_sine_64 [ 64]);
-DECLARE_ALIGNED(16, float, ff_sine_128 [ 128]);
-DECLARE_ALIGNED(16, float, ff_sine_256 [ 256]);
-DECLARE_ALIGNED(16, float, ff_sine_512 [ 512]);
-DECLARE_ALIGNED(16, float, ff_sine_1024[1024]);
-DECLARE_ALIGNED(16, float, ff_sine_2048[2048]);
-DECLARE_ALIGNED(16, float, ff_sine_4096[4096]);
-float * const ff_sine_windows[] = {
- NULL, NULL, NULL, NULL, NULL, // unused
- ff_sine_32 , ff_sine_64 ,
- ff_sine_128, ff_sine_256, ff_sine_512, ff_sine_1024, ff_sine_2048, ff_sine_4096
-};
-
-// Generate a sine window.
-av_cold void ff_sine_window_init(float *window, int n) {
- int i;
- for(i = 0; i < n; i++)
- window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
-}
+#include "mdct_tablegen.h"
/**
* init MDCT or IMDCT computation.