![]() |
Murl Engine API
Version 2024.1
|
Pixel format conversion class. More...
#include <murl_util_pixel_converter.h>
Pixel format conversion class.
Public Types | |
using | Method = void(*)(UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 numberOfPixels) |
Definition of the converter function pointer. More... | |
Static Public Member Functions | |
static Bool | ColorToPixel (UInt8Array &pixel, IEnums::PixelFormat format, const Color &color) |
Convert a color to a given pixelformat. More... | |
static Method | GetConverter (IEnums::PixelFormat destFormat, IEnums::PixelFormat srcFormat) |
Get the converter function pointer for specified pixel formats. More... | |
static Method | GetCopy (IEnums::PixelFormat pixelFormat) |
Get the converter function pointer for a specified pixel format to copy. More... | |
using Murl::Util::PixelConverter::Method = void(*)(UInt8* dstPtr, const UInt8* srcPtr, UInt32 numberOfPixels) |
Definition of the converter function pointer.
Use IEnums::GetPixelFormatByteSize() to calculate the size of the source and destination memory.
dstPtr | Pointer to the destination memory. |
srcPtr | Pointer to the source memory. |
numberOfPixels | The number of pixels to convert. |
|
static |
Convert a color to a given pixelformat.
pixel | The destination pixel data. |
format | The pixel format to convert to. |
color | The color to convert. |
|
static |
Get the converter function pointer for specified pixel formats.
destFormat | The destination pixel format. |
srcFormat | The source pixel format. |
|
static |
Get the converter function pointer for a specified pixel format to copy.
pixelFormat | The pixel format. |