aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorclone27272015-02-01 05:02:41 -0500
committerclone27272015-02-01 05:02:41 -0500
commitf1ec648e456f94bb8d0fc7058192e1b988050976 (patch)
tree71ba29a44cfb1bef6193a298aedd4a03888e6e79 /common
parent76eadc75e27ae5cb64b2114835db0bfacd516768 (diff)
parented037a527cae1c90baca7ed3bdfae755088395d7 (diff)
downloadscummvm-rg350-f1ec648e456f94bb8d0fc7058192e1b988050976.tar.gz
scummvm-rg350-f1ec648e456f94bb8d0fc7058192e1b988050976.tar.bz2
scummvm-rg350-f1ec648e456f94bb8d0fc7058192e1b988050976.zip
Merge pull request #584 from bgK/fft-getrevtab
COMMON: Add getRevTab to FFT
Diffstat (limited to 'common')
-rw-r--r--common/fft.cpp4
-rw-r--r--common/fft.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/common/fft.cpp b/common/fft.cpp
index ac7386083f..477f7aca62 100644
--- a/common/fft.cpp
+++ b/common/fft.cpp
@@ -61,6 +61,10 @@ FFT::~FFT() {
delete[] _tmpBuf;
}
+const uint16 *FFT::getRevTab() const {
+ return _revTab;
+}
+
void FFT::permute(Complex *z) {
int np = 1 << _bits;
diff --git a/common/fft.h b/common/fft.h
index 6eb72c3f84..ed66d32b71 100644
--- a/common/fft.h
+++ b/common/fft.h
@@ -47,6 +47,8 @@ public:
FFT(int bits, int inverse);
~FFT();
+ const uint16 *getRevTab() const;
+
/** Do the permutation needed BEFORE calling calc(). */
void permute(Complex *z);