Lines Matching refs:Lab
143 void CMSEXPORT cmsXYZ2Lab(const cmsCIEXYZ* WhitePoint, cmsCIELab* Lab, const cmsCIEXYZ* xyz) in cmsXYZ2Lab() argument
154 Lab->L = 116.0*fy - 16.0; in cmsXYZ2Lab()
155 Lab->a = 500.0*(fx - fy); in cmsXYZ2Lab()
156 Lab->b = 200.0*(fy - fz); in cmsXYZ2Lab()
161 void CMSEXPORT cmsLab2XYZ(const cmsCIEXYZ* WhitePoint, cmsCIEXYZ* xyz, const cmsCIELab* Lab) in cmsLab2XYZ() argument
168 y = (Lab-> L + 16.0) / 116.0; in cmsLab2XYZ()
169 x = y + 0.002 * Lab -> a; in cmsLab2XYZ()
170 z = y - 0.005 * Lab -> b; in cmsLab2XYZ()
218 void CMSEXPORT cmsLabEncoded2FloatV2(cmsCIELab* Lab, const cmsUInt16Number wLab[3]) in cmsLabEncoded2FloatV2() argument
220 Lab->L = L2float2(wLab[0]); in cmsLabEncoded2FloatV2()
221 Lab->a = ab2float2(wLab[1]); in cmsLabEncoded2FloatV2()
222 Lab->b = ab2float2(wLab[2]); in cmsLabEncoded2FloatV2()
226 void CMSEXPORT cmsLabEncoded2Float(cmsCIELab* Lab, const cmsUInt16Number wLab[3]) in cmsLabEncoded2Float() argument
228 Lab->L = L2float4(wLab[0]); in cmsLabEncoded2Float()
229 Lab->a = ab2float4(wLab[1]); in cmsLabEncoded2Float()
230 Lab->b = ab2float4(wLab[2]); in cmsLabEncoded2Float()
256 cmsCIELab Lab; in cmsFloat2LabEncodedV2() local
258 Lab.L = Clamp_L_doubleV2(fLab ->L); in cmsFloat2LabEncodedV2()
259 Lab.a = Clamp_ab_doubleV2(fLab ->a); in cmsFloat2LabEncodedV2()
260 Lab.b = Clamp_ab_doubleV2(fLab ->b); in cmsFloat2LabEncodedV2()
262 wLab[0] = L2Fix2(Lab.L); in cmsFloat2LabEncodedV2()
263 wLab[1] = ab2Fix2(Lab.a); in cmsFloat2LabEncodedV2()
264 wLab[2] = ab2Fix2(Lab.b); in cmsFloat2LabEncodedV2()
300 cmsCIELab Lab; in cmsFloat2LabEncoded() local
302 Lab.L = Clamp_L_doubleV4(fLab ->L); in cmsFloat2LabEncoded()
303 Lab.a = Clamp_ab_doubleV4(fLab ->a); in cmsFloat2LabEncoded()
304 Lab.b = Clamp_ab_doubleV4(fLab ->b); in cmsFloat2LabEncoded()
306 wLab[0] = L2Fix4(Lab.L); in cmsFloat2LabEncoded()
307 wLab[1] = ab2Fix4(Lab.a); in cmsFloat2LabEncoded()
308 wLab[2] = ab2Fix4(Lab.b); in cmsFloat2LabEncoded()
349 void CMSEXPORT cmsLab2LCh(cmsCIELCh* LCh, const cmsCIELab* Lab) in cmsLab2LCh() argument
351 LCh -> L = Lab -> L; in cmsLab2LCh()
352 LCh -> C = pow(Sqr(Lab ->a) + Sqr(Lab ->b), 0.5); in cmsLab2LCh()
353 LCh -> h = atan2deg(Lab ->b, Lab ->a); in cmsLab2LCh()
358 void CMSEXPORT cmsLCh2Lab(cmsCIELab* Lab, const cmsCIELCh* LCh) in cmsLCh2Lab() argument
362 Lab -> L = LCh -> L; in cmsLCh2Lab()
363 Lab -> a = LCh -> C * cos(h); in cmsLCh2Lab()
364 Lab -> b = LCh -> C * sin(h); in cmsLCh2Lab()
482 cmsFloat64Number ComputeLBFD(const cmsCIELab* Lab) in ComputeLBFD() argument
486 if (Lab->L > 7.996969) in ComputeLBFD()
487 yt = (Sqr((Lab->L+16)/116)*((Lab->L+16)/116))*100; in ComputeLBFD()
489 yt = 100 * (Lab->L / 903.3); in ComputeLBFD()