#include <lancir.h>
Public Member Functions | |
void | reset () |
void | update (const double k, const double o0, const int ElCount, const int SrcLen, const int DstLen, CResizeFilters &rf) |
Public Attributes | |
int | padl |
int | padr |
CResizePos * | pos |
float * | sp |
Protected Attributes | |
int | poslen |
int | PrevDstLen |
int | PrevElCount |
double | Prevk |
double | Prevo |
int | PrevSrcLen |
int | splen |
Class contains resizing positioning and a temporary scanline buffer, prepares source scanline positions for resize filtering.
void avir::CLancIR::CResizeScanline::reset | ( | ) |
Function "resets" *this object so that the next update() call fully updates the position buffer. Reset is necessary if the filter object was updated.
void avir::CLancIR::CResizeScanline::update | ( | const double | k, |
const double | o0, | ||
const int | ElCount, | ||
const int | SrcLen, | ||
const int | DstLen, | ||
CResizeFilters & | rf | ||
) |
Function updates resizing positions, updates "padl", "padr" and "pos" buffer.
k | Resizing step. |
o0 | Initial source image offset. |
SrcLen | Source image scanline length, used to create a scanline buffer without length pre-calculation. |
DstLen | Destination image scanline length. |
rf | Resizing filters object. |
int avir::CLancIR::CResizeScanline::padl |
Left-padding (in pixels) required for source scanline. Available after the update() function call.
int avir::CLancIR::CResizeScanline::padr |
Right-padding (in pixels) required for source scanline. Available after the update() function call.
CResizePos* avir::CLancIR::CResizeScanline::pos |
Source scanline pointers (point to "sp") and filters for each destination pixel position. Available after the update() function call.
|
protected |
Allocated "pos" buffer length.
|
protected |
Previous DstLen.
|
protected |
Previous pixel element count.
|
protected |
Previous "k".
|
protected |
Previous "o".
|
protected |
Previous SrcLen.
float* avir::CLancIR::CResizeScanline::sp |
Source scanline buffer, with "padl" and "padr" padding.
|
protected |
Allocated "sp" buffer length.