SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Protected Types | Protected Attributes | List of all members
KissEngine Class Reference

#include <kissengine.h>

+ Inheritance diagram for KissEngine:
+ Collaboration diagram for KissEngine:

Public Member Functions

void configure (int n, bool inverse)
 
void transform ()
 
Complexin ()
 
Complexout ()
 
- Public Member Functions inherited from FFTEngine
virtual ~FFTEngine ()
 

Protected Types

typedef kissfft< Real, ComplexKissFFT
 

Protected Attributes

KissFFT m_fft
 
std::vector< Complexm_in
 
std::vector< Complexm_out
 

Additional Inherited Members

- Static Public Member Functions inherited from FFTEngine
static FFTEnginecreate ()
 

Detailed Description

Definition at line 8 of file kissengine.h.

Member Typedef Documentation

◆ KissFFT

typedef kissfft<Real, Complex> KissEngine::KissFFT
protected

Definition at line 17 of file kissengine.h.

Member Function Documentation

◆ configure()

void KissEngine::configure ( int  n,
bool  inverse 
)
virtual

Implements FFTEngine.

Definition at line 3 of file kissengine.cpp.

References kissfft< T_Scalar, T_Complex, T_traits >::configure(), m_fft, m_in, and m_out.

4 {
5  m_fft.configure(n, inverse);
6  if(n > m_in.size())
7  m_in.resize(n);
8  if(n > m_out.size())
9  m_out.resize(n);
10 }
std::vector< Complex > m_in
Definition: kissengine.h:20
std::vector< Complex > m_out
Definition: kissengine.h:21
void configure(int nfft, bool inverse, const traits_type &traits=traits_type())
Definition: kissfft.h:109
KissFFT m_fft
Definition: kissengine.h:18
+ Here is the call graph for this function:

◆ in()

Complex * KissEngine::in ( )
virtual

Implements FFTEngine.

Definition at line 17 of file kissengine.cpp.

References m_in.

18 {
19  return &m_in[0];
20 }
std::vector< Complex > m_in
Definition: kissengine.h:20

◆ out()

Complex * KissEngine::out ( )
virtual

Implements FFTEngine.

Definition at line 22 of file kissengine.cpp.

References m_out.

23 {
24  return &m_out[0];
25 }
std::vector< Complex > m_out
Definition: kissengine.h:21

◆ transform()

void KissEngine::transform ( )
virtual

Implements FFTEngine.

Definition at line 12 of file kissengine.cpp.

References m_fft, m_in, m_out, and kissfft< T_Scalar, T_Complex, T_traits >::transform().

13 {
14  m_fft.transform(&m_in[0], &m_out[0]);
15 }
std::vector< Complex > m_in
Definition: kissengine.h:20
std::vector< Complex > m_out
Definition: kissengine.h:21
void transform(const cpx_type *src, cpx_type *dst)
Definition: kissfft.h:121
KissFFT m_fft
Definition: kissengine.h:18
+ Here is the call graph for this function:

Member Data Documentation

◆ m_fft

KissFFT KissEngine::m_fft
protected

Definition at line 18 of file kissengine.h.

Referenced by configure(), and transform().

◆ m_in

std::vector<Complex> KissEngine::m_in
protected

Definition at line 20 of file kissengine.h.

Referenced by configure(), in(), and transform().

◆ m_out

std::vector<Complex> KissEngine::m_out
protected

Definition at line 21 of file kissengine.h.

Referenced by configure(), out(), and transform().


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