AVIR
High-quality pro image resizing library
 
Loading...
Searching...
No Matches
avir::CFltBuffer Class Reference

Buffer class for parametrized low-pass filter. More...

#include <avir.h>

Inheritance diagram for avir::CFltBuffer:
avir::CBuffer< double >

Public Member Functions

bool operator== (const CFltBuffer &b2) const
 
- Public Member Functions inherited from avir::CBuffer< double >
 CBuffer (const CBuffer &Source)
 
 CBuffer (const int aCapacity, const int aAlignment=0)
 
void alloc (const int aCapacity, const int aAlignment=0)
 
void forceCapacity (const int NewCapacity)
 
void free ()
 
int getCapacity () const
 
void increaseCapacity (const int NewCapacity, const bool DoDataCopy=true)
 
 operator double * () const
 
CBufferoperator= (const CBuffer &Source)
 
void truncateCapacity (const int NewCapacity)
 
void updateCapacity (const int ReqCapacity)
 

Public Attributes

double Alpha
 Peaked Cosine window function Alpha parameter.
 
double DCGain
 DC gain applied to the filter.
 
double Freq
 Low-pass filter's corner frequency.
 
double Len2
 Half-length (non-truncated) of low-pass filters, in samples (taps).
 

Detailed Description

Buffer class for parametrized low-pass filter.

This class extends the CBuffer< double > class by adding several variables that define a symmetric-odd FIR low-pass filter windowed by Peaked Cosine window function. This class can be used to compare filters without comparing their buffer contents.

Member Function Documentation

◆ operator==()

bool avir::CFltBuffer::operator== ( const CFltBuffer & b2) const
Parameters
b2Filter buffer to compare *this object to.
Returns
Operator returns "true" if both filters have same parameters.