2014-05-18 11:52:39 -04:00
|
|
|
#ifndef INCLUDE_KISSENGINE_H
|
|
|
|
#define INCLUDE_KISSENGINE_H
|
|
|
|
|
|
|
|
#include "dsp/fftengine.h"
|
|
|
|
#include "dsp/kissfft.h"
|
2018-03-20 08:49:21 -04:00
|
|
|
#include "export.h"
|
2014-05-18 11:52:39 -04:00
|
|
|
|
2018-03-03 14:23:38 -05:00
|
|
|
class SDRBASE_API KissEngine : public FFTEngine {
|
2014-05-18 11:52:39 -04:00
|
|
|
public:
|
2020-03-13 02:46:08 -04:00
|
|
|
virtual void configure(int n, bool inverse);
|
|
|
|
virtual void transform();
|
2014-05-18 11:52:39 -04:00
|
|
|
|
2020-03-13 02:46:08 -04:00
|
|
|
virtual Complex* in();
|
|
|
|
virtual Complex* out();
|
|
|
|
|
|
|
|
virtual void setReuse(bool reuse);
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
typedef kissfft<Real, Complex> KissFFT;
|
|
|
|
KissFFT m_fft;
|
|
|
|
|
|
|
|
std::vector<Complex> m_in;
|
|
|
|
std::vector<Complex> m_out;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_KISSENGINE_H
|