Lines Matching defs:c16
1190 Curves16Data* c16;
1192 c16 = _cmsMallocZero(ContextID, sizeof(Curves16Data));
1193 if (c16 == NULL) return NULL;
1195 c16 ->nCurves = nCurves;
1196 c16 ->nElements = nElements;
1198 c16 ->Curves = _cmsCalloc(ContextID, nCurves, sizeof(cmsUInt16Number*));
1199 if (c16 ->Curves == NULL) return NULL;
1203 c16->Curves[i] = _cmsCalloc(ContextID, nElements, sizeof(cmsUInt16Number));
1204 if (c16->Curves[i] == NULL) {
1206 _cmsFree(ContextID, c16->Curves[j]);
1208 _cmsFree(ContextID, c16->Curves);
1209 _cmsFree(ContextID, c16);
1218 c16 ->Curves[i][j] = cmsEvalToneCurve16(G[i], FROM_8_TO_16(j));
1224 c16 ->Curves[i][j] = cmsEvalToneCurve16(G[i], (cmsUInt16Number) j);
1229 return c16;
1345 Curves16Data* c16 = CurvesAlloc(Dest ->ContextID, Data ->nCurves, 256, Data ->TheCurves);
1348 _cmsPipelineSetOptimizationParameters(Dest, FastEvaluateCurves8, c16, CurvesFree, CurvesDup);
1354 Curves16Data* c16 = CurvesAlloc(Dest ->ContextID, Data ->nCurves, 65536, Data ->TheCurves);
1357 _cmsPipelineSetOptimizationParameters(Dest, FastEvaluateCurves16, c16, CurvesFree, CurvesDup);