The OpenD Programming Language

gamut.scanline

Scanline conversion public API. This is used both internally and externally, because converting a whole row of pixels at once is a rather common operations.

Members

Aliases

scanlineConversionFunction_t
alias scanlineConversionFunction_t = void function(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

All scanlines conversion functions follow this signature: inScan pointer to first pixel of input scanline outScan pointer to first pixel of output scanline

scanline_convert_bgr8_to_rgb8
alias scanline_convert_bgr8_to_rgb8 = scanline_convert_rgb8_to_bgr8

Convert a row of pixel from RGB 8-bit (0 to 255) to BGR 8-bit (0 to 255).

scanline_convert_bgra8_to_rgba8
alias scanline_convert_bgra8_to_rgba8 = scanline_convert_rgba8_to_bgra8

Convert a row of pixel from RGBA 8-bit (0 to 255) to BGRA 8-bit (0 to 255).

Functions

scanline_convert_rgb8_to_bgr8
void scanline_convert_rgb8_to_bgr8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGB 8-bit (0 to 255) to BGR 8-bit (0 to 255).

scanline_convert_rgba8_to_bgra8
void scanline_convert_rgba8_to_bgra8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 8-bit (0 to 255) to BGRA 8-bit (0 to 255).

scanline_convert_rgba8_to_l8
void scanline_convert_rgba8_to_l8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 8-bit (0 to 255) to L 8-bit (0 to 255).

scanline_convert_rgba8_to_la8
void scanline_convert_rgba8_to_la8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 8-bit (0 to 255) to LA 8-bit (0 to 255).

scanline_convert_rgba8_to_rgb8
void scanline_convert_rgba8_to_rgb8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 8-bit (0 to 255) to RGB 8-bit (0 to 255).

scanline_convert_rgba8_to_rgba8
void scanline_convert_rgba8_to_rgba8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 8-bit (0 to 255) to RGBA 8-bit (0 to 255).

scanline_convert_rgbaf32_to_l16
void scanline_convert_rgbaf32_to_l16(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1.0) float to L 16-bit (0 to 65535).

scanline_convert_rgbaf32_to_l8
void scanline_convert_rgbaf32_to_l8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1.0) float to L 8-bit (0 to 255).

scanline_convert_rgbaf32_to_la16
void scanline_convert_rgbaf32_to_la16(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1.0) to LA 16-bit (0 to 65535).

scanline_convert_rgbaf32_to_la8
void scanline_convert_rgbaf32_to_la8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1.0) to LA 16-bit (0 to 65535).

scanline_convert_rgbaf32_to_laf32
void scanline_convert_rgbaf32_to_laf32(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to LA 32-bit float (0 to 1).

scanline_convert_rgbaf32_to_lf32
void scanline_convert_rgbaf32_to_lf32(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1.0) float to L 32-bit float (0 to 1.0).

scanline_convert_rgbaf32_to_rgb16
void scanline_convert_rgbaf32_to_rgb16(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGB 16-bit (0 to 65535).

scanline_convert_rgbaf32_to_rgb8
void scanline_convert_rgbaf32_to_rgb8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGB 8-bit (0 to 255).

scanline_convert_rgbaf32_to_rgba16
void scanline_convert_rgbaf32_to_rgba16(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGBA 16-bit (0 to 65535).

scanline_convert_rgbaf32_to_rgba8
void scanline_convert_rgbaf32_to_rgba8(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGBA 8-bit (0 to 255).

scanline_convert_rgbaf32_to_rgbaf32
void scanline_convert_rgbaf32_to_rgbaf32(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGBA 32-bit float.

scanline_convert_rgbaf32_to_rgbf32
void scanline_convert_rgbaf32_to_rgbf32(const(ubyte)* inScan, ubyte* outScan, int width, void* userData)

Convert a row of pixel from RGBA 32-bit float (0 to 1) to RGB 16-bit (0 to 65535).

Meta