48MLLUT_EXPORT extern const char *LUTVisualTypeName[LUT_NUM_VISUAL_TYPE_LAYOUTS];
 
   69    return static_cast<T>(
floor(value+0.5));
 
   71    return static_cast<T>(value);
 
 
#define MLLUT_EXPORT
System specific macro definitions.
 
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
 
MLLUT_EXPORT double LUTConvertRGBtoL(double r, double g, double b)
Convert RGB to luminance.
 
@ LUT_1D
1D-LUT, consists of a single row
 
@ LUT_3D
3D-LUT, consists of multiple layers
 
@ LUT_2D
2D-LUT, consists of multiple rows in a single layer
 
MLLUT_EXPORT int LUTNumberOfChannels(LUTVisualType visualType)
Get number of channels for given LUTVisualType, or 0 if unknown.
 
LUTVisualType
LUT visual type constants to identify the visual interpretation of the individual LUT channels.
 
@ LUT_ABGR
Alpha, Blue, Green, Red.
 
@ LUT_BGR
Blue, Green, Red.
 
@ LUT_RGBA
Red, Green, Blue, Alpha.
 
@ LUT_NUM_VISUAL_TYPES
Number of visual types, ignoring layout variants.
 
@ LUT_NUM_VISUAL_TYPE_LAYOUTS
Number of visual types, including layout variants.
 
@ LUT_LA
Luminance and Alpha.
 
@ LUT_RGB
Red, Green, Blue.
 
MLLUT_EXPORT int LUTAlphaChannelIndex(LUTVisualType visualType)
Get index of alpha channel, or -1 if none.
 
T LUTCastFromDouble(double value)
Helper template function to cast from double to type T, performing a proper round operation in case o...
 
MLLUT_EXPORT LUTVisualType LUTReducedVisualType(LUTVisualType visualType)
Get reduced visual type, i.e. ignoring layout variants.
 
TypeTraits for scalar ML datatypes.