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);
351 cmsCIELab InitialLab, destLab, Lab;
415 // calculate initial Lab as source black point
420 // convert the XYZ to lab
425 // set the initial Lab to zero, that should be the black point for perceptual and saturation
443 Lab.L = (cmsFloat64Number) (l * 100.0) / 255.0;
444 Lab.a = cmsmin(50, cmsmax(-50, InitialLab.a));
445 Lab.b = cmsmin(50, cmsmax(-50, InitialLab.b));
447 cmsDoTransform(hRoundTrip, &Lab, &destLab, 1);
449 inRamp[l] = Lab.L;
534 Lab.L = RootOfLeastSquaresFitQuadraticCurve(n, x, y);
536 if (Lab.L < 0.0) { // clip to zero L* if the vertex is negative
537 Lab.L = 0;
540 Lab.a = InitialLab.a;
541 Lab.b = InitialLab.b;
543 cmsLab2XYZ(NULL, BlackPoint, &Lab);