AVIR
High-quality pro image resizing library
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | Public Attributes | List of all members
avir::CFltBuffer Class Reference

#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 intaCapacity, const int aAlignment=0)
 
 CBuffer (const CBuffer &Source)
 
void alloc (const intaCapacity, const int aAlignment=0)
 
void forceCapacity (const intNewCapacity)
 
void free ()
 
int getCapacity () const
 
void increaseCapacity (const intNewCapacity, const bool DoDataCopy=true)
 
 operator double * () const
 
CBufferoperator= (const CBuffer &Source)
 
void truncateCapacity (const intNewCapacity)
 
void updateCapacity (const intReqCapacity)
 

Public Attributes

double Alpha
 
double DCGain
 
double Freq
 
double Len2
 

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

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.

Member Data Documentation

double avir::CFltBuffer::Alpha

Peaked Cosine window function Alpha parameter.

double avir::CFltBuffer::DCGain

DC gain applied to the filter.

double avir::CFltBuffer::Freq

Low-pass filter's corner frequency.

double avir::CFltBuffer::Len2

Half-length (non-truncated) of low-pass filters, in samples (taps).