diff options
author | clone2727 | 2015-02-01 05:02:41 -0500 |
---|---|---|
committer | clone2727 | 2015-02-01 05:02:41 -0500 |
commit | f1ec648e456f94bb8d0fc7058192e1b988050976 (patch) | |
tree | 71ba29a44cfb1bef6193a298aedd4a03888e6e79 /common | |
parent | 76eadc75e27ae5cb64b2114835db0bfacd516768 (diff) | |
parent | ed037a527cae1c90baca7ed3bdfae755088395d7 (diff) | |
download | scummvm-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.cpp | 4 | ||||
-rw-r--r-- | common/fft.h | 2 |
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); |