Mercurial > hg > qm-dsp
comparison dsp/rateconversion/Decimator.h @ 247:a98a8fe967c0
* Add decimation filter for 8x decimation
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 10 Jan 2008 15:14:11 +0000 |
parents | 49844bc8a895 |
children | 5bec06ecc88a |
comparison
equal
deleted
inserted
replaced
246:0105e9b916a9 | 247:a98a8fe967c0 |
---|---|
11 #define DECIMATOR_H | 11 #define DECIMATOR_H |
12 | 12 |
13 class Decimator | 13 class Decimator |
14 { | 14 { |
15 public: | 15 public: |
16 void process( double* src, double* dst ); | 16 void process( const double* src, double* dst ); |
17 void doAntiAlias( double* src, double* dst, unsigned int length ); | 17 void doAntiAlias( const double* src, double* dst, unsigned int length ); |
18 | 18 |
19 Decimator( unsigned int inLength, unsigned int decFactor ); | 19 Decimator( unsigned int inLength, unsigned int decFactor ); |
20 virtual ~Decimator(); | 20 virtual ~Decimator(); |
21 | |
22 int getFactor() const { return m_decFactor; } | |
23 static int getHighestSupportedFactor() { return 8; } | |
21 | 24 |
22 private: | 25 private: |
23 void resetFilter(); | 26 void resetFilter(); |
24 void deInitialise(); | 27 void deInitialise(); |
25 void initialise( unsigned int inLength, unsigned int decFactor ); | 28 void initialise( unsigned int inLength, unsigned int decFactor ); |