Lines Matching refs:Lab
75 cmsCIELab Lab;
104 // Lab will be used as the output space, but lab2 will avoid recursion
123 // Convert black to Lab
124 cmsDoTransform(xform, Black, &Lab, 1);
127 Lab.a = Lab.b = 0;
128 if (Lab.L > 50) Lab.L = 50;
133 // Convert from Lab (which is now clipped) to XYZ.
134 cmsLab2XYZ(NULL, &BlackXYZ, &Lab);
146 // Lab (0, 0, 0) -> [Perceptual] Profile -> CMYK -> [Rel. colorimetric] Profile -> Lab
170 // Clip Lab to reasonable limits
237 cmsCIELab Lab;
251 cmsXYZ2Lab(NULL, &Lab, &UntrustedBlackPoint);
252 Lab.a = Lab.b = 0;
253 if (Lab.L > 50) Lab.L = 50; // Clip to L* <= 50
254 cmsLab2XYZ(NULL, &TrustedBlackPoint, &Lab);
372 cmsCIELab InitialLab, destLab, Lab;
436 // calculate initial Lab as source black point
441 // convert the XYZ to lab
446 // set the initial Lab to zero, that should be the black point for perceptual and saturation
464 Lab.L = (cmsFloat64Number) (l * 100.0) / 255.0;
465 Lab.a = cmsmin(50, cmsmax(-50, InitialLab.a));
466 Lab.b = cmsmin(50, cmsmax(-50, InitialLab.b));
468 cmsDoTransform(hRoundTrip, &Lab, &destLab, 1);
470 inRamp[l] = Lab.L;
559 Lab.L = RootOfLeastSquaresFitQuadraticCurve(n, x, y);
561 if (Lab.L < 0.0) { // clip to zero L* if the vertex is negative
562 Lab.L = 0;
565 Lab.a = InitialLab.a;
566 Lab.b = InitialLab.b;
568 cmsLab2XYZ(NULL, BlackPoint, &Lab);