diff options
Diffstat (limited to 'common/dct.cpp')
-rw-r--r-- | common/dct.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/dct.cpp b/common/dct.cpp index a353a9ad88..38b4fbcff2 100644 --- a/common/dct.cpp +++ b/common/dct.cpp @@ -26,16 +26,14 @@ // Copyright (c) 2010 Alex Converse <alex.converse@gmail.com> // Copyright (c) 2010 Vitor Sessak -#include "common/cosinetables.h" #include "common/dct.h" namespace Common { -DCT::DCT(int bits, TransformType trans) : _bits(bits), _trans(trans), _rdft(0) { +DCT::DCT(int bits, TransformType trans) : _bits(bits), _cos(_bits + 2), _trans(trans), _rdft(0) { int n = 1 << _bits; - _cos = new Common::CosineTable(_bits + 2); - _tCos = _cos->getTable(); + _tCos = _cos.getTable(); _csc2 = new float[n / 2]; @@ -48,7 +46,6 @@ DCT::DCT(int bits, TransformType trans) : _bits(bits), _trans(trans), _rdft(0) { DCT::~DCT() { delete _rdft; delete[] _csc2; - delete _cos; } void DCT::calc(float *data) { |