mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-05 08:21:16 -05:00
60 lines
3.6 KiB
C++
60 lines
3.6 KiB
C++
///////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
|
|
// //
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
// it under the terms of the GNU General Public License as published by //
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
// //
|
|
// This program is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
// GNU General Public License V3 for more details. //
|
|
// //
|
|
// You should have received a copy of the GNU General Public License //
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef SDRBASE_DSP_DECIMATORSFF_H_
|
|
#define SDRBASE_DSP_DECIMATORSFF_H_
|
|
|
|
#include "dsp/inthalfbandfiltereof.h"
|
|
#include "export.h"
|
|
|
|
#define DECIMATORSFF_HB_FILTER_ORDER 64
|
|
|
|
/** Decimators with float input and float output */
|
|
class SDRBASE_API DecimatorsFF
|
|
{
|
|
public:
|
|
void decimate1(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate2_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate2_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate2_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate4_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate4_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate4_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate8_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate8_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate8_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate16_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate16_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate16_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate32_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate32_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate32_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate64_inf(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate64_sup(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
void decimate64_cen(FSampleVector::iterator* it, const float* buf, qint32 nbIAndQ);
|
|
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator2; // 1st stages
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator4; // 2nd stages
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator8; // 3rd stages
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator16; // 4th stages
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator32; // 5th stages
|
|
IntHalfbandFilterEOF<DECIMATORSFF_HB_FILTER_ORDER> m_decimator64; // 6th stages
|
|
};
|
|
|
|
|
|
|
|
#endif /* SDRBASE_DSP_DECIMATORSFF_H_ */
|