AVIR
High-quality pro image resizing library
 
Loading...
Searching...
No Matches
avir::CImageResizerFilterStep< fptype, fptypeatom >::CRPosBufArray Class Reference

Resizing positions buffer array class. More...

#include <avir.h>

Inheritance diagram for avir::CImageResizerFilterStep< fptype, fptypeatom >::CRPosBufArray:
avir::CStructArray< CRPosBuf >

Public Member Functions

CRPosBufgetRPosBuf (const double k, const double o, const int FracCount)
 Returns the resizing positions buffer with the required stepping.
 
- Public Member Functions inherited from avir::CStructArray< CRPosBuf >
 CStructArray (const CStructArray &Source)
 Copies the specified array element-by-element.
 
CRPosBuf & add ()
 Creates a new object of type T with the default constructor, and adds this object to the array.
 
void clear ()
 Erases all items of this array.
 
int getItemCount () const
 Returns the number of allocated items.
 
CStructArrayoperator= (const CStructArray &Source)
 Copies the specified array element-by-element.
 
CRPosBuf & operator[] (const int Index)
 Returns writable reference to the specified element.
 
const CRPosBuf & operator[] (const int Index) const
 Returns const reference to the specified element.
 
void setItemCount (const int NewCount)
 Changes the number of allocated items.
 

Detailed Description

template<typename fptype, typename fptypeatom>
class avir::CImageResizerFilterStep< fptype, fptypeatom >::CRPosBufArray

Resizing positions buffer array class.

This class combines structure array of the CRPosBuf class objects with the function that locates or creates buffer with the required resizing stepping.

Member Function Documentation

◆ getRPosBuf()

template<typename fptype, typename fptypeatom>
CRPosBuf & avir::CImageResizerFilterStep< fptype, fptypeatom >::CRPosBufArray::getRPosBuf ( const double k,
const double o,
const int FracCount )

Returns the resizing positions buffer with the required stepping.

If no such buffer exists, it is created.

Parameters
kResizing step.
oResizing offset.
FracCountThe number of fractional delay filters in a filter bank used together with this buffer.
Returns
Reference to the CRPosBuf object.