CPUblit.composing

Members

Functions

alphaBlend32bit
void alphaBlend32bit(uint* src, uint* dest, size_t length)

Implements a two plus one operand alpha-blending algorithm for 32bit bitmaps. Automatic alpha-mask generation follows this formula: src[B,G,R,A] --> mask [A,A,A,A]

alphaBlend32bit
void alphaBlend32bit(uint* src, uint* dest, size_t length, uint* mask)

Implements a three plus one operand alpha-blending algorithm for 32bit bitmaps. For masking, use Pixel32Bit.AlphaMask from CPUblit.colorspaces.

alphaBlend32bit
void alphaBlend32bit(uint* src, uint* dest, uint* dest1, size_t length)

Implements a three plus one operand alpha-blending algorithm for 32bit bitmaps. Automatic alpha-mask generation follows this formula: src[B,G,R,A] --> mask [A,A,A,A]

alphaBlend32bit
void alphaBlend32bit(uint* src, uint* dest, uint* dest1, size_t length, uint* mask)

Implements a four plus one operand alpha-blending algorithm for 32bit bitmaps. For masking, use Pixel32Bit.AlphaMask from CPUblit.colorspaces. Output is copied into a memory location specified by dest1.

blitter16bit
void blitter16bit(ushort* src, ushort* dest, size_t length)

Two plus one operand blitter for 8 bit values. Automatic mask-generation is used from the source's color index with the following formula: mask = src == 0x0000 ? 0xFFFF : 0x0000

blitter16bit
void blitter16bit(ushort* src, ushort* dest, size_t length, ushort* mask)

Three plus one operand blitter for 8 bit values. An external mask is used for this operation.

blitter16bit
void blitter16bit(ushort* src, ushort* dest, ushort* dest1, size_t length)

Three plus one operand blitter for 8 bit values. Automatic mask-generation is used from the source's color index with the following formula: mask = src == 0x0000 ? 0xFFFF : 0x0000 Result is copied into memory location specified by dest1.

blitter16bit
void blitter16bit(ushort* src, ushort* dest, ushort* dest1, size_t length, ushort* mask)

Four plus one operand blitter for 8 bit values. Uses external mask. Copies the result to the memory location specified by dest1.

blitter32bit
void blitter32bit(uint* src, uint* dest, size_t length)

Two plus one operand blitter for 32 bit values. Automatic mask-generation is used from the source's alpha channel with the following formula: mask = src.alpha == 0x00 ? 0xFFFFFFFF : 0x00000000

blitter32bit
void blitter32bit(uint* src, uint* dest, size_t length, uint* mask)

Two plus one operand blitter for 32 bit values. A separate mask is used for the operation.

blitter32bit
void blitter32bit(uint* src, uint* dest, uint* dest1, size_t length)

Three plus one operand blitter for 32 bit values. Automatic mask-generation is used from the source's alpha channel with the following formula: mask = src.alpha ? 0xFFFFFFFF : 0x00000000 The result is copied into the memory location specified by dest1

blitter32bit
void blitter32bit(uint* src, uint* dest, uint* dest1, size_t length, uint* mask)

Two plus one operand blitter for 32 bit values. Uses a separate mask. Copies the result into location specified by dest1.

blitter8bit
void blitter8bit(ubyte* src, ubyte* dest, size_t length)

Two plus one operand blitter for 8 bit values. Automatic mask-generation is used from the source's color index with the following formula: mask = src == 0x00 ? 0xFF : 0x00

blitter8bit
void blitter8bit(ubyte* src, ubyte* dest, size_t length, ubyte* mask)

Three plus one operand blitter for 8 bit values. Uses an external mask.

blitter8bit
void blitter8bit(ubyte* src, ubyte* dest, ubyte* dest1, size_t length)

Two plus one operand blitter for 8 bit values. Automatic mask-generation is used from the source's color index with the following formula: mask = src == 0x00 ? 0xFF : 0x00 Final values are copied into memory location specified by dest1.

blitter8bit
void blitter8bit(ubyte* src, ubyte* dest, ubyte* dest1, size_t length, ubyte* mask)

Four plus one operand blitter for 8 bit values. Uses an external mask. Final values are copied into memory location specified by dest1;

copy16bit
void copy16bit(ushort* src, ushort* dest, size_t length)

Copies a 16bit image onto another without blitter. No transparency is used.

copy16bit
void copy16bit(ushort* src, ushort* dest, size_t length, ushort* mask)

Copies a 16bit image onto another without blitter. No transparency is used. Mask is a placeholder for easy exchangeability with other functions.

copy16bit
void copy16bit(ushort* src, ushort* dest, ushort* dest1, size_t length)

Copies a 16bit image onto another without blitter. No transparency is used. Dest is placeholder.

copy16bit
void copy16bit(ushort* src, ushort* dest, ushort* dest1, size_t length, ushort* mask)

Copies a 16bit image onto another without blitter. No transparency is used. Dest and mask is placeholder.

copy32bit
void copy32bit(uint* src, uint* dest, size_t length)

Copies a 32bit image onto another without blitter. No transparency is used.

copy32bit
void copy32bit(uint* src, uint* dest, size_t length, uint* mask)

Copies a 32bit image onto another without blitter. No transparency is used. Mask is placeholder.

copy32bit
void copy32bit(uint* src, uint* dest, uint* dest1, size_t length)

Copies a 32bit image onto another without blitter. No transparency is used. Dest is placeholder.

copy32bit
void copy32bit(uint* src, uint* dest, uint* dest1, size_t length, uint* mask)

Copies a 32bit image onto another without blitter. No transparency is used. Dest and mask is placeholder.

copy8bit
void copy8bit(ubyte* src, ubyte* dest, size_t length)

Copies an 8bit image onto another without blitter. No transparency is used.

copy8bit
void copy8bit(ubyte* src, ubyte* dest, size_t length, ubyte* mask)

Copies an 8bit image onto another without blitter. No transparency is used. Mask is placeholder.

copy8bit
void copy8bit(ubyte* src, ubyte* dest, ubyte* dest1, size_t length)

Copies an 8bit image onto another without blitter. No transparency is used. Dest is placeholder.

copy8bit
void copy8bit(ubyte* src, ubyte* dest, ubyte* dest1, size_t length, ubyte* mask)

Copies an 8bit image onto another without blitter. No transparency is used. Dest and mask are placeholders.

xorBlitter
void xorBlitter(T* src, T* dest, T* dest1, size_t length)

3 + 1 operand XOR blitter.

xorBlitter
void xorBlitter(T* src, T* dest, size_t length)

2 + 1 operand XOR blitter.

Variables

BLT32BITTESTER_SSE2
uint[4] BLT32BITTESTER_SSE2;

CPUblit Low-level image composing functions

Meta