xoreos  0.0.5
Public Types | Public Member Functions | Private Attributes | List of all members
Common::RDFT Class Reference

(Inverse) Real Discrete Fourier Transform. More...

#include <rdft.h>

Inheritance diagram for Common::RDFT:
Inheritance graph
[legend]
Collaboration diagram for Common::RDFT:
Collaboration graph
[legend]

Public Types

enum  TransformType { DFT_R2C, IDFT_C2R, IDFT_R2C, DFT_C2R }
 

Public Member Functions

 RDFT (int bits, TransformType trans)
 
 ~RDFT ()
 
void calc (float *data)
 

Private Attributes

int _bits
 
bool _inverse
 
int _signConvention
 
const float * _tSin
 
const float * _tCos
 
ScopedPtr< FFT_fft
 

Detailed Description

(Inverse) Real Discrete Fourier Transform.

Definition at line 64 of file rdft.h.

Member Enumeration Documentation

◆ TransformType

Enumerator
DFT_R2C 
IDFT_C2R 
IDFT_R2C 
DFT_C2R 

Definition at line 66 of file rdft.h.

Constructor & Destructor Documentation

◆ RDFT()

Common::RDFT::RDFT ( int  bits,
TransformType  trans 
)

Definition at line 61 of file rdft.cpp.

References _bits, _fft, _inverse, _signConvention, _tCos, _tSin, DFT_C2R, DFT_R2C, Common::getCosineTable(), Common::getSineTable(), IDFT_C2R, and IDFT_R2C.

Here is the call graph for this function:

◆ ~RDFT()

Common::RDFT::~RDFT ( )

Definition at line 75 of file rdft.cpp.

Member Function Documentation

◆ calc()

void Common::RDFT::calc ( float *  data)

Definition at line 78 of file rdft.cpp.

References _bits, _fft, _inverse, _signConvention, _tCos, _tSin, Common::Complex::im, and Common::Complex::re.

Member Data Documentation

◆ _bits

int Common::RDFT::_bits
private

Definition at line 79 of file rdft.h.

Referenced by calc(), and RDFT().

◆ _fft

ScopedPtr<FFT> Common::RDFT::_fft
private

Definition at line 86 of file rdft.h.

Referenced by calc(), and RDFT().

◆ _inverse

bool Common::RDFT::_inverse
private

Definition at line 80 of file rdft.h.

Referenced by calc(), and RDFT().

◆ _signConvention

int Common::RDFT::_signConvention
private

Definition at line 81 of file rdft.h.

Referenced by calc(), and RDFT().

◆ _tCos

const float* Common::RDFT::_tCos
private

Definition at line 84 of file rdft.h.

Referenced by calc(), and RDFT().

◆ _tSin

const float* Common::RDFT::_tSin
private

Definition at line 83 of file rdft.h.

Referenced by calc(), and RDFT().


The documentation for this class was generated from the following files: