summaryrefslogtreecommitdiff
path: root/libavcodec/rdft.h
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-07-07 14:43:39 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-07-11 13:22:02 +0700
commit0780ad9c688cc8272daa7780d3f112a9f55208ca (patch)
tree48756b78b84f566a4cecd4322722b8380299f20f /libavcodec/rdft.h
parente7d977b446194649aa30f2aacc6c17bce7aeb90b (diff)
downloadffmpeg-0780ad9c688cc8272daa7780d3f112a9f55208ca.tar.gz
avcodec/rdft: remove sintable
It is redundant with costable. The first half of sintable is identical with the second half of costable. The second half of sintable is negative value of the first half of sintable. The computation is changed to handle sign of sin values, in C code and ARM assembly code. Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/rdft.h')
-rw-r--r--libavcodec/rdft.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/libavcodec/rdft.h b/libavcodec/rdft.h
index 37c40e7c80..ffafca7f24 100644
--- a/libavcodec/rdft.h
+++ b/libavcodec/rdft.h
@@ -25,29 +25,6 @@
#include "config.h"
#include "fft.h"
-#if CONFIG_HARDCODED_TABLES
-# define SINTABLE_CONST const
-#else
-# define SINTABLE_CONST
-#endif
-
-#define SINTABLE(size) \
- SINTABLE_CONST DECLARE_ALIGNED(16, FFTSample, ff_sin_##size)[size/2]
-
-extern SINTABLE(16);
-extern SINTABLE(32);
-extern SINTABLE(64);
-extern SINTABLE(128);
-extern SINTABLE(256);
-extern SINTABLE(512);
-extern SINTABLE(1024);
-extern SINTABLE(2048);
-extern SINTABLE(4096);
-extern SINTABLE(8192);
-extern SINTABLE(16384);
-extern SINTABLE(32768);
-extern SINTABLE(65536);
-
struct RDFTContext {
int nbits;
int inverse;
@@ -55,7 +32,8 @@ struct RDFTContext {
/* pre/post rotation tables */
const FFTSample *tcos;
- SINTABLE_CONST FFTSample *tsin;
+ const FFTSample *tsin;
+ int negative_sin;
FFTContext fft;
void (*rdft_calc)(struct RDFTContext *s, FFTSample *z);
};