diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/lcms2.h | 26 | ||||
-rw-r--r-- | include/lcms2_plugin.h | 2 |
2 files changed, 22 insertions, 6 deletions
diff --git a/include/lcms2.h b/include/lcms2.h index 75a3857..2d0a32f 100644 --- a/include/lcms2.h +++ b/include/lcms2.h @@ -1131,11 +1131,27 @@ CMSAPI cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, c CMSAPI cmsStage* CMSEXPORT cmsStageAllocToneCurves(cmsContext ContextID, cmsUInt32Number nChannels, cmsToneCurve* const Curves[]); CMSAPI cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext ContextID, cmsUInt32Number Rows, cmsUInt32Number Cols, const cmsFloat64Number* Matrix, const cmsFloat64Number* Offset); -CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bit(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table); -CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloat(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table); - -CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bitGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table); -CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloatGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table); +#define cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION 0x0100 + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bit(cmsContext ContextID, cmsUInt32Number nGridPoints, + cmsUInt32Number inputChan, cmsUInt32Number outputChan, + const cmsUInt16Number* Table, + cmsUInt32Number dwFlags); + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloat(cmsContext ContextID, cmsUInt32Number nGridPoints, + cmsUInt32Number inputChan, cmsUInt32Number outputChan, + const cmsFloat32Number* Table, + cmsUInt32Number dwFlags); + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bitGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], + cmsUInt32Number inputChan, cmsUInt32Number outputChan, + const cmsUInt16Number* Table, + cmsUInt32Number dwFlags); + +CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloatGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], + cmsUInt32Number inputChan, cmsUInt32Number outputChan, + const cmsFloat32Number* Table, + cmsUInt32Number dwFlags); CMSAPI cmsStage* CMSEXPORT cmsStageDup(cmsStage* mpe); CMSAPI void CMSEXPORT cmsStageFree(cmsStage* mpe); diff --git a/include/lcms2_plugin.h b/include/lcms2_plugin.h index fd90350..dae596f 100644 --- a/include/lcms2_plugin.h +++ b/include/lcms2_plugin.h @@ -260,7 +260,7 @@ typedef union { // Flags for interpolator selection #define CMS_LERP_FLAGS_16BITS 0x0000 // The default #define CMS_LERP_FLAGS_FLOAT 0x0001 // Requires different implementation -#define CMS_LERP_FLAGS_TRILINEAR 0x0100 // Hint only +#define CMS_LERP_FLAGS_TRILINEAR cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION // Hint only #define MAX_INPUT_DIMENSIONS 8 |