Searched defs:LCh (Results 1 - 2 of 2) sorted by relevance

/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
H A Dcmsgmt.c534 cmsCIELCh LCh; local
537 // Falls outside a, b limits. Transports to LCh space,
548 cmsLab2LCh(&LCh, Lab);
551 h = LCh.h;
H A Dcmspcs.c340 void CMSEXPORT cmsLab2LCh(cmsCIELCh* LCh, const cmsCIELab* Lab) argument
342 LCh -> L = Lab -> L;
343 LCh -> C = pow(Sqr(Lab ->a) + Sqr(Lab ->b), 0.5);
344 LCh -> h = atan2deg(Lab ->b, Lab ->a);
349 void CMSEXPORT cmsLCh2Lab(cmsCIELab* Lab, const cmsCIELCh* LCh) argument
351 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0;
353 Lab -> L = LCh -> L;
354 Lab -> a = LCh -> C * cos(h);
355 Lab -> b = LCh -> C * sin(h);

Completed in 127 milliseconds