Mercurial > hg > svcore
comparison data/fft/FFTDataServer.h @ 226:a867be73b638
* Add non-fftw3 fft alternative
| author | Chris Cannam |
|---|---|
| date | Fri, 09 Feb 2007 11:32:34 +0000 |
| parents | 7f8ffe65d453 |
| children | f1f47660483d |
comparison
equal
deleted
inserted
replaced
| 225:185454896a76 | 226:a867be73b638 |
|---|---|
| 17 #define _FFT_DATA_SERVER_H_ | 17 #define _FFT_DATA_SERVER_H_ |
| 18 | 18 |
| 19 #include "base/Window.h" | 19 #include "base/Window.h" |
| 20 #include "base/Thread.h" | 20 #include "base/Thread.h" |
| 21 | 21 |
| 22 #include <fftw3.h> | 22 #include "FFTapi.h" |
| 23 | 23 |
| 24 #include <QMutex> | 24 #include <QMutex> |
| 25 #include <QWaitCondition> | 25 #include <QWaitCondition> |
| 26 #include <QString> | 26 #include <QString> |
| 27 | 27 |
| 157 FFTCache *getCacheAux(size_t c); | 157 FFTCache *getCacheAux(size_t c); |
| 158 QMutex m_writeMutex; | 158 QMutex m_writeMutex; |
| 159 QWaitCondition m_condition; | 159 QWaitCondition m_condition; |
| 160 | 160 |
| 161 fftsample *m_fftInput; | 161 fftsample *m_fftInput; |
| 162 fftwf_complex *m_fftOutput; | 162 fftf_complex *m_fftOutput; |
| 163 float *m_workbuffer; | 163 float *m_workbuffer; |
| 164 fftwf_plan m_fftPlan; | 164 fftf_plan m_fftPlan; |
| 165 | 165 |
| 166 class FillThread : public Thread | 166 class FillThread : public Thread |
| 167 { | 167 { |
| 168 public: | 168 public: |
| 169 FillThread(FFTDataServer &server, size_t fillFromColumn) : | 169 FillThread(FFTDataServer &server, size_t fillFromColumn) : |
