w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cmspcs.c File Reference
#include "lcms2_internal.h"
Include dependency graph for cmspcs.c:

Go to the source code of this file.

Functions

void cmsXYZ2xyY (cmsCIExyY *Dest, const cmsCIEXYZ *Source)
 
void cmsxyY2XYZ (cmsCIEXYZ *Dest, const cmsCIExyY *Source)
 
static cmsFloat64Number f (cmsFloat64Number t)
 
static cmsFloat64Number f_1 (cmsFloat64Number t)
 
void cmsXYZ2Lab (const cmsCIEXYZ *WhitePoint, cmsCIELab *Lab, const cmsCIEXYZ *xyz)
 
void cmsLab2XYZ (const cmsCIEXYZ *WhitePoint, cmsCIEXYZ *xyz, const cmsCIELab *Lab)
 
static cmsFloat64Number L2float2 (cmsUInt16Number v)
 
static cmsFloat64Number ab2float2 (cmsUInt16Number v)
 
static cmsUInt16Number L2Fix2 (cmsFloat64Number L)
 
static cmsUInt16Number ab2Fix2 (cmsFloat64Number ab)
 
static cmsFloat64Number L2float4 (cmsUInt16Number v)
 
static cmsFloat64Number ab2float4 (cmsUInt16Number v)
 
void cmsLabEncoded2FloatV2 (cmsCIELab *Lab, const cmsUInt16Number wLab[3])
 
void cmsLabEncoded2Float (cmsCIELab *Lab, const cmsUInt16Number wLab[3])
 
static cmsFloat64Number Clamp_L_doubleV2 (cmsFloat64Number L)
 
static cmsFloat64Number Clamp_ab_doubleV2 (cmsFloat64Number ab)
 
void cmsFloat2LabEncodedV2 (cmsUInt16Number wLab[3], const cmsCIELab *fLab)
 
static cmsFloat64Number Clamp_L_doubleV4 (cmsFloat64Number L)
 
static cmsFloat64Number Clamp_ab_doubleV4 (cmsFloat64Number ab)
 
static cmsUInt16Number L2Fix4 (cmsFloat64Number L)
 
static cmsUInt16Number ab2Fix4 (cmsFloat64Number ab)
 
void cmsFloat2LabEncoded (cmsUInt16Number wLab[3], const cmsCIELab *fLab)
 
static cmsFloat64Number RADIANS (cmsFloat64Number deg)
 
static cmsFloat64Number atan2deg (cmsFloat64Number a, cmsFloat64Number b)
 
static cmsFloat64Number Sqr (cmsFloat64Number v)
 
void cmsLab2LCh (cmsCIELCh *LCh, const cmsCIELab *Lab)
 
void cmsLCh2Lab (cmsCIELab *Lab, const cmsCIELCh *LCh)
 
static cmsUInt16Number XYZ2Fix (cmsFloat64Number d)
 
void cmsFloat2XYZEncoded (cmsUInt16Number XYZ[3], const cmsCIEXYZ *fXYZ)
 
static cmsFloat64Number XYZ2float (cmsUInt16Number v)
 
void cmsXYZEncoded2Float (cmsCIEXYZ *fXYZ, const cmsUInt16Number XYZ[3])
 
cmsFloat64Number cmsDeltaE (const cmsCIELab *Lab1, const cmsCIELab *Lab2)
 
cmsFloat64Number cmsCIE94DeltaE (const cmsCIELab *Lab1, const cmsCIELab *Lab2)
 
static cmsFloat64Number ComputeLBFD (const cmsCIELab *Lab)
 
cmsFloat64Number cmsBFDdeltaE (const cmsCIELab *Lab1, const cmsCIELab *Lab2)
 
cmsFloat64Number cmsCMCdeltaE (const cmsCIELab *Lab1, const cmsCIELab *Lab2, cmsFloat64Number l, cmsFloat64Number c)
 
cmsFloat64Number cmsCIE2000DeltaE (const cmsCIELab *Lab1, const cmsCIELab *Lab2, cmsFloat64Number Kl, cmsFloat64Number Kc, cmsFloat64Number Kh)
 
cmsUInt32Number _cmsReasonableGridpointsByColorspace (cmsColorSpaceSignature Colorspace, cmsUInt32Number dwFlags)
 
cmsBool _cmsEndPointsBySpace (cmsColorSpaceSignature Space, cmsUInt16Number **White, cmsUInt16Number **Black, cmsUInt32Number *nOutputs)
 
cmsColorSpaceSignature _cmsICCcolorSpace (int OurNotation)
 
int _cmsLCMScolorSpace (cmsColorSpaceSignature ProfileSpace)
 
cmsUInt32Number cmsChannelsOf (cmsColorSpaceSignature ColorSpace)
 

Function Documentation

◆ _cmsEndPointsBySpace()

cmsBool _cmsEndPointsBySpace ( cmsColorSpaceSignature  Space,
cmsUInt16Number **  White,
cmsUInt16Number **  Black,
cmsUInt32Number nOutputs 
)

◆ _cmsICCcolorSpace()

◆ _cmsLCMScolorSpace()

◆ _cmsReasonableGridpointsByColorspace()

◆ ab2Fix2()

static cmsUInt16Number ab2Fix2 ( cmsFloat64Number  ab)
static

Definition at line 198 of file cmspcs.c.

References _cmsQuickSaturateWord().

Referenced by cmsFloat2LabEncodedV2().

◆ ab2Fix4()

static cmsUInt16Number ab2Fix4 ( cmsFloat64Number  ab)
static

Definition at line 293 of file cmspcs.c.

References _cmsQuickSaturateWord().

Referenced by cmsFloat2LabEncoded().

◆ ab2float2()

static cmsFloat64Number ab2float2 ( cmsUInt16Number  v)
static

Definition at line 186 of file cmspcs.c.

References v.

Referenced by cmsLabEncoded2FloatV2().

◆ ab2float4()

static cmsFloat64Number ab2float4 ( cmsUInt16Number  v)
static

Definition at line 212 of file cmspcs.c.

References v.

Referenced by cmsLabEncoded2Float().

◆ atan2deg()

static cmsFloat64Number atan2deg ( cmsFloat64Number  a,
cmsFloat64Number  b 
)
static

Definition at line 321 of file cmspcs.c.

References a, atan2(), b, h, and M_PI.

Referenced by cmsCIE2000DeltaE(), and cmsLab2LCh().

◆ Clamp_ab_doubleV2()

static cmsFloat64Number Clamp_ab_doubleV2 ( cmsFloat64Number  ab)
static

Definition at line 246 of file cmspcs.c.

References MAX_ENCODEABLE_ab2, and MIN_ENCODEABLE_ab2.

Referenced by cmsFloat2LabEncodedV2().

◆ Clamp_ab_doubleV4()

static cmsFloat64Number Clamp_ab_doubleV4 ( cmsFloat64Number  ab)
static

Definition at line 278 of file cmspcs.c.

References MAX_ENCODEABLE_ab4, and MIN_ENCODEABLE_ab4.

Referenced by cmsFloat2LabEncoded().

◆ Clamp_L_doubleV2()

static cmsFloat64Number Clamp_L_doubleV2 ( cmsFloat64Number  L)
static

Definition at line 234 of file cmspcs.c.

References L.

Referenced by cmsFloat2LabEncodedV2().

◆ Clamp_L_doubleV4()

static cmsFloat64Number Clamp_L_doubleV4 ( cmsFloat64Number  L)
static

Definition at line 269 of file cmspcs.c.

References L.

Referenced by cmsFloat2LabEncoded().

◆ cmsBFDdeltaE()

cmsFloat64Number cmsBFDdeltaE ( const cmsCIELab Lab1,
const cmsCIELab Lab2 
)

Definition at line 497 of file cmspcs.c.

References cmsCIELCh::C, cmsDeltaE(), cmsLab2LCh(), ComputeLBFD(), cos(), dh, g, cmsCIELCh::h, cmsCIELab::L, M_PI, rc, rh, Sqr(), sqrt(), and t.

◆ cmsChannelsOf()

◆ cmsCIE2000DeltaE()

cmsFloat64Number cmsCIE2000DeltaE ( const cmsCIELab Lab1,
const cmsCIELab Lab2,
cmsFloat64Number  Kl,
cmsFloat64Number  Kc,
cmsFloat64Number  Kh 
)

Definition at line 589 of file cmspcs.c.

References cmsCIELab::a, a1, as, atan2deg(), cmsCIELab::b, b1, C, cos(), exp(), fabs, G, cmsCIELab::L, L1, pow(), RADIANS(), sin(), Sqr(), sqrt(), and T.

◆ cmsCIE94DeltaE()

cmsFloat64Number cmsCIE94DeltaE ( const cmsCIELab Lab1,
const cmsCIELab Lab2 
)

Definition at line 451 of file cmspcs.c.

References cmsCIELCh::C, cmsDeltaE(), cmsLab2LCh(), dh, fabs, L, pow(), sc, Sqr(), and sqrt().

◆ cmsCMCdeltaE()

cmsFloat64Number cmsCMCdeltaE ( const cmsCIELab Lab1,
const cmsCIELab Lab2,
cmsFloat64Number  l,
cmsFloat64Number  c 
)

Definition at line 548 of file cmspcs.c.

References cmsCIELCh::C, c, cmsDeltaE(), cmsLab2LCh(), cos(), dh, f(), fabs, cmsCIELCh::h, cutout::l, L, cmsCIELab::L, M_PI, sc, Sqr(), sqrt(), and t.

◆ cmsDeltaE()

cmsFloat64Number cmsDeltaE ( const cmsCIELab Lab1,
const cmsCIELab Lab2 
)

Definition at line 438 of file cmspcs.c.

References a, b, db, fabs, L, pow(), and Sqr().

Referenced by BlackPreservingSampler(), cmsBFDdeltaE(), cmsCIE94DeltaE(), cmsCMCdeltaE(), and GamutSampler().

◆ cmsFloat2LabEncoded()

void cmsFloat2LabEncoded ( cmsUInt16Number  wLab[3],
const cmsCIELab fLab 
)

◆ cmsFloat2LabEncodedV2()

void cmsFloat2LabEncodedV2 ( cmsUInt16Number  wLab[3],
const cmsCIELab fLab 
)

◆ cmsFloat2XYZEncoded()

void cmsFloat2XYZEncoded ( cmsUInt16Number  XYZ[3],
const cmsCIEXYZ fXYZ 
)

Definition at line 374 of file cmspcs.c.

References MAX_ENCODEABLE_XYZ, X, cmsCIEXYZ::X, XYZ2Fix(), Y, cmsCIEXYZ::Y, Z, and cmsCIEXYZ::Z.

Referenced by UnrollXYZDoubleTo16(), and UnrollXYZFloatTo16().

◆ cmsLab2LCh()

void cmsLab2LCh ( cmsCIELCh LCh,
const cmsCIELab Lab 
)

Definition at line 349 of file cmspcs.c.

References a, atan2deg(), b, C, h, L, pow(), and Sqr().

Referenced by bchswSampler(), cmsBFDdeltaE(), cmsCIE94DeltaE(), cmsCMCdeltaE(), and cmsDesaturateLab().

◆ cmsLab2XYZ()

void cmsLab2XYZ ( const cmsCIEXYZ WhitePoint,
cmsCIEXYZ xyz,
const cmsCIELab Lab 
)

◆ cmsLabEncoded2Float()

void cmsLabEncoded2Float ( cmsCIELab Lab,
const cmsUInt16Number  wLab[3] 
)

◆ cmsLabEncoded2FloatV2()

void cmsLabEncoded2FloatV2 ( cmsCIELab Lab,
const cmsUInt16Number  wLab[3] 
)

Definition at line 218 of file cmspcs.c.

References cmsCIELab::a, ab2float2(), cmsCIELab::b, cmsCIELab::L, and L2float2().

◆ cmsLCh2Lab()

void cmsLCh2Lab ( cmsCIELab Lab,
const cmsCIELCh LCh 
)

Definition at line 358 of file cmspcs.c.

References a, b, C, cos(), h, L, M_PI, and sin().

Referenced by bchswSampler().

◆ cmsxyY2XYZ()

void cmsxyY2XYZ ( cmsCIEXYZ Dest,
const cmsCIExyY Source 
)

◆ cmsXYZ2Lab()

◆ cmsXYZ2xyY()

void cmsXYZ2xyY ( cmsCIExyY Dest,
const cmsCIEXYZ Source 
)

Definition at line 91 of file cmspcs.c.

References cordic::x, X, y, Y, and Z.

Referenced by CHAD2Temp(), and cmsD50_xyY().

◆ cmsXYZEncoded2Float()

void cmsXYZEncoded2Float ( cmsCIEXYZ fXYZ,
const cmsUInt16Number  XYZ[3] 
)

Definition at line 429 of file cmspcs.c.

References X, XYZ2float(), Y, and Z.

Referenced by PackXYZDoubleFrom16(), and PackXYZFloatFrom16().

◆ ComputeLBFD()

static cmsFloat64Number ComputeLBFD ( const cmsCIELab Lab)
static

Definition at line 482 of file cmspcs.c.

References cmsCIELab::L, log(), M_LOG10E, and Sqr().

Referenced by cmsBFDdeltaE().

◆ f()

Definition at line 119 of file cmspcs.c.

References pow().

Referenced by cmsCMCdeltaE(), and cmsXYZ2Lab().

◆ f_1()

◆ L2Fix2()

static cmsUInt16Number L2Fix2 ( cmsFloat64Number  L)
static

Definition at line 192 of file cmspcs.c.

References _cmsQuickSaturateWord(), and L.

Referenced by cmsFloat2LabEncodedV2().

◆ L2Fix4()

static cmsUInt16Number L2Fix4 ( cmsFloat64Number  L)
static

Definition at line 287 of file cmspcs.c.

References _cmsQuickSaturateWord(), and L.

Referenced by cmsFloat2LabEncoded().

◆ L2float2()

static cmsFloat64Number L2float2 ( cmsUInt16Number  v)
static

Definition at line 179 of file cmspcs.c.

References v.

Referenced by cmsLabEncoded2FloatV2().

◆ L2float4()

static cmsFloat64Number L2float4 ( cmsUInt16Number  v)
static

Definition at line 205 of file cmspcs.c.

References v.

Referenced by cmsLabEncoded2Float().

◆ RADIANS()

static cmsFloat64Number RADIANS ( cmsFloat64Number  deg)
static

Definition at line 313 of file cmspcs.c.

References M_PI.

Referenced by cmsCIE2000DeltaE().

◆ Sqr()

◆ XYZ2Fix()

static cmsUInt16Number XYZ2Fix ( cmsFloat64Number  d)
static

Definition at line 369 of file cmspcs.c.

References _cmsQuickSaturateWord(), and d.

Referenced by cmsFloat2XYZEncoded().

◆ XYZ2float()

static cmsFloat64Number XYZ2float ( cmsUInt16Number  v)
static

Definition at line 417 of file cmspcs.c.

References _cms15Fixed16toDouble(), and v.

Referenced by cmsXYZEncoded2Float().