Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmstypes.c')
-rw-r--r--src/cmstypes.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/cmstypes.c b/src/cmstypes.c
index f619458..6bfa32c 100644
--- a/src/cmstypes.c
+++ b/src/cmstypes.c
@@ -1718,7 +1718,9 @@ void *Type_LUT8_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cms
Temp = NULL;
- mpeclut = cmsStageAllocCLut16bit(self ->ContextID, CLUTpoints, InputChannels, OutputChannels, T);
+ mpeclut = cmsStageAllocCLut16bit(self ->ContextID, CLUTpoints,
+ InputChannels, OutputChannels, T, cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION);
+
if (mpeclut == NULL) goto Error;
cmsPipelineInsertStage(NewLUT, cmsAT_END, mpeclut);
_cmsFree(self ->ContextID, T);
@@ -2003,7 +2005,9 @@ void *Type_LUT16_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cm
if (!_cmsReadUInt16Array(io, nTabSize, T)) goto Error;
- mpeclut = cmsStageAllocCLut16bit(self ->ContextID, CLUTpoints, InputChannels, OutputChannels, T);
+ mpeclut = cmsStageAllocCLut16bit(self ->ContextID, CLUTpoints,
+ InputChannels, OutputChannels, T, cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION);
+
if (mpeclut == NULL) goto Error;
cmsPipelineInsertStage(NewLUT, cmsAT_END, mpeclut);
_cmsFree(self ->ContextID, T);
@@ -2226,7 +2230,8 @@ cmsStage* ReadCLUT(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUI
if (!_cmsReadUInt8Number(io, NULL)) return NULL;
if (!_cmsReadUInt8Number(io, NULL)) return NULL;
- CLUT = cmsStageAllocCLut16bitGranular(self ->ContextID, GridPoints, InputChannels, OutputChannels, NULL);
+ CLUT = cmsStageAllocCLut16bitGranular(self ->ContextID, GridPoints,
+ InputChannels, OutputChannels, NULL, cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION);
Data = (_cmsStageCLutData*) CLUT ->Data;
// Precision can be 1 or 2 bytes
@@ -4111,7 +4116,8 @@ void *Type_MPEclut_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io,
for (i=0; i < nMaxGrids; i++) GridPoints[i] = Dimensions8[i];
// Allocate the true CLUT
- mpe = cmsStageAllocCLutFloatGranular(self ->ContextID, GridPoints, InputChans, OutputChans, NULL);
+ mpe = cmsStageAllocCLutFloatGranular(self ->ContextID, GridPoints, InputChans,
+ OutputChans, NULL, cmsCLUT_FLAGS_TRILINEAR_INTERPOLATION);
if (mpe == NULL) goto Error;
// Read the data