xoreos
0.0.5
|
(Inverse) Modified Discrete Cosine Transforms. More...
#include <mdct.h>
Public Member Functions | |
MDCT (int bits, bool inverse, double scale) | |
~MDCT () | |
void | calcMDCT (float *output, const float *input) |
Compute MDCT of size N = 2^nbits. More... | |
void | calcIMDCT (float *output, const float *input) |
Compute inverse MDCT of size N = 2^nbits. More... | |
Private Member Functions | |
void | calcHalfIMDCT (float *output, const float *input) |
Compute the middle half of the inverse MDCT of size N = 2^nbits, thus excluding the parts that can be derived by symmetry. More... | |
Private Attributes | |
int | _bits |
int | _size |
ScopedArray< float > | _tCos |
float * | _tSin |
ScopedPtr< FFT > | _fft |
Common::MDCT::MDCT | ( | int | bits, |
bool | inverse, | ||
double | scale | ||
) |
|
private |
Compute the middle half of the inverse MDCT of size N = 2^nbits, thus excluding the parts that can be derived by symmetry.
Definition at line 141 of file mdct.cpp.
References _fft, _size, _tCos, _tSin, CMUL, Common::Complex::im, and Common::Complex::re.
Referenced by calcIMDCT().
void Common::MDCT::calcIMDCT | ( | float * | output, |
const float * | input | ||
) |
Compute inverse MDCT of size N = 2^nbits.
Definition at line 129 of file mdct.cpp.
References _size, and calcHalfIMDCT().
Referenced by Sound::WMACodec::calculateIMDCT().
void Common::MDCT::calcMDCT | ( | float * | output, |
const float * | input | ||
) |
Compute MDCT of size N = 2^nbits.
Definition at line 88 of file mdct.cpp.
References _fft, _size, _tCos, _tSin, CMUL, Common::Complex::im, and Common::Complex::re.
Definition at line 82 of file mdct.h.
Referenced by calcHalfIMDCT(), calcMDCT(), and MDCT().
|
private |
Definition at line 77 of file mdct.h.
Referenced by calcHalfIMDCT(), calcIMDCT(), calcMDCT(), and MDCT().
|
private |
Definition at line 79 of file mdct.h.
Referenced by calcHalfIMDCT(), calcMDCT(), and MDCT().
|
private |
Definition at line 80 of file mdct.h.
Referenced by calcHalfIMDCT(), calcMDCT(), and MDCT().