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.
kissengine.cpp
Go to the documentation of this file.
1 #include "dsp/kissengine.h"
2 
3 void KissEngine::configure(int n, bool inverse)
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 }
11 
13 {
14  m_fft.transform(&m_in[0], &m_out[0]);
15 }
16 
18 {
19  return &m_in[0];
20 }
21 
23 {
24  return &m_out[0];
25 }
void configure(int n, bool inverse)
Definition: kissengine.cpp:3
void transform()
Definition: kissengine.cpp:12
std::vector< Complex > m_in
Definition: kissengine.h:20
std::vector< Complex > m_out
Definition: kissengine.h:21
Complex * in()
Definition: kissengine.cpp:17
void configure(int nfft, bool inverse, const traits_type &traits=traits_type())
Definition: kissfft.h:109
void transform(const cpx_type *src, cpx_type *dst)
Definition: kissfft.h:121
std::complex< Real > Complex
Definition: dsptypes.h:43
Complex * out()
Definition: kissengine.cpp:22
KissFFT m_fft
Definition: kissengine.h:18