Lines Matching refs:nSegments
1144 if (Curve ->nSegments == 1 && Curve ->Segments[0].Type == 1) {
1196 if (Curve ->nSegments != 1) return cmsSigCurveType; // Only 1-segment curves can be saved as parametric
1247 if (Curve ->nSegments > 1 || typen < 1) {
2592 if ((Curves[i] ->nSegments == 0)||
2593 ((Curves[i]->nSegments == 2) && (Curves[i] ->Segments[1].Type == 0)) )
3927 cmsUInt16Number nSegments;
3939 if (!_cmsReadUInt16Number(io, &nSegments)) return NULL;
3942 if (nSegments < 1) return NULL;
3943 Segments = (cmsCurveSegment*) _cmsCalloc(self ->ContextID, nSegments, sizeof(cmsCurveSegment));
3947 for (i=0; i < (cmsUInt32Number) nSegments - 1; i++) {
3954 Segments[nSegments-1].x0 = PrevBreak;
3955 Segments[nSegments-1].x1 = 1E22F; // A big cmsFloat32Number number
3958 for (i=0; i < nSegments; i++) {
4013 Curve = cmsBuildSegmentedToneCurve(self ->ContextID, nSegments, Segments);
4015 for (i=0; i < nSegments; i++) {
4023 for (i=0; i < nSegments; i++) {
4094 cmsUInt32Number nSegments = g ->nSegments;
4098 if (!_cmsWriteUInt16Number(io, (cmsUInt16Number) nSegments)) goto Error;
4102 for (i=0; i < nSegments - 1; i++) {
4107 for (i=0; i < g ->nSegments; i++) {