CPUblit.transform

Undocumented in source.

Members

Functions

_horizontalScaleNearest
void _horizontalScaleNearest(T* src, T* dest, sizediff_t length, int trfmParam)

Horizontal scaling using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with most datatypes. Use a separate one for 4 bit. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections.

_horizontalScaleNearest
void _horizontalScaleNearest(ArrayType src, ArrayType dest, sizediff_t length, sizediff_t offset, int trfmParam)

Horizontal scaling using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with 16, 8, 4, and 2 bit datatypes. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections. ArrayType should be bitleveld's NibbleArray or QuadArray, but also works with regular D arrays.

_horizontalScaleNearest4Bit
void _horizontalScaleNearest4Bit(ubyte* src, ubyte* dest, sizediff_t length, sizediff_t offset, int trfmParam)

Horizontal scaling using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with 4 bit datatypes. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections.

_horizontalScaleNearest4BitAndCLU
void _horizontalScaleNearest4BitAndCLU(ubyte* src, U* dest, U* palette, sizediff_t length, sizediff_t offset, int trfmParam)

Horizontal scaling and color lookup using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with 4 bit datatypes. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections.

_horizontalScaleNearestAndCLU
void _horizontalScaleNearestAndCLU(T* src, U* dest, U* palette, sizediff_t length, int trfmParam)

Horizontal scaling and color lookup using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with most datatypes. Use a separate one for 4 bit. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections.

_horizontalScaleNearestAndCLU
void _horizontalScaleNearestAndCLU(ArrayType src, PaletteType* dest, PaletteType* palette, sizediff_t length, sizediff_t offset, int trfmParam)

Horizontal scaling and color lookup using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with 16, 8, 4, and 2 bit datatypes. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections. ArrayType should be bitleveld's NibbleArray or QuadArray, but also works with regular D arrays.

horizontalScaleNearest
void horizontalScaleNearest(ArrayType src, ArrayType dest, sizediff_t length, int trfmParam, sizediff_t offset)

Horizontal scaling using nearest integer algorithm for per-line operations. Intended to use with arrays that might contain elements less than 8 bit in length.

horizontalScaleNearestAndCLU
void horizontalScaleNearestAndCLU(ArrayType src, U* dest, U* palette, sizediff_t length, int trfmParam, sizediff_t offset)

Horizontal scaling using nearest integer algorithm for per-line operations. Uses arrays for source (compatible with data types smaller than 8 bit)

scaleNearestLength
size_t scaleNearestLength(size_t origLen, int trfmParam)

Returns the needed length of dest for the given trfmParam if the "nearest integer algorithm" used. (Old, might get deprecated later on) Works with both horizontal and vertical algorithms.

Meta