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. 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. 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. 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. 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. 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. 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.

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. Works with both horizontal and vertical algorithms.

Meta