diff options
author | D G Turner | 2012-04-14 11:18:55 +0100 |
---|---|---|
committer | D G Turner | 2012-04-14 11:18:55 +0100 |
commit | f4ba8a6485b097a8ef1e2004d1af127243f379f1 (patch) | |
tree | 0cd4d3ebb0e7fbc9a4385e5244925570839aedda /common/rdft.h | |
parent | 1809b9173cc158713246ae7bd70fe37a0dea1dd0 (diff) | |
download | scummvm-rg350-f4ba8a6485b097a8ef1e2004d1af127243f379f1.tar.gz scummvm-rg350-f4ba8a6485b097a8ef1e2004d1af127243f379f1.tar.bz2 scummvm-rg350-f4ba8a6485b097a8ef1e2004d1af127243f379f1.zip |
COMMON: Replaced static Sine and Cosine tables with dynamic generated.
This removes the large static tables from the binary (which saves 500K
to 1Mb of binary size) and replaced them with a class which generates
the required tables as needed in RAM. This has been tested with QDM2
and shows no obvious performance degredation and Memprof shows no
significant rise in RAM usage.
Diffstat (limited to 'common/rdft.h')
-rw-r--r-- | common/rdft.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/rdft.h b/common/rdft.h index 68be0f4dac..04582b1fec 100644 --- a/common/rdft.h +++ b/common/rdft.h @@ -33,6 +33,9 @@ namespace Common { +class SineTable; +class CosineTable; + /** * (Inverse) Real Discrete Fourier Transform. * @@ -59,6 +62,8 @@ private: int _inverse; int _signConvention; + SineTable *_sin; + CosineTable *_cos; const float *_tSin; const float *_tCos; |