aboutsummaryrefslogtreecommitdiff
path: root/common/dct.h
diff options
context:
space:
mode:
authorD G Turner2012-04-17 22:12:20 +0100
committerD G Turner2012-04-17 22:12:20 +0100
commit0f66d2c701958dc70ed57b570a7f59965a90bf66 (patch)
treec1adcd1753206e57a7284fe096a2ae144f1675cc /common/dct.h
parentaa61c9abd3d1f89b6e689a25a81040011a25a069 (diff)
downloadscummvm-rg350-0f66d2c701958dc70ed57b570a7f59965a90bf66.tar.gz
scummvm-rg350-0f66d2c701958dc70ed57b570a7f59965a90bf66.tar.bz2
scummvm-rg350-0f66d2c701958dc70ed57b570a7f59965a90bf66.zip
COMMON: Update DCT & RDFT to avoid dynamic allocation of Sine/Cos Tables.
Diffstat (limited to 'common/dct.h')
-rw-r--r--common/dct.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/dct.h b/common/dct.h
index 7e69899fdc..085423ddff 100644
--- a/common/dct.h
+++ b/common/dct.h
@@ -33,9 +33,9 @@
#include "common/math.h"
#include "common/rdft.h"
-namespace Common {
+#include "common/cosinetables.h"
-class CosineTable;
+namespace Common {
/**
* (Inverse) Discrete Cosine Transforms.
@@ -61,7 +61,7 @@ private:
int _bits;
TransformType _trans;
- CosineTable *_cos;
+ CosineTable _cos;
const float *_tCos;
float *_csc2;