Browse Source

Merge branch 'f4exb:master' into dvb

chirpmodem-v8.0.0
srcejon 1 month ago committed by GitHub
parent
commit
6fabf4e65d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ft8/fft.h
  2. 6
      plugins/channelrx/chanalyzer/chanalyzersink.h
  3. 2
      plugins/channelrx/demodadsb/adsbdemodgui.h
  4. 5
      plugins/channelrx/demodam/amdemodsink.h
  5. 4
      plugins/channelrx/demodatv/atvdemodsink.h
  6. 4
      plugins/channelrx/demodbfm/bfmdemodsink.h
  7. 4
      plugins/channelrx/demoddatv/datvdemodsink.h
  8. 2
      plugins/channelrx/demoddatv/leansdr/bch.h
  9. 5
      plugins/channelrx/demoddatv/leansdr/dsp.h
  10. 5
      plugins/channelrx/demoddatv/leansdr/dvb.h
  11. 6
      plugins/channelrx/demoddatv/leansdr/dvbs2.h
  12. 3
      plugins/channelrx/demoddatv/leansdr/framework.h
  13. 3
      plugins/channelrx/demoddatv/leansdr/hdlc.h
  14. 3
      plugins/channelrx/demoddatv/leansdr/ldpc.h
  15. 6
      plugins/channelrx/demoddatv/leansdr/sdr.h
  16. 4
      plugins/channelrx/demoddsd/dsddemodsink.h
  17. 4
      plugins/channelrx/demodft8/ft8demodsink.h
  18. 2
      plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp
  19. 2
      plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp
  20. 10
      plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h
  21. 7
      plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp
  22. 4
      plugins/channelrx/demodssb/ssbdemodsink.h
  23. 4
      plugins/channelrx/demodwfm/wfmdemodsink.h
  24. 4
      plugins/channelrx/filesink/filesinksink.h
  25. 4
      plugins/channelrx/wdsprx/wdsprxsink.h
  26. 3
      plugins/channeltx/modatv/atvmodsource.h
  27. 2
      plugins/channeltx/moddatv/dvb-s/dvb-s.h
  28. 2
      plugins/channeltx/udpsource/udpsourcesource.h
  29. 2
      qrtplib/rtprawpacket.h
  30. 2
      sdrbase/audio/audionetsink.h
  31. 10
      sdrbase/channel/remotedatablock.h
  32. 2
      sdrbase/device/deviceset.h
  33. 4
      sdrbase/dsp/afsquelch.h
  34. 2
      sdrbase/dsp/ctcssdetector.h
  35. 2
      sdrbase/dsp/downchannelizer.h
  36. 2
      sdrbase/dsp/fftfilt.h
  37. 2
      sdrbase/dsp/fftnr.h
  38. 4
      sdrbase/dsp/iirfilter.h
  39. 2
      sdrbase/dsp/upchannelizer.h
  40. 3
      sdrbase/util/doublebufferfifo.h
  41. 3
      sdrbase/util/udpsinkutil.h
  42. 3
      sdrgui/gui/tvscreenanalog.h
  43. 3
      wdsp/unit.hpp

2
ft8/fft.h

@ -49,6 +49,8 @@ public: @@ -49,6 +49,8 @@ public:
FFTEngine();
~FFTEngine();
FFTEngine(const FFTEngine&) = delete;
FFTEngine& operator=(const FFTEngine&) = delete;
private:
std::vector<std::complex<float>> analytic(const std::vector<float> &x);

6
plugins/channelrx/chanalyzer/chanalyzersink.h

@ -40,7 +40,9 @@ class ScopeVis; @@ -40,7 +40,9 @@ class ScopeVis;
class ChannelAnalyzerSink : public ChannelSampleSink {
public:
ChannelAnalyzerSink();
~ChannelAnalyzerSink();
~ChannelAnalyzerSink();
ChannelAnalyzerSink(const ChannelAnalyzerSink&) = delete;
ChannelAnalyzerSink& operator=(const ChannelAnalyzerSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);
@ -63,6 +65,8 @@ private: @@ -63,6 +65,8 @@ private:
public:
RRCHelper(int flen);
~RRCHelper();
RRCHelper(const RRCHelper&) = delete;
RRCHelper& operator=(const RRCHelper&) = delete;
void setUseFFT(bool useFFT);
void create(float symbolRate, float rolloff, unsigned int samplesPerSymbol, FIRFilterRRC::Normalization normalization);
int runFilt(const std::complex<float> & in, std::complex<float> **out);

2
plugins/channelrx/demodadsb/adsbdemodgui.h

@ -489,6 +489,8 @@ struct Aircraft { @@ -489,6 +489,8 @@ struct Aircraft {
m_staticAirTempItem = new QTableWidgetItem();
m_humidityItem = new QTableWidgetItem();
}
Aircraft(const Aircraft&) = delete;
Aircraft& operator=(const Aircraft&) = delete;
QString getImage() const;
QString getText(const ADSBDemodSettings *settings, bool all=false) const;

5
plugins/channelrx/demodam/amdemodsink.h

@ -38,7 +38,10 @@ class ChannelAPI; @@ -38,7 +38,10 @@ class ChannelAPI;
class AMDemodSink : public ChannelSampleSink {
public:
AMDemodSink();
~AMDemodSink();
~AMDemodSink();
AMDemodSink(const AMDemodSink&) = delete;
AMDemodSink& operator=(const AMDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/demodatv/atvdemodsink.h

@ -39,7 +39,9 @@ class ScopeVis; @@ -39,7 +39,9 @@ class ScopeVis;
class ATVDemodSink : public ChannelSampleSink {
public:
ATVDemodSink();
~ATVDemodSink();
~ATVDemodSink();
ATVDemodSink(const ATVDemodSink&) = delete;
ATVDemodSink& operator=(const ATVDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/demodbfm/bfmdemodsink.h

@ -44,7 +44,9 @@ class BasebandSampleSink; @@ -44,7 +44,9 @@ class BasebandSampleSink;
class BFMDemodSink : public ChannelSampleSink {
public:
BFMDemodSink();
~BFMDemodSink();
~BFMDemodSink();
BFMDemodSink(const BFMDemodSink&) = delete;
BFMDemodSink& operator=(const BFMDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/demoddatv/datvdemodsink.h

@ -57,7 +57,9 @@ class QLabel; @@ -57,7 +57,9 @@ class QLabel;
class DATVDemodSink : public ChannelSampleSink {
public:
DATVDemodSink();
~DATVDemodSink();
~DATVDemodSink();
DATVDemodSink(const DATVDemodSink&) = delete;
DATVDemodSink& operator=(const DATVDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

2
plugins/channelrx/demoddatv/leansdr/bch.h

@ -95,6 +95,8 @@ struct bch_engine : bch_interface @@ -95,6 +95,8 @@ struct bch_engine : bch_interface
delete[] truncpolys;
delete[] syndpolys;
}
bch_engine(const bch_engine&) = delete;
bch_engine& operator=(const bch_engine&) = delete;
// Generate BCH parity bits.

5
plugins/channelrx/demoddatv/leansdr/dsp.h

@ -408,6 +408,8 @@ struct fir_filter : runnable @@ -408,6 +408,8 @@ struct fir_filter : runnable
~fir_filter() {
delete[] shifted_coeffs;
}
fir_filter(const fir_filter&) = delete;
fir_filter& operator=(const fir_filter&) = delete;
void run()
{
@ -506,6 +508,9 @@ struct fir_resampler : runnable @@ -506,6 +508,9 @@ struct fir_resampler : runnable
delete[] shifted_coeffs;
}
fir_resampler(const fir_resampler&) = delete;
fir_resampler& operator=(const fir_resampler&) = delete;
void run()
{
if (in.readable() < ncoeffs)

5
plugins/channelrx/demoddatv/leansdr/dvb.h

@ -181,6 +181,8 @@ struct deconvol_sync : runnable @@ -181,6 +181,8 @@ struct deconvol_sync : runnable
delete[] punct;
delete[] conv;
}
deconvol_sync(const deconvol_sync&) = delete;
deconvol_sync& operator=(const deconvol_sync&) = delete;
typedef uint64_t signal_t;
typedef uint64_t iq_t;
@ -1749,6 +1751,9 @@ struct viterbi_sync : runnable @@ -1749,6 +1751,9 @@ struct viterbi_sync : runnable
delete syncs;
}
viterbi_sync(const viterbi_sync&) = delete;
viterbi_sync& operator=(const viterbi_sync&) = delete;
TCS *init_map(bool conj, float angle)
{
// Each constellation has its own pattern for labels.

6
plugins/channelrx/demoddatv/leansdr/dvbs2.h

@ -675,6 +675,9 @@ struct s2_frame_receiver : runnable @@ -675,6 +675,9 @@ struct s2_frame_receiver : runnable
}
}
s2_frame_receiver(const s2_frame_receiver&) = delete;
s2_frame_receiver& operator=(const s2_frame_receiver&) = delete;
enum {
FRAME_DETECT, // Looking for PLHEADER
FRAME_PROBE, // Aligned with PLHEADER, ready to recover carrier
@ -3136,6 +3139,9 @@ struct s2_fecdec_soft : runnable @@ -3136,6 +3139,9 @@ struct s2_fecdec_soft : runnable
}
}
s2_fecdec_soft(const s2_fecdec_soft&) = delete;
s2_fecdec_soft& operator=(const s2_fecdec_soft&) = delete;
void run()
{
while (in.readable() >= 1 &&

3
plugins/channelrx/demoddatv/leansdr/framework.h

@ -248,6 +248,9 @@ struct pipebuf : pipebuf_common @@ -248,6 +248,9 @@ struct pipebuf : pipebuf_common
delete[] buf;
}
pipebuf(const pipebuf&) = delete;
pipebuf& operator=(const pipebuf&) = delete;
int sizeofT() {
return sizeof(T);
}

3
plugins/channelrx/demoddatv/leansdr/hdlc.h

@ -55,6 +55,9 @@ struct hdlc_dec @@ -55,6 +55,9 @@ struct hdlc_dec
delete[] framebuf;
}
hdlc_dec(const hdlc_dec&) = delete;
hdlc_dec& operator=(const hdlc_dec&) = delete;
void reset()
{
shiftreg = 0;

3
plugins/channelrx/demoddatv/leansdr/ldpc.h

@ -175,6 +175,9 @@ struct ldpc_engine @@ -175,6 +175,9 @@ struct ldpc_engine
}
}
ldpc_engine(const ldpc_engine&) = delete;
ldpc_engine& operator=(const ldpc_engine&) = delete;
void print_node_stats()
{
int nedges = count_edges(vnodes, k);

6
plugins/channelrx/demoddatv/leansdr/sdr.h

@ -91,6 +91,9 @@ struct auto_notch : runnable @@ -91,6 +91,9 @@ struct auto_notch : runnable
delete[] __slots;
}
auto_notch(const auto_notch&) = delete;
auto_notch& operator=(const auto_notch&) = delete;
void run()
{
while (in.readable() >= fft.size() && out.writable() >= fft.size())
@ -1052,6 +1055,9 @@ struct fir_sampler : sampler_interface<T> @@ -1052,6 +1055,9 @@ struct fir_sampler : sampler_interface<T>
delete[] shifted_coeffs;
}
fir_sampler(const fir_sampler&) = delete;
fir_sampler& operator=(const fir_sampler&) = delete;
int readahead() {
return ncoeffs - 1;
}

4
plugins/channelrx/demoddsd/dsddemodsink.h

@ -41,7 +41,9 @@ class Feature; @@ -41,7 +41,9 @@ class Feature;
class DSDDemodSink : public ChannelSampleSink {
public:
DSDDemodSink();
~DSDDemodSink();
~DSDDemodSink();
DSDDemodSink(const DSDDemodSink&) = delete;
DSDDemodSink& operator=(const DSDDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/demodft8/ft8demodsink.h

@ -35,7 +35,9 @@ class FT8Buffer; @@ -35,7 +35,9 @@ class FT8Buffer;
class FT8DemodSink : public ChannelSampleSink {
public:
FT8DemodSink();
~FT8DemodSink();
~FT8DemodSink();
FT8DemodSink(const FT8DemodSink&) = delete;
FT8DemodSink& operator=(const FT8DemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

2
plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp

@ -601,6 +601,8 @@ QString MeshtasticDemod::buildMeshtasticJsonPacket( @@ -601,6 +601,8 @@ QString MeshtasticDemod::buildMeshtasticJsonPacket(
rf["signal_db"] = msg.getSingalDb();
rf["noise_db"] = msg.getNoiseDb();
rf["snr_db"] = msg.getSingalDb() - msg.getNoiseDb();
// Emit the carrier frequency offset in Hz rounded to two decimal places.
rf["cfoHz"] = std::round(msg.getCfoHz() * 100.0) / 100.0;
root["rf"] = rf;
// LoRa

2
plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp

@ -362,6 +362,8 @@ bool MeshtasticDemodDecoder::handleMessage(const Message& cmd) @@ -362,6 +362,8 @@ bool MeshtasticDemodDecoder::handleMessage(const Message& cmd)
outputMsg->setSyncWord(msgSyncWord);
outputMsg->setSignalDb(msgSignalDb);
outputMsg->setNoiseDb(msgNoiseDb);
// Forward this frame's carrier frequency offset to the decode report.
outputMsg->setCfoHz(msg.getCfoHz());
outputMsg->setMsgTimestamp(msgTimestamp);
outputMsg->setPacketSize(getPacketLength());
outputMsg->setNbParityBits(getNbParityBits());

10
plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h

@ -40,6 +40,9 @@ namespace MeshtasticDemodMsg @@ -40,6 +40,9 @@ namespace MeshtasticDemodMsg
unsigned int getSyncWord() const { return m_syncWord; }
float getSingalDb() const { return m_signalDb; }
float getNoiseDb() const { return m_noiseDb; }
// Access the carrier frequency offset in Hz carried by this message.
double getCfoHz() const { return m_cfoHz; }
void setCfoHz(double cfoHz) { m_cfoHz = cfoHz; }
void pushBackSymbol(unsigned short symbol) {
m_symbols.push_back(symbol);
@ -93,6 +96,8 @@ namespace MeshtasticDemodMsg @@ -93,6 +96,8 @@ namespace MeshtasticDemodMsg
unsigned int m_syncWord;
float m_signalDb;
float m_noiseDb;
// Initialize the carrier frequency offset in Hz for every new message.
double m_cfoHz = 0.0;
MsgDecodeSymbols() : //!< create an empty message
Message(),
@ -259,6 +264,9 @@ namespace MeshtasticDemodMsg @@ -259,6 +264,9 @@ namespace MeshtasticDemodMsg
unsigned int getSyncWord() const { return m_syncWord; }
float getSingalDb() const { return m_signalDb; }
float getNoiseDb() const { return m_noiseDb; }
// Access the carrier frequency offset in Hz carried by this message.
double getCfoHz() const { return m_cfoHz; }
void setCfoHz(double cfoHz) { m_cfoHz = cfoHz; }
const QString& getMsgTimestamp() const { return m_msgTimestamp; }
unsigned int getPacketSize() const { return m_packetSize; }
unsigned int getNbParityBits() const { return m_nbParityBits; }
@ -338,6 +346,8 @@ namespace MeshtasticDemodMsg @@ -338,6 +346,8 @@ namespace MeshtasticDemodMsg
unsigned int m_syncWord;
float m_signalDb;
float m_noiseDb;
// Initialize the carrier frequency offset in Hz for every new message.
double m_cfoHz = 0.0;
QString m_msgTimestamp;
unsigned int m_packetSize;
unsigned int m_nbParityBits;

7
plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp

@ -1019,6 +1019,11 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep() @@ -1019,6 +1019,11 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep()
m_loRaCFOInt = static_cast<int>(std::floor((m_loRaDownVal - static_cast<int>(m_nbSymbols)) / 2.0));
}
// Convert the carrier frequency offset (CFO) estimate from FFT bins to Hz.
const double cfoHz =
(static_cast<double>(m_loRaCFOInt) + static_cast<double>(m_loRaCFOFrac))
* static_cast<double>(m_bandwidth) / static_cast<double>(m_nbSymbols);
// Preserve state-machine net ID bin indices for sync word extraction.
// The corrLen-based refinement overwrites m_loRaNetIds but may produce
// incorrect results when m_loRaNetIdSamp is not fully populated.
@ -1140,6 +1145,8 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep() @@ -1140,6 +1145,8 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep()
m_loRaFrameId++;
m_decodeMsg = MeshtasticDemodMsg::MsgDecodeSymbols::create();
m_decodeMsg->setFrameId(m_loRaFrameId);
// Attach the measured carrier frequency offset to this frame.
m_decodeMsg->setCfoHz(cfoHz);
{
// LoRa sync word is encoded across two net-ID chirps.
// First chirp (index 0) carries the high nibble, second (index 1) the low nibble.

4
plugins/channelrx/demodssb/ssbdemodsink.h

@ -37,7 +37,9 @@ class ChannelAPI; @@ -37,7 +37,9 @@ class ChannelAPI;
class SSBDemodSink : public ChannelSampleSink {
public:
SSBDemodSink();
~SSBDemodSink();
~SSBDemodSink();
SSBDemodSink(const SSBDemodSink&) = delete;
SSBDemodSink& operator=(const SSBDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/demodwfm/wfmdemodsink.h

@ -35,7 +35,9 @@ class ChannelAPI; @@ -35,7 +35,9 @@ class ChannelAPI;
class WFMDemodSink : public ChannelSampleSink {
public:
WFMDemodSink();
~WFMDemodSink();
~WFMDemodSink();
WFMDemodSink(const WFMDemodSink&) = delete;
WFMDemodSink& operator=(const WFMDemodSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/filesink/filesinksink.h

@ -35,7 +35,9 @@ class SpectrumVis; @@ -35,7 +35,9 @@ class SpectrumVis;
class FileSinkSink : public ChannelSampleSink {
public:
FileSinkSink();
~FileSinkSink();
~FileSinkSink();
FileSinkSink(const FileSinkSink&) = delete;
FileSinkSink& operator=(const FileSinkSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

4
plugins/channelrx/wdsprx/wdsprxsink.h

@ -42,7 +42,9 @@ namespace WDSP { @@ -42,7 +42,9 @@ namespace WDSP {
class WDSPRxSink : public ChannelSampleSink {
public:
WDSPRxSink();
~WDSPRxSink();
~WDSPRxSink();
WDSPRxSink(const WDSPRxSink&) = delete;
WDSPRxSink& operator=(const WDSPRxSink&) = delete;
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);

3
plugins/channeltx/modatv/atvmodsource.h

@ -46,6 +46,9 @@ class ATVModSource : public ChannelSampleSource @@ -46,6 +46,9 @@ class ATVModSource : public ChannelSampleSource
public:
ATVModSource();
~ATVModSource();
ATVModSource(const ATVModSource&) = delete;
ATVModSource& operator=(const ATVModSource&) = delete;
virtual void pull(SampleVector::iterator begin, unsigned int nbSamples);
virtual void pullOne(Sample& sample);

2
plugins/channeltx/moddatv/dvb-s/dvb-s.h

@ -36,6 +36,8 @@ public: @@ -36,6 +36,8 @@ public:
DVBS();
~DVBS();
DVBS(const DVBS&) = delete;
DVBS& operator=(const DVBS&) = delete;
int encode(const uint8_t *ts, uint8_t *iq);
void setCodeRate(CodeRate codeRate);

2
plugins/channeltx/udpsource/udpsourcesource.h

@ -37,6 +37,8 @@ class UDPSourceSource : public ChannelSampleSource { @@ -37,6 +37,8 @@ class UDPSourceSource : public ChannelSampleSource {
public:
UDPSourceSource();
virtual ~UDPSourceSource();
UDPSourceSource(const UDPSourceSource&) = delete;
UDPSourceSource& operator=(const UDPSourceSource&) = delete;
virtual void pull(SampleVector::iterator begin, unsigned int nbSamples);
virtual void pullOne(Sample& sample);

2
qrtplib/rtprawpacket.h

@ -58,6 +58,8 @@ public: @@ -58,6 +58,8 @@ public:
*/
RTPRawPacket(const uint8_t *data, std::size_t datalen, const RTPAddress& address, RTPTime &recvtime, bool rtp);
~RTPRawPacket();
RTPRawPacket(const RTPRawPacket&) = delete;
RTPRawPacket& operator=(const RTPRawPacket&) = delete;
/** Returns the pointer to the data which is contained in this packet. */
uint8_t *GetData()

2
sdrbase/audio/audionetsink.h

@ -55,6 +55,8 @@ public: @@ -55,6 +55,8 @@ public:
AudioNetSink(QObject *parent); //!< without RTP
AudioNetSink(QObject *parent, int sampleRate, bool stereo); //!< with RTP
~AudioNetSink();
AudioNetSink(const AudioNetSink&) = delete;
AudioNetSink& operator=(const AudioNetSink&) = delete;
void setDestination(const QString& address, uint16_t port);
void addDestination(const QString& address, uint16_t port);

10
sdrbase/channel/remotedatablock.h

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <string.h>
#include <algorithm>
#include <QString>
#include <utility>
#include "dsp/dsptypes.h"
#define UDPSINKFEC_UDPSIZE 512
@ -170,6 +171,15 @@ public: @@ -170,6 +171,15 @@ public:
~RemoteDataFrame() {
delete[] m_superBlocks;
}
RemoteDataFrame(const RemoteDataFrame&) = delete;
RemoteDataFrame& operator=(const RemoteDataFrame&) = delete;
RemoteDataFrame(RemoteDataFrame&& other) :
m_txControlBlock(std::move(other.m_txControlBlock)),
m_rxControlBlock(std::move(other.m_rxControlBlock)),
m_superBlocks(other.m_superBlocks)
{
other.m_superBlocks = nullptr;
}
RemoteTxControlBlock m_txControlBlock;
RemoteRxControlBlock m_rxControlBlock;
RemoteSuperBlock *m_superBlocks;

2
sdrbase/device/deviceset.h

@ -56,6 +56,8 @@ public: @@ -56,6 +56,8 @@ public:
DeviceSet(int tabIndex, int deviceType);
~DeviceSet();
DeviceSet(const DeviceSet&) = delete;
DeviceSet& operator=(const DeviceSet&) = delete;
int getNumberOfChannels() const { return m_channelInstanceRegistrations.size(); }
int getIndex() const { return m_deviceTabIndex; }

4
sdrbase/dsp/afsquelch.h

@ -27,8 +27,10 @@ @@ -27,8 +27,10 @@
class SDRBASE_API AFSquelch {
public:
// constructor with default values
AFSquelch();
AFSquelch();
virtual ~AFSquelch();
AFSquelch(const AFSquelch&) = delete;
AFSquelch& operator=(const AFSquelch&) = delete;
// setup the basic parameters and coefficients
void setCoefficients(

2
sdrbase/dsp/ctcssdetector.h

@ -32,6 +32,8 @@ class SDRBASE_API CTCSSDetector { @@ -32,6 +32,8 @@ class SDRBASE_API CTCSSDetector {
public:
CTCSSDetector();
virtual ~CTCSSDetector();
CTCSSDetector(const CTCSSDetector&) = delete;
CTCSSDetector& operator=(const CTCSSDetector&) = delete;
// setup the basic parameters and coefficients
void setCoefficients(

2
sdrbase/dsp/downchannelizer.h

@ -66,6 +66,8 @@ protected: @@ -66,6 +66,8 @@ protected:
FilterStage(Mode mode);
~FilterStage();
FilterStage(const FilterStage&) = delete;
FilterStage& operator=(const FilterStage&) = delete;
bool work(Sample* sample)
{

2
sdrbase/dsp/fftfilt.h

@ -136,6 +136,8 @@ public: @@ -136,6 +136,8 @@ public:
typedef std::complex<float> cmplx;
sfft(int len);
~sfft();
sfft(const sfft&) = delete;
sfft& operator=(const sfft&) = delete;
void run(const cmplx& input);
void fetch(float *result);
private:

2
sdrbase/dsp/fftnr.h

@ -35,6 +35,8 @@ public: @@ -35,6 +35,8 @@ public:
FFTNoiseReduction(int len);
~FFTNoiseReduction();
FFTNoiseReduction(const FFTNoiseReduction&) = delete;
FFTNoiseReduction& operator=(const FFTNoiseReduction&) = delete;
void init(); //!< call before start of initial FFT scan
void push(cmplx data, int index); //!< Push FFT bin during initial FFT scan

4
sdrbase/dsp/iirfilter.h

@ -31,6 +31,8 @@ template <typename Type, uint32_t Order> class IIRFilter @@ -31,6 +31,8 @@ template <typename Type, uint32_t Order> class IIRFilter
public:
IIRFilter(const Type *a, const Type *b);
~IIRFilter();
IIRFilter(const IIRFilter&) = delete;
IIRFilter& operator=(const IIRFilter&) = delete;
void setCoeffs(const Type *a, const Type *b);
Type run(const Type& sample);
@ -46,6 +48,8 @@ template <typename Type> class IIRFilter<Type, 2> @@ -46,6 +48,8 @@ template <typename Type> class IIRFilter<Type, 2>
public:
IIRFilter(const Type *a, const Type *b);
~IIRFilter();
IIRFilter(const IIRFilter&) = delete;
IIRFilter& operator=(const IIRFilter&) = delete;
void setCoeffs(const Type *a, const Type *b);
Type run(const Type& sample);

2
sdrbase/dsp/upchannelizer.h

@ -67,6 +67,8 @@ protected: @@ -67,6 +67,8 @@ protected:
FilterStage(Mode mode);
~FilterStage();
FilterStage(const FilterStage&) = delete;
FilterStage& operator=(const FilterStage&) = delete;
bool work(Sample* sampleIn, Sample *sampleOut) {
return (m_filter->*m_workFunction)(sampleIn, sampleOut);

3
sdrbase/util/doublebufferfifo.h

@ -35,6 +35,9 @@ public: @@ -35,6 +35,9 @@ public:
delete[] m_data;
}
DoubleBufferFIFO(const DoubleBufferFIFO&) = delete;
DoubleBufferFIFO& operator=(const DoubleBufferFIFO&) = delete;
void resize(int size)
{
delete[] m_data;

3
sdrbase/util/udpsinkutil.h

@ -68,6 +68,9 @@ public: @@ -68,6 +68,9 @@ public:
delete m_socket;
}
UDPSinkUtil(const UDPSinkUtil&) = delete;
UDPSinkUtil& operator=(const UDPSinkUtil&) = delete;
void moveToThread(QThread *thread)
{
m_socket->moveToThread(thread);

3
sdrgui/gui/tvscreenanalog.h

@ -62,6 +62,9 @@ public: @@ -62,6 +62,9 @@ public:
delete[] m_outOfBoundsLine;
}
TVScreenAnalogBuffer(const TVScreenAnalogBuffer&) = delete;
TVScreenAnalogBuffer& operator=(const TVScreenAnalogBuffer&) = delete;
int getWidth()
{
return m_width;

3
wdsp/unit.hpp

@ -50,6 +50,9 @@ public: @@ -50,6 +50,9 @@ public:
int _dsp_size // number complex samples processed per buffer in mainstream dsp processing
);
~Unit();
Unit(const Unit&) = delete;
Unit& operator=(const Unit&) = delete;
void flushBuffers();
void setBuffersInputSamplerate(int _in_rate);

Loading…
Cancel
Save