Browse Source

Make SpectrumVis limits constexpr

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
chirpmodem-v8.0.0
copilot-swe-agent[bot] 2 months ago committed by GitHub
parent
commit
4ad60540e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      sdrbase/dsp/spectrumvis.h

4
sdrbase/dsp/spectrumvis.h

@ -207,7 +207,7 @@ public: @@ -207,7 +207,7 @@ public:
int webapiSpectrumDataGet(int bins, qint64 startFrequency, qint64 stopFrequency, const QString& reduce,
SWGSDRangel::SWGGLSpectrumData& response, QString& errorMessage) const;
static const int m_maxDataBins = 4096; //!< A reduced spectrum any larger is not a summary
static constexpr int m_maxDataBins = 4096; //!< A reduced spectrum any larger is not a summary
//!< Statistics over the spectrum history the display keeps for scrolling: per bin max, mean
//!< and occupancy, and the signals found. thresholdDb is above the measured floor
@ -216,7 +216,7 @@ public: @@ -216,7 +216,7 @@ public:
//!< The same history as a greyscale PNG, newest row at the bottom, bins wide and one row per pixel up to maxRows
int webapiSpectrumHistoryImageGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows,
QByteArray& png, QJsonObject& description, QString& errorMessage) const;
static const int m_maxHistoryRows = 4000;
static constexpr int m_maxHistoryRows = 4000;
private:
struct ReducedHistory;

Loading…
Cancel
Save