Lines Matching refs:Lab
104 cmsCIELab Lab; in ComputeKToLstar() local
121 cmsDoTransform(xform, cmyk, &Lab, 1); in ComputeKToLstar()
122 SampledPoints[i]= (cmsFloat32Number) (1.0 - Lab.L / 100.0); // Negate K for easier operation in ComputeKToLstar()
509 cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab, in cmsDesaturateLab() argument
516 if (Lab -> L < 0) { in cmsDesaturateLab()
518 Lab-> L = Lab->a = Lab-> b = 0.0; in cmsDesaturateLab()
526 if (Lab->L > 100) in cmsDesaturateLab()
527 Lab -> L = 100; in cmsDesaturateLab()
531 if (Lab -> a < amin || Lab->a > amax|| in cmsDesaturateLab()
532 Lab -> b < bmin || Lab->b > bmax) { in cmsDesaturateLab()
541 if (Lab -> a == 0.0) { // Is hue exactly 90? in cmsDesaturateLab()
544 Lab -> b = Lab->b < 0 ? bmin : bmax; in cmsDesaturateLab()
548 cmsLab2LCh(&LCh, Lab); in cmsDesaturateLab()
550 slope = Lab -> b / Lab -> a; in cmsDesaturateLab()
559 Lab -> a = amax; in cmsDesaturateLab()
560 Lab -> b = amax * slope; in cmsDesaturateLab()
566 Lab -> b = bmax; in cmsDesaturateLab()
567 Lab -> a = bmax / slope; in cmsDesaturateLab()
572 Lab -> a = amin; in cmsDesaturateLab()
573 Lab -> b = amin * slope; in cmsDesaturateLab()
579 Lab -> b = bmin; in cmsDesaturateLab()
580 Lab -> a = bmin / slope; in cmsDesaturateLab()