MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / getFullSampleRateIqData

Method getFullSampleRateIqData

src/sdr/SDRPostThread.cpp:221–230  ·  view source on GitHub ↗

Copy the full badwidth into a new DemodulatorThreadIQDataPtr.

Source from the content-addressed store, hash-verified

219
220// Copy the full badwidth into a new DemodulatorThreadIQDataPtr.
221DemodulatorThreadIQDataPtr SDRPostThread::getFullSampleRateIqData(SDRThreadIQData *data_in) {
222
223 DemodulatorThreadIQDataPtr iqDataOut = visualDataBuffers.getBuffer();
224
225 iqDataOut->frequency = data_in->frequency;
226 iqDataOut->sampleRate = data_in->sampleRate;
227 iqDataOut->data.assign(data_in->data.begin(), data_in->data.begin() + data_in->data.size());
228
229 return iqDataOut;
230}
231
232// Push visual data; i.e. Main Waterfall (all frames) and Spectrum (active frame)
233void SDRPostThread::pushVisualData(const DemodulatorThreadIQDataPtr& iqDataOut) {

Callers

nothing calls this directly

Calls 2

getBufferMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected