kodi
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
RFFT Class Reference

Class performing a RFFT of interleaved stereo data. More...

#include <rfft.h>

Collaboration diagram for RFFT:
Collaboration graph
[legend]

Public Member Functions

 RFFT (int size, bool windowed=false)
 The constructor creates a RFFT plan. More...
 
 ~RFFT ()
 Free the RFFT plan.
 
void calc (const float *input, float *output)
 Calculate FFTs. More...
 

Static Protected Member Functions

static void hann (std::vector< kiss_fft_scalar > &data)
 Apply a Hann window to a buffer. More...
 

Protected Attributes

size_t m_size
 Size for a single channel.
 
bool m_windowed
 Whether or not a Hann window is applied.
 
kiss_fftr_cfg m_cfg
 FFT plan.
 

Detailed Description

Class performing a RFFT of interleaved stereo data.

Constructor & Destructor Documentation

◆ RFFT()

RFFT::RFFT ( int  size,
bool  windowed = false 
)

The constructor creates a RFFT plan.

size Length of time data for a single channel. windowed Whether or not to apply a Hann window to data.

Member Function Documentation

◆ calc()

void RFFT::calc ( const float *  input,
float *  output 
)

Calculate FFTs.

Parameters
inputInput data of size 2*m_size
outputOutput data of size m_size.

◆ hann()

void RFFT::hann ( std::vector< kiss_fft_scalar > &  data)
staticprotected

Apply a Hann window to a buffer.

Parameters
dataVector with data to apply window to.

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