Lines Matching refs:cmsFloat64Number
93 cmsFloat64Number ISum;
119 cmsFloat64Number f(cmsFloat64Number t)
121 const cmsFloat64Number Limit = (24.0/116.0) * (24.0/116.0) * (24.0/116.0);
130 cmsFloat64Number f_1(cmsFloat64Number t)
132 const cmsFloat64Number Limit = (24.0/116.0);
145 cmsFloat64Number fx, fy, fz;
163 cmsFloat64Number x, y, z;
179 cmsFloat64Number L2float2(cmsUInt16Number v)
181 return (cmsFloat64Number) v / 652.800;
186 cmsFloat64Number ab2float2(cmsUInt16Number v)
188 return ((cmsFloat64Number) v / 256.0) - 128.0;
192 cmsUInt16Number L2Fix2(cmsFloat64Number L)
198 cmsUInt16Number ab2Fix2(cmsFloat64Number ab)
205 cmsFloat64Number L2float4(cmsUInt16Number v)
207 return (cmsFloat64Number) v / 655.35;
212 cmsFloat64Number ab2float4(cmsUInt16Number v)
214 return ((cmsFloat64Number) v / 257.0) - 128.0;
234 cmsFloat64Number Clamp_L_doubleV2(cmsFloat64Number L)
236 const cmsFloat64Number L_max = (cmsFloat64Number) (0xFFFF * 100.0) / 0xFF00;
246 cmsFloat64Number Clamp_ab_doubleV2(cmsFloat64Number ab)
269 cmsFloat64Number Clamp_L_doubleV4(cmsFloat64Number L)
278 cmsFloat64Number Clamp_ab_doubleV4(cmsFloat64Number ab)
287 cmsUInt16Number L2Fix4(cmsFloat64Number L)
293 cmsUInt16Number ab2Fix4(cmsFloat64Number ab)
313 cmsFloat64Number RADIANS(cmsFloat64Number deg)
321 cmsFloat64Number atan2deg(cmsFloat64Number a, cmsFloat64Number b)
323 cmsFloat64Number h;
344 cmsFloat64Number Sqr(cmsFloat64Number v)
360 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0;
369 cmsUInt16Number XYZ2Fix(cmsFloat64Number d)
415 // To convert from Fixed 1.15 point to cmsFloat64Number
417 cmsFloat64Number XYZ2float(cmsUInt16Number v)
424 // From fixed 15.16 to cmsFloat64Number
438 cmsFloat64Number CMSEXPORT cmsDeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2)
440 cmsFloat64Number dL, da, db;
451 cmsFloat64Number CMSEXPORT cmsCIE94DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2)
454 cmsFloat64Number dE, dL, dC, dh, dhsq;
455 cmsFloat64Number c12, sc, sh;
482 cmsFloat64Number ComputeLBFD(const cmsCIELab* Lab)
484 cmsFloat64Number yt;
497 cmsFloat64Number CMSEXPORT cmsBFDdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2)
499 cmsFloat64Number lbfd1,lbfd2,AveC,Aveh,dE,deltaL,
548 cmsFloat64Number CMSEXPORT cmsCMCdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2, cmsFloat64Number l, cmsFloat64Number c)
550 cmsFloat64Number dE,dL,dC,dh,sl,sc,sh,t,f,cmc;
589 cmsFloat64Number CMSEXPORT cmsCIE2000DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2,
590 cmsFloat64Number Kl, cmsFloat64Number Kc, cmsFloat64Number Kh)
592 cmsFloat64Number L1 = Lab1->L;
593 cmsFloat64Number a1 = Lab1->a;
594 cmsFloat64Number b1 = Lab1->b;
595 cmsFloat64Number C = sqrt( Sqr(a1) + Sqr(b1) );
597 cmsFloat64Number Ls = Lab2 ->L;
598 cmsFloat64Number as = Lab2 ->a;
599 cmsFloat64Number bs = Lab2 ->b;
600 cmsFloat64Number Cs = sqrt( Sqr(as) + Sqr(bs) );
602 cmsFloat64Number G = 0.5 * ( 1 - sqrt(pow((C + Cs) / 2 , 7.0) / (pow((C + Cs) / 2, 7.0) + pow(25.0, 7.0) ) ));
604 cmsFloat64Number a_p = (1 + G ) * a1;
605 cmsFloat64Number b_p = b1;
606 cmsFloat64Number C_p = sqrt( Sqr(a_p) + Sqr(b_p));
607 cmsFloat64Number h_p = atan2deg(b_p, a_p);
610 cmsFloat64Number a_ps = (1 + G) * as;
611 cmsFloat64Number b_ps = bs;
612 cmsFloat64Number C_ps = sqrt(Sqr(a_ps) + Sqr(b_ps));
613 cmsFloat64Number h_ps = atan2deg(b_ps, a_ps);
615 cmsFloat64Number meanC_p =(C_p + C_ps) / 2;
617 cmsFloat64Number hps_plus_hp = h_ps + h_p;
618 cmsFloat64Number hps_minus_hp = h_ps - h_p;
620 cmsFloat64Number meanh_p = fabs(hps_minus_hp) <= 180.000001 ? (hps_plus_hp)/2 :
624 cmsFloat64Number delta_h = (hps_minus_hp) <= -180.000001 ? (hps_minus_hp + 360) :
627 cmsFloat64Number delta_L = (Ls - L1);
628 cmsFloat64Number delta_C = (C_ps - C_p );
631 cmsFloat64Number delta_H =2 * sqrt(C_ps*C_p) * sin(RADIANS(delta_h) / 2);
633 cmsFloat64Number T = 1 - 0.17 * cos(RADIANS(meanh_p-30))
638 cmsFloat64Number Sl = 1 + (0.015 * Sqr((Ls + L1) /2- 50) )/ sqrt(20 + Sqr( (Ls+L1)/2 - 50) );
640 cmsFloat64Number Sc = 1 + 0.045 * (C_p + C_ps)/2;
641 cmsFloat64Number Sh = 1 + 0.015 * ((C_ps + C_p)/2) * T;
643 cmsFloat64Number delta_ro = 30 * exp( -Sqr(((meanh_p - 275 ) / 25)));
645 cmsFloat64Number Rc = 2 * sqrt(( pow(meanC_p, 7.0) )/( pow(meanC_p, 7.0) + pow(25.0, 7.0)));
647 cmsFloat64Number Rt = -sin(2 * RADIANS(delta_ro)) * Rc;
649 cmsFloat64Number deltaE00 = sqrt( Sqr(delta_L /(Sl * Kl)) +