AVIR
High-quality pro image resizing library
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
avir::CImageResizerDithererDefDIL< fptype, fptypesimd > Class Template Reference

#include <avir_dil.h>

Public Member Functions

void dither (fptype *const ResScanline) const
 
void init (const int aLen, const CImageResizerVars &aVars, const double aTrMul, const double aPkOut)
 

Static Public Member Functions

static bool isRecursive ()
 

Protected Attributes

int Len
 
int LenE
 
double PkOut0
 
double TrMul0
 
const CImageResizerVarsVars
 

Detailed Description

template<class fptype, class fptypesimd>
class avir::CImageResizerDithererDefDIL< fptype, fptypesimd >

Image resizer's default de-interleaved dithering class.

This class defines an object that performs rounding, clipping and dithering operations over horizontal scanline pixels before scanline is stored in the output buffer.

This ditherer implementation uses de-interleaved SIMD algorithm.

Template Parameters
fptypeFloating point type to use for storing pixel data. SIMD types cannot be used.
fptypesimdThe SIMD type used to store a pack of "fptype" values.

Member Function Documentation

template<class fptype , class fptypesimd >
void avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::dither ( fptype *const  ResScanline) const

Function performs rounding and clipping operations.

Parameters
ResScanlineThe buffer containing the final scanline.
template<class fptype , class fptypesimd >
void avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::init ( const int  aLen,
const CImageResizerVars aVars,
const double  aTrMul,
const double  aPkOut 
)

Function initializes the ditherer object.

Parameters
aLenScanline length in pixels to process.
aVarsImage resizing-related variables.
aTrMulBit-depth truncation multiplier. 1 - no additional truncation.
aPkOutPeak output value allowed.
template<class fptype , class fptypesimd >
static bool avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::isRecursive ( )
static
Returns
"True" if dithering is recursive relative to scanlines meaning multi-threaded execution is not supported by this dithering method.

Member Data Documentation

template<class fptype , class fptypesimd >
int avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::Len
protected

Scanline's length in pixels.

template<class fptype , class fptypesimd >
int avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::LenE
protected

= LenE * ElCount.

template<class fptype , class fptypesimd >
double avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::PkOut0
protected

Peak output value allowed.

template<class fptype , class fptypesimd >
double avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::TrMul0
protected

Bit-depth truncation multiplier.

template<class fptype , class fptypesimd >
const CImageResizerVars* avir::CImageResizerDithererDefDIL< fptype, fptypesimd >::Vars
protected

Image resizing-related variables.