Lines Matching refs:nEntries
213 cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsInt32Number nEntries, in AllocateToneCurveStruct() argument
221 if (nEntries > 65530 || nEntries < 0) { in AllocateToneCurveStruct()
226 if (nEntries <= 0 && nSegments <= 0) { in AllocateToneCurveStruct()
252 if (nEntries <= 0) { in AllocateToneCurveStruct()
256 p ->Table16 = (cmsUInt16Number*) _cmsCalloc(ContextID, nEntries, sizeof(cmsUInt16Number)); in AllocateToneCurveStruct()
260 p -> nEntries = nEntries; in AllocateToneCurveStruct()
263 if (Values != NULL && (nEntries > 0)) { in AllocateToneCurveStruct()
265 for (i=0; i < nEntries; i++) in AllocateToneCurveStruct()
298 …p ->InterpParams = _cmsComputeInterpParams(ContextID, p ->nEntries, 1, 1, p->Table16, CMS_LERP_FLA… in AllocateToneCurveStruct()
608 return t ->nEntries; in cmsGetToneCurveEstimatedTableEntries()
620 cmsToneCurve* CMSEXPORT cmsBuildTabulatedToneCurve16(cmsContext ContextID, cmsInt32Number nEntries,… in cmsBuildTabulatedToneCurve16() argument
622 return AllocateToneCurveStruct(ContextID, nEntries, 0, NULL, Values); in cmsBuildTabulatedToneCurve16()
669 …T cmsBuildTabulatedToneCurveFloat(cmsContext ContextID, cmsUInt32Number nEntries, const cmsFloat32… in cmsBuildTabulatedToneCurveFloat() argument
690 Seg[1].nGridPoints = nEntries; in cmsBuildTabulatedToneCurveFloat()
701 Seg[2].Params[3] = values[nEntries-1]; in cmsBuildTabulatedToneCurveFloat()
827 …return AllocateToneCurveStruct(In ->InterpParams ->ContextID, In ->nEntries, In ->nSegments, In -… in cmsDupToneCurve()
967 y1 = (cmsFloat64Number) (j * 65535.0) / (InCurve ->nEntries - 1); in cmsReverseToneCurveEx()
968 y2 = (cmsFloat64Number) ((j+1) * 65535.0 ) / (InCurve ->nEntries - 1); in cmsReverseToneCurveEx()
1075 nItems = Tab -> nEntries; in cmsSmoothToneCurve()
1134 for (i=0; i < Curve ->nEntries; i++) { in cmsIsToneCurveLinear()
1136 diff = abs((int) Curve->Table16[i] - (int) _cmsQuantizeVal(i, Curve ->nEntries)); in cmsIsToneCurveLinear()
1154 n = t ->nEntries; in cmsIsToneCurveMonotonic()
1195 return t ->Table16[0] > t ->Table16[t ->nEntries-1]; in cmsIsToneCurveDescending()