2015-09-07 20:46:03 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "VisualProcessor.h"
|
|
|
|
#include "DemodDefs.h"
|
|
|
|
#include <cmath>
|
2015-09-30 23:45:06 -04:00
|
|
|
#include <cstring>
|
2015-09-07 20:46:03 -04:00
|
|
|
|
|
|
|
class FFTDataDistributor : public VisualProcessor<DemodulatorThreadIQData, DemodulatorThreadIQData> {
|
|
|
|
public:
|
|
|
|
FFTDataDistributor();
|
|
|
|
void setFFTSize(int fftSize);
|
|
|
|
void setLinesPerSecond(int lines);
|
|
|
|
int getLinesPerSecond();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void process();
|
|
|
|
|
|
|
|
DemodulatorThreadIQData inputBuffer, tempBuffer;
|
|
|
|
ReBuffer<DemodulatorThreadIQData> outputBuffers;
|
|
|
|
int fftSize;
|
|
|
|
int linesPerSecond;
|
|
|
|
double lineRateAccum;
|
2015-09-29 22:34:34 -04:00
|
|
|
int bufferMax, bufferOffset, bufferedItems;
|
2015-09-07 20:46:03 -04:00
|
|
|
};
|