#include <gfx_image_colorprofile.h>
Helper class to convert pixel data from one color profile to another.
Public Member Functions | |
MAXON_METHOD Result< void > | Convert (const ImageConstBuffer &src, const ImageMutableBuffer &dst, Int cnt) const |
MAXON_METHOD HashInt | GetHashCode () const |
MAXON_METHOD ForwardRef< ColorProfileGpuHandlerRef > | GetGpuHandler () const |
Static Public Member Functions | |
static MAXON_METHOD Result< ColorProfileConvert > | Init (const PixelFormat &srcPixelFormat, const ColorProfile &srcProfile, const PixelFormat &dstPixelFormat, const ColorProfile &dstProfile, COLORCONVERSIONINTENT intent, COLORCONVERSIONFLAGS flags) |
static MAXON_METHOD Result< PixelFormat > | GetNearestNativeFormat (const PixelFormat &format) |
static MAXON_METHOD Result< ColorProfileConvert > | InitGPU (const ColorProfile &srcProfile, const ColorProfile &dstProfile, COLORCONVERSIONFLAGS_GPU flags, COLORCONVERSION_OPTIMIZATION_GPU_FLAGS optimization) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (ColorProfileConvertInterface, MAXON_REFERENCE_CONST, "net.maxon.image.interface.colorprofileconvert") | |
|
private |
|
static |
Create a new helper class to convert from srcPixelFormat to dstPixelFormat.
[in] | srcPixelFormat | Source color pixel format. |
[in] | srcProfile | Source color profile. |
[in] | dstPixelFormat | Destination color profile. |
[in] | dstProfile | Destination color profile. |
[in] | intent | TODO: (Tilo) please describe. |
[in] | flags | TODO: (Tilo) please describe. |
MAXON_METHOD Result<void> Convert | ( | const ImageConstBuffer & | src, |
const ImageMutableBuffer & | dst, | ||
Int | cnt | ||
) | const |
Call to convert pixel data from one profile to another.
[in] | src | Pointer to the memory block with the source pixel data. The pixel data needs to be in the srcPixelFormat and srcProfile (see Init). |
[in] | dst | Pointer to the memory block with the dest pixel data. The pixel data will be written with dstPixelFormat and dstProfile (see Init). |
[in] | cnt | Number of source pixels to convert. |
MAXON_METHOD HashInt GetHashCode | ( | ) | const |
Gets the hash code of the conversion.
|
static |
Returns the closest compatible pixel format for the given format. If the pixel format is supported natively be the color conversion the given format is returned.
|
static |
Create a new helper class to convert from srcProfile to dstProfile on the GPU.
[in] | srcProfile | Source color profile. |
[in] | dstProfile | Destination color profile. |
[in] | flags | Conversion flags. |
[in] | optimization | Optimization. |
MAXON_METHOD ForwardRef<ColorProfileGpuHandlerRef> GetGpuHandler | ( | ) | const |
Gets the GPU handler for this color conversion.