Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

clFIRInterpolator Class Reference

FIR interpolation filter class implementation. More...

#include <FIRInterpolator.hh>

Inheritance diagram for clFIRInterpolator:

Inheritance graph
[legend]
Collaboration diagram for clFIRInterpolator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clFIRInterpolator ()
 ~clFIRInterpolator ()
void Uninitialize ()
 Uninitialize interpolator.

void Put (const float *, long)
 Feed data into interpolator.

void Put (const double *, long)
bool Get (float *, long)
 Get data from interpolator.

bool Get (double *, long)

Private Attributes

clDSPAlloc IntBuf
clDSPOp DSP
clReBuffer OutBuf

Detailed Description

FIR interpolation filter class implementation.

Data is interpolated by factor 2, 4 or 8 and then filtered using FIR filter.

Definition at line 39 of file FIRInterpolator.hh.


Constructor & Destructor Documentation

clFIRInterpolator::clFIRInterpolator  ) 
 

Definition at line 34 of file FIRInterpolator.cc.

clFIRInterpolator::~clFIRInterpolator  ) 
 

Definition at line 39 of file FIRInterpolator.cc.

References Uninitialize().


Member Function Documentation

void clFIRInterpolator::Uninitialize  ) 
 

Uninitialize interpolator.

Reimplemented from clFIRMultiRate.

Definition at line 45 of file FIRInterpolator.cc.

References clAlloc::Free(), and clFIRMultiRate::Uninitialize().

Referenced by clRecInterpolator::Uninitialize(), and ~clFIRInterpolator().

void clFIRInterpolator::Put const float *  ,
long 
 

Feed data into interpolator.

Parameters:
SrcData Source data
SrcCount Source data count

Definition at line 52 of file FIRInterpolator.cc.

References clDSPOp::FIRFilter(), clDSPOp::Interpolate(), clDSPOp::Mul(), clReBuffer::Put(), and clAlloc::Size().

Referenced by clRecInterpolator::Put().

void clFIRInterpolator::Put const double *  ,
long 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 66 of file FIRInterpolator.cc.

References clDSPOp::FIRFilter(), clDSPOp::Interpolate(), clDSPOp::Mul(), clReBuffer::Put(), and clAlloc::Size().

bool clFIRInterpolator::Get float *  ,
long 
 

Get data from interpolator.

Parameters:
DestData Destination buffer
DestCount Number of samples to fetch
Returns:
Success

Definition at line 80 of file FIRInterpolator.cc.

References clReBuffer::Get().

Referenced by clRecInterpolator::Get(), and clRecInterpolator::Put().

bool clFIRInterpolator::Get double *  ,
long 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 86 of file FIRInterpolator.cc.

References clReBuffer::Get().


Member Data Documentation

clDSPAlloc clFIRInterpolator::IntBuf [private]
 

Definition at line 41 of file FIRInterpolator.hh.

clDSPOp clFIRInterpolator::DSP [private]
 

Definition at line 42 of file FIRInterpolator.hh.

clReBuffer clFIRInterpolator::OutBuf [private]
 

Definition at line 43 of file FIRInterpolator.hh.


The documentation for this class was generated from the following files:
Generated on Tue Mar 2 19:47:10 2004 for libDSP by doxygen 1.3.6