diff --git a/sdrbase/dsp/decimators.h b/sdrbase/dsp/decimators.h index c4645c2da..c8bbd27af 100644 --- a/sdrbase/dsp/decimators.h +++ b/sdrbase/dsp/decimators.h @@ -154,12 +154,12 @@ private: IntHalfbandFilterEO1 m_decimator32; // 5th stages IntHalfbandFilterEO1 m_decimator64; // 6th stages #else - IntHalfbandFilterDB m_decimator2; // 1st stages - IntHalfbandFilterDB m_decimator4; // 2nd stages - IntHalfbandFilterDB m_decimator8; // 3rd stages - IntHalfbandFilterDB m_decimator16; // 4th stages - IntHalfbandFilterDB m_decimator32; // 5th stages - IntHalfbandFilterDB m_decimator64; // 6th stages + IntHalfbandFilterDB m_decimator2; // 1st stages + IntHalfbandFilterDB m_decimator4; // 2nd stages + IntHalfbandFilterDB m_decimator8; // 3rd stages + IntHalfbandFilterDB m_decimator16; // 4th stages + IntHalfbandFilterDB m_decimator32; // 5th stages + IntHalfbandFilterDB m_decimator64; // 6th stages #endif }; diff --git a/sdrbase/dsp/decimatorsu.h b/sdrbase/dsp/decimatorsu.h index f288bc88c..2e0b04aaf 100644 --- a/sdrbase/dsp/decimatorsu.h +++ b/sdrbase/dsp/decimatorsu.h @@ -138,12 +138,12 @@ private: IntHalfbandFilterEO1 m_decimator32; // 5th stages IntHalfbandFilterEO1 m_decimator64; // 6th stages #else - IntHalfbandFilterDB m_decimator2; // 1st stages - IntHalfbandFilterDB m_decimator4; // 2nd stages - IntHalfbandFilterDB m_decimator8; // 3rd stages - IntHalfbandFilterDB m_decimator16; // 4th stages - IntHalfbandFilterDB m_decimator32; // 5th stages - IntHalfbandFilterDB m_decimator64; // 6th stages + IntHalfbandFilterDB m_decimator2; // 1st stages + IntHalfbandFilterDB m_decimator4; // 2nd stages + IntHalfbandFilterDB m_decimator8; // 3rd stages + IntHalfbandFilterDB m_decimator16; // 4th stages + IntHalfbandFilterDB m_decimator32; // 5th stages + IntHalfbandFilterDB m_decimator64; // 6th stages #endif }; diff --git a/sdrbase/dsp/downchannelizer.cpp b/sdrbase/dsp/downchannelizer.cpp index 3e3193f75..e39b523b8 100644 --- a/sdrbase/dsp/downchannelizer.cpp +++ b/sdrbase/dsp/downchannelizer.cpp @@ -215,22 +215,22 @@ DownChannelizer::FilterStage::FilterStage(Mode mode) : } #else DownChannelizer::FilterStage::FilterStage(Mode mode) : - m_filter(new IntHalfbandFilterDB), + m_filter(new IntHalfbandFilterDB), m_workFunction(0), m_mode(mode), m_sse(false) { switch(mode) { case ModeCenter: - m_workFunction = &IntHalfbandFilterDB::workDecimateCenter; + m_workFunction = &IntHalfbandFilterDB::workDecimateCenter; break; case ModeLowerHalf: - m_workFunction = &IntHalfbandFilterDB::workDecimateLowerHalf; + m_workFunction = &IntHalfbandFilterDB::workDecimateLowerHalf; break; case ModeUpperHalf: - m_workFunction = &IntHalfbandFilterDB::workDecimateUpperHalf; + m_workFunction = &IntHalfbandFilterDB::workDecimateUpperHalf; break; } } diff --git a/sdrbase/dsp/downchannelizer.h b/sdrbase/dsp/downchannelizer.h index 8df11cf75..d77c4a402 100644 --- a/sdrbase/dsp/downchannelizer.h +++ b/sdrbase/dsp/downchannelizer.h @@ -82,8 +82,8 @@ protected: typedef bool (IntHalfbandFilterEO1::*WorkFunction)(Sample* s); IntHalfbandFilterEO1* m_filter; #else - typedef bool (IntHalfbandFilterDB::*WorkFunction)(Sample* s); - IntHalfbandFilterDB* m_filter; + typedef bool (IntHalfbandFilterDB::*WorkFunction)(Sample* s); + IntHalfbandFilterDB* m_filter; #endif WorkFunction m_workFunction; Mode m_mode; diff --git a/sdrbase/dsp/interpolators.h b/sdrbase/dsp/interpolators.h index f1f3dd2d2..d64619f40 100644 --- a/sdrbase/dsp/interpolators.h +++ b/sdrbase/dsp/interpolators.h @@ -122,12 +122,12 @@ private: IntHalfbandFilterEO1 m_interpolator32; // 5th stages IntHalfbandFilterEO1 m_interpolator64; // 6th stages #else - IntHalfbandFilterDB m_interpolator2; // 1st stages - IntHalfbandFilterDB m_interpolator4; // 2nd stages - IntHalfbandFilterDB m_interpolator8; // 3rd stages - IntHalfbandFilterDB m_interpolator16; // 4th stages - IntHalfbandFilterDB m_interpolator32; // 5th stages - IntHalfbandFilterDB m_interpolator64; // 6th stages + IntHalfbandFilterDB m_interpolator2; // 1st stages + IntHalfbandFilterDB m_interpolator4; // 2nd stages + IntHalfbandFilterDB m_interpolator8; // 3rd stages + IntHalfbandFilterDB m_interpolator16; // 4th stages + IntHalfbandFilterDB m_interpolator32; // 5th stages + IntHalfbandFilterDB m_interpolator64; // 6th stages #endif }; diff --git a/sdrbase/dsp/inthalfbandfilter.h b/sdrbase/dsp/inthalfbandfilter.h index c1fd7aea7..f21f12d87 100644 --- a/sdrbase/dsp/inthalfbandfilter.h +++ b/sdrbase/dsp/inthalfbandfilter.h @@ -23,7 +23,7 @@ #include "dsp/hbfiltertraits.h" #include "util/export.h" -template +template class SDRANGEL_API IntHalfbandFilter { public: IntHalfbandFilter() : @@ -748,7 +748,7 @@ public: } protected: - qint32 m_samples[HBFIRFilterTraits::hbOrder + 1][2]; // Valgrind optim (from qint16) + AccuType m_samples[HBFIRFilterTraits::hbOrder + 1][2]; // Valgrind optim (from qint16) qint16 m_ptr; int m_state; @@ -759,8 +759,8 @@ protected: int b = HBFIRFilterTraits::hbMod[m_ptr + 2 - 2]; //-1 - 1 // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -790,8 +790,8 @@ protected: qint16 b = m_ptr + (HBFIRFilterTraits::hbOrder / 2) - 1; // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -811,8 +811,8 @@ protected: qint16 b = m_ptr + (HBFIRFilterTraits::hbOrder / 2) - 1; // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -839,8 +839,8 @@ protected: int b = HBFIRFilterTraits::hbMod[m_ptr + 2 - 2]; //-1 - 1 // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { diff --git a/sdrbase/dsp/inthalfbandfilterdb.h b/sdrbase/dsp/inthalfbandfilterdb.h index 7ea442cee..4a153edc8 100644 --- a/sdrbase/dsp/inthalfbandfilterdb.h +++ b/sdrbase/dsp/inthalfbandfilterdb.h @@ -26,7 +26,7 @@ #include "dsp/hbfiltertraits.h" #include "util/export.h" -template +template class SDRANGEL_API IntHalfbandFilterDB { public: IntHalfbandFilterDB(); @@ -619,7 +619,7 @@ public: } protected: - qint32 m_samplesDB[2*(HBFIRFilterTraits::hbOrder - 1)][2]; // double buffer technique + AccuType m_samplesDB[2*(HBFIRFilterTraits::hbOrder - 1)][2]; // double buffer technique int m_ptr; int m_size; int m_state; @@ -649,8 +649,8 @@ protected: { int a = m_ptr + m_size; // tip pointer int b = m_ptr + 1; // tail pointer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -671,8 +671,8 @@ protected: { int a = m_ptr + m_size; // tip pointer int b = m_ptr + 1; // tail pointer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -695,8 +695,8 @@ protected: qint16 b = m_ptr + (HBFIRFilterTraits::hbOrder / 2) - 1; // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -716,8 +716,8 @@ protected: qint16 b = m_ptr + (HBFIRFilterTraits::hbOrder / 2) - 1; // go through samples in buffer - qint32 iAcc = 0; - qint32 qAcc = 0; + AccuType iAcc = 0; + AccuType qAcc = 0; for (int i = 0; i < HBFIRFilterTraits::hbOrder / 4; i++) { @@ -732,8 +732,8 @@ protected: } }; -template -IntHalfbandFilterDB::IntHalfbandFilterDB() +template +IntHalfbandFilterDB::IntHalfbandFilterDB() { m_size = HBFIRFilterTraits::hbOrder - 1; diff --git a/sdrbase/dsp/samplesinkfifodecimator.h b/sdrbase/dsp/samplesinkfifodecimator.h index 1340b1f47..ed154ce3d 100644 --- a/sdrbase/dsp/samplesinkfifodecimator.h +++ b/sdrbase/dsp/samplesinkfifodecimator.h @@ -120,12 +120,12 @@ public: void decimate64_cen(SampleSinkFifoDoubleBuffered& fifo, const T* buf, qint32 len); private: - IntHalfbandFilter<32> m_decimator2; // 1st stages - IntHalfbandFilter<32> m_decimator4; // 2nd stages - IntHalfbandFilter<32> m_decimator8; // 3rd stages - IntHalfbandFilter<32> m_decimator16; // 4th stages - IntHalfbandFilter<32> m_decimator32; // 5th stages - IntHalfbandFilter<32> m_decimator64; // 6th stages + IntHalfbandFilter m_decimator2; // 1st stages + IntHalfbandFilter m_decimator4; // 2nd stages + IntHalfbandFilter m_decimator8; // 3rd stages + IntHalfbandFilter m_decimator16; // 4th stages + IntHalfbandFilter m_decimator32; // 5th stages + IntHalfbandFilter m_decimator64; // 6th stages }; template diff --git a/sdrbase/dsp/upchannelizer.cpp b/sdrbase/dsp/upchannelizer.cpp index d171c3d65..a59db9ad2 100644 --- a/sdrbase/dsp/upchannelizer.cpp +++ b/sdrbase/dsp/upchannelizer.cpp @@ -228,20 +228,20 @@ UpChannelizer::FilterStage::FilterStage(Mode mode) : } #else UpChannelizer::FilterStage::FilterStage(Mode mode) : - m_filter(new IntHalfbandFilterDB), + m_filter(new IntHalfbandFilterDB), m_workFunction(0) { switch(mode) { case ModeCenter: - m_workFunction = &IntHalfbandFilterDB::workInterpolateCenter; + m_workFunction = &IntHalfbandFilterDB::workInterpolateCenter; break; case ModeLowerHalf: - m_workFunction = &IntHalfbandFilterDB::workInterpolateLowerHalf; + m_workFunction = &IntHalfbandFilterDB::workInterpolateLowerHalf; break; case ModeUpperHalf: - m_workFunction = &IntHalfbandFilterDB::workInterpolateUpperHalf; + m_workFunction = &IntHalfbandFilterDB::workInterpolateUpperHalf; break; } } diff --git a/sdrbase/dsp/upchannelizer.h b/sdrbase/dsp/upchannelizer.h index 11cb2eb72..3b15f7a96 100644 --- a/sdrbase/dsp/upchannelizer.h +++ b/sdrbase/dsp/upchannelizer.h @@ -87,8 +87,8 @@ protected: typedef bool (IntHalfbandFilterEO1::*WorkFunction)(Sample* sIn, Sample *sOut); IntHalfbandFilterEO1* m_filter; #else - typedef bool (IntHalfbandFilterDB::*WorkFunction)(Sample* sIn, Sample *sOut); - IntHalfbandFilterDB* m_filter; + typedef bool (IntHalfbandFilterDB::*WorkFunction)(Sample* sIn, Sample *sOut); + IntHalfbandFilterDB* m_filter; #endif WorkFunction m_workFunction;