#include <gfx_image_ocio.h>
This class allows to deal with color profiles. Color profiles are used to map colors from a given color space (e.g. image color space) into a destination color space (e.g. calibrated monitor). @MAXON_ANNOTATION{nullimpl=true,dependencies=false} Private.
Public Member Functions | |
| MAXON_METHOD Bool | IsEqual (const OcioProcessorInterface *other) const |
| MAXON_METHOD Bool | SupportsReverse () const |
| MAXON_METHOD Result< void > | ConvertPixels (Float32 *pixelBuffer, Int inc, Int pixelCnt, Bool reverse) const |
| MAXON_METHOD Result< void > | ConvertPixels (UChar *pixelBuffer, Int inc, Int pixelCnt, Bool reverse) const |
| MAXON_METHOD Result< void > | ConvertPixels (const Float32 *srcPixelBuffer, Float32 *dstPixelBuffer, Int inc, Int pixelCnt, Bool reverse) const |
| MAXON_METHOD Color32 | TransformColor (const Color32 &color) const |
| MAXON_METHOD Result< ForwardRef< ColorProfileGpuHandlerRef > > | GetGpuHandler () const |
| Block< const CString > | GetColorSpaces () const |
Static Public Member Functions | |
| static MAXON_METHOD Result< OcioProcessor > | OpenLUTFromFile (const Url &fn, Bool tryToCreateReverse) |
Private Member Functions | |
| MAXON_INTERFACE_NONVIRTUAL (OcioProcessorInterface, MAXON_REFERENCE_ALWAYS_COPY_ON_WRITE, "net.maxon.image.interface.ocioprocessor") | |
|
private |
| MAXON_METHOD Bool IsEqual | ( | const OcioProcessorInterface * | other | ) | const |
|
static |
| MAXON_METHOD Bool SupportsReverse | ( | ) | const |
Returns true if the OcioProcessor supports the reverse operation. If this is given ConvertPixels can be called with reverse = true.
| MAXON_METHOD Result<void> ConvertPixels | ( | Float32 * | pixelBuffer, |
| Int | inc, | ||
| Int | pixelCnt, | ||
| Bool | reverse | ||
| ) | const |
ConvertPixels description.
| [in] | pixelBuffer | RGB values with Float32 buffer to convert. |
| [in] | inc | Increment in bytes from one pixel to the next. |
| [in] | pixelCnt | Number of pixels to convert. |
| MAXON_METHOD Result<void> ConvertPixels | ( | UChar * | pixelBuffer, |
| Int | inc, | ||
| Int | pixelCnt, | ||
| Bool | reverse | ||
| ) | const |
| MAXON_METHOD Result<void> ConvertPixels | ( | const Float32 * | srcPixelBuffer, |
| Float32 * | dstPixelBuffer, | ||
| Int | inc, | ||
| Int | pixelCnt, | ||
| Bool | reverse | ||
| ) | const |
| MAXON_METHOD Color32 TransformColor | ( | const Color32 & | color | ) | const |
Transforms a color according to the loaded LUT.
| [in] | color | The color to transform. |
| MAXON_METHOD Result<ForwardRef<ColorProfileGpuHandlerRef> > GetGpuHandler | ( | ) | const |
Gets the GPU handler for the processor.