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/dct.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/dct.h')
-rw-r--r-- | common/dct.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/dct.h b/common/dct.h index 2c8c5129b8..7e69899fdc 100644 --- a/common/dct.h +++ b/common/dct.h @@ -35,6 +35,8 @@ namespace Common { +class CosineTable; + /** * (Inverse) Discrete Cosine Transforms. * @@ -59,6 +61,7 @@ private: int _bits; TransformType _trans; + CosineTable *_cos; const float *_tCos; float *_csc2; |