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