Murl::Util::PixelConverter Class Reference
Pixel format conversion class. More...
#include "murl_util_pixel_converter.h"
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... | |
Detailed Description
Pixel format conversion class.
Member Typedef Documentation
◆ Method
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.
- Parameters
-
dstPtr Pointer to the destination memory. srcPtr Pointer to the source memory. numberOfPixels The number of pixels to convert.
Member Function Documentation
◆ ColorToPixel()
|
static |
Convert a color to a given pixelformat.
- Parameters
-
pixel The destination pixel data. format The pixel format to convert to. color The color to convert.
- Returns
- true if successful.
◆ GetConverter()
|
static |
Get the converter function pointer for specified pixel formats.
- Parameters
-
destFormat The destination pixel format. srcFormat The source pixel format.
- Returns
- The converter function pointer or null if the conversion is not available.
◆ GetCopy()
|
static |
Get the converter function pointer for a specified pixel format to copy.
- Parameters
-
pixelFormat The pixel format.
- Returns
- The converter function pointer or null if the conversion is not available.
The documentation for this class was generated from the following file:
- murl_util_pixel_converter.h