Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
RFFT Class Reference

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

#include <rfft.h>

Public Member Functions

 RFFT (int size, bool windowed=false)
 The constructor creates a RFFT plan. More...
 
 ~RFFT ()
 Free the RFFT plan. More...
 
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. More...
 
bool m_windowed
 Whether or not a Hann window is applied. More...
 
kiss_fftr_cfg m_cfg
 FFT plan. More...
 

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.

◆ ~RFFT()

RFFT::~RFFT ( )

Free the RFFT plan.

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.

Member Data Documentation

◆ m_cfg

kiss_fftr_cfg RFFT::m_cfg
protected

FFT plan.

◆ m_size

size_t RFFT::m_size
protected

Size for a single channel.

◆ m_windowed

bool RFFT::m_windowed
protected

Whether or not a Hann window is applied.


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