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.
fftwengine.h
Go to the documentation of this file.
1 #ifndef INCLUDE_FFTWENGINE_H
2 #define INCLUDE_FFTWENGINE_H
3 
4 #include <QMutex>
5 #include <fftw3.h>
6 #include <list>
7 #include "dsp/fftengine.h"
8 #include "export.h"
9 
11 public:
12  FFTWEngine();
13  ~FFTWEngine();
14 
15  void configure(int n, bool inverse);
16  void transform();
17 
18  Complex* in();
19  Complex* out();
20 
21 protected:
22  static QMutex m_globalPlanMutex;
23 
24  struct Plan {
25  int n;
26  bool inverse;
27  fftwf_plan plan;
28  fftwf_complex* in;
29  fftwf_complex* out;
30  };
31  typedef std::list<Plan*> Plans;
32  Plans m_plans;
34 
35  void freeAll();
36 };
37 
38 #endif // INCLUDE_FFTWENGINE_H
fftwf_complex * in
Definition: fftwengine.h:28
virtual Complex * in()=0
Plan * m_currentPlan
Definition: fftwengine.h:33
virtual void transform()=0
virtual void configure(int n, bool inverse)=0
fftwf_complex * out
Definition: fftwengine.h:29
std::list< Plan * > Plans
Definition: fftwengine.h:31
virtual Complex * out()=0
static QMutex m_globalPlanMutex
Definition: fftwengine.h:22
fftwf_plan plan
Definition: fftwengine.h:27
#define SDRBASE_API
Definition: export.h:40
std::complex< Real > Complex
Definition: dsptypes.h:43
Plans m_plans
Definition: fftwengine.h:32