Expand description
Little Color Management System Copyright (c) 1998-2014 Marti Maria Saguer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Version 2.16
Structs§
- CIELCh
- CIELab
- CIEXYZ
- CIEXYZTRIPLE
- CIExyY
- CIExyYTRIPLE
- Curve
Segment - This describes a curve segment.
- DICTentry
- Date
Time Number - EncodedXYZ
Number - ICCData
- ICCHeader
- ICCMeasurement
Conditions - ICCViewing
Conditions - IOHANDLER
- JCh
- MHC2
Type - MLU
- NAMEDCOLORLIST
- PSEQDESC
- Profile sequence descriptor.
- Pixel
Format - Format of pixel is defined by one u32, using bit fields as follows
- Pixel
Type - ProfileID
- Profile ID as computed by MD5 algorithm
- SEQ
- Screening
- Screening
Channel - TagBase
- TagEntry
- UcrBg
- Video
Signal Type - Viewing
Conditions - _HPROFILE
- _HTRANSFORM
- _cms
Context_ struct
Enums§
- Color
Space Signature - Colorimetric
Intent Image State - Curve
SegSignature - Illuminant
Type - Illuminant types for structs below
- Info
Type - Intent
- PSResource
Type - Pipeline
- Platform
Signature - Profile
Class Signature - Spot
Shape - Stage
- Stage
Loc - Where to place/locate the stages in the pipeline chain
- Stage
Signature - Surround
- TagSignature
- TagType
Signature - Technology
Signature - Tone
Curve
Constants§
- Blue
Matrix Column Tag - D50X
- D50 XYZ normalized to Y=1.0
- D50Y
- D50Z
- DN
- ’DN ’
- DNN
- ’DNN ’
- DNNP
- ‘DNNP’
- DNP
- ‘DN P’
- D_
CALCULATE - Embedded
Profile False - Embedded
Profile True - FLAGS_
8BITS_ DEVICELINK - For devicelink creation Create 8 bits devicelinks
- FLAGS_
BLACKPOINTCOMPENSATION - FLAGS_
CLUT_ POST_ LINEARIZATION - create postlinearization tables if possible
- FLAGS_
CLUT_ PRE_ LINEARIZATION - create prelinearization tables if possible
- FLAGS_
COPY_ ALPHA - Alpha channels are copied on
cmsDoTransform()
- FLAGS_
FORCE_ CLUT - Specific to a particular optimizations Force CLUT optimization
- FLAGS_
GAMUTCHECK - Proofing flags Out of Gamut alarm
- FLAGS_
GUESSDEVICECLASS - Guess device class (for transform2devicelink)
- FLAGS_
HIGHRESPRECALC - Use more memory to give better accurancy
- FLAGS_
KEEP_ SEQUENCE - Keep profile sequence for devicelink creation
- FLAGS_
LOWRESPRECALC - Use less memory to minimize resources
- FLAGS_
NOCACHE - Inhibit 1-pixel cache
- FLAGS_
NODEFAULTRESOURCEDEF - CRD special
- FLAGS_
NONEGATIVES - Specific to unbounded mode Prevent negative numbers in floating point transforms
- FLAGS_
NOOPTIMIZE - Inhibit optimizations
- FLAGS_
NOWHITEONWHITEFIXUP - Don’t fix scum dot
- FLAGS_
NULLTRANSFORM - Don’t transform anyway
- FLAGS_
SOFTPROOFING - Do softproofing
- FREQUENCE_
UNITS_ LINES_ CM - FREQUENCE_
UNITS_ LINES_ INCH - Glossy
- Green
Matrix Column Tag - MAXCHANNELS
- Maximum number of channels in ICC profiles
- Magic
Number - Definitions in ICC spec ‘acsp’
- Matte
- PERCEPTUAL_
BLACK_ X - V4 perceptual black
- PERCEPTUAL_
BLACK_ Y - PERCEPTUAL_
BLACK_ Z - PRINTER_
DEFAULT_ SCREENS - PT_ANY
- Don’t check colorspace
- PT_CMY
- PT_CMYK
- PT_GRAY
- 1 & 2 are reserved
- PT_HLS
- PT_HSV
- PT_Lab
- PT_
LabV2 - Identical to PT_Lab, but using the V2 old encoding
- PT_MCH1
- PT_MCH2
- PT_MCH3
- PT_MCH4
- PT_MCH5
- PT_MCH6
- PT_MCH7
- PT_MCH8
- PT_MCH9
- PT_
MCH10 - PT_
MCH11 - PT_
MCH12 - PT_
MCH13 - PT_
MCH14 - PT_
MCH15 - PT_RGB
- PT_XYZ
- PT_
YCbCr - PT_YUV
- Lu’v’
- PT_YUVK
- Lu’v’K
- PT_Yxy
- Perceptual
Reference Medium Gamut - ‘prmg’
- RedMatrix
Column Tag - Reflective
- Device attributes, currently defined values correspond to the low 4 bytes of the 8 byte attribute quantity
- SAMPLER_
INSPECT - Use this flag to prevent changes being written to destination.
- StatusA
- ‘StaA’
- StatusE
- ‘StaE’
- StatusI
- ‘StaI’
- StatusM
- ‘StaM’
- StatusT
- ‘StaT’
- Transparency
- UseAnywhere
- UseWith
Embedded Data Only - lcms
Signature - ‘lcms’
Functions§
- FLAGS_
GRIDPOINTS - _cmsIC
Ccolor ⚠Space - _cmsLCM
Scolor ⚠Space - cmsAdapt
ToIlluminant ⚠ - cmsAlloc
Named ⚠Color List - cmsAlloc
Profile ⚠Sequence Description - cmsAppend
Named ⚠Color - cmsBF
DdeltaE ⚠ - cmsBuild
Gamma ⚠ - cmsBuild
Parametric ⚠Tone Curve - cmsBuild
Segmented ⚠Tone Curve - cmsBuild
Tabulated ⚠Tone Curve16 - cmsBuild
Tabulated ⚠Tone Curve Float - cmsCI
E94DeltaE ⚠ - cmsCI
E2000 ⚠DeltaE - cmsCIECA
M02Done ⚠ - cmsCIECA
M02Forward ⚠ - cmsCIECA
M02Init ⚠ - cmsCIECA
M02Reverse ⚠ - cmsCM
CdeltaE ⚠ - cmsChange
Buffers ⚠Format - cmsChannels
Of ⚠ - cmsChannels
OfColor ⚠Space - cmsCloseI
Ohandler ⚠ - cmsClose
Profile ⚠ - cmsCreateBCHS
Wabstract ⚠Profile - cmsCreateBCHS
Wabstract ⚠ProfileTHR - cmsCreate
Context ⚠ - cmsCreate
Device ⚠Link From Cube File - cmsCreate
Device ⚠Link From Cube FileTHR - cmsCreate
Extended ⚠Transform - cmsCreate
Gray ⚠Profile - cmsCreate
Gray ⚠ProfileTHR - cmsCreate
InkLimiting ⚠Device Link - cmsCreate
InkLimiting ⚠Device LinkTHR - cmsCreate
Lab2 ⚠Profile - cmsCreate
Lab2 ⚠ProfileTHR - cmsCreate
Lab4 ⚠Profile - cmsCreate
Lab4 ⚠ProfileTHR - cmsCreate
Linearization ⚠Device Link - cmsCreate
Linearization ⚠Device LinkTHR - cmsCreate
Multiprofile ⚠Transform - cmsCreate
Multiprofile ⚠TransformTHR - cmsCreateNULL
Profile ⚠ - cmsCreateNULL
ProfileTHR ⚠ - cmsCreate
Profile ⚠Placeholder - cmsCreate
Proofing ⚠Transform - cmsCreate
Proofing ⚠TransformTHR - cmsCreateRGB
Profile ⚠ - cmsCreateRGB
ProfileTHR ⚠ - cmsCreate
Transform ⚠ - cmsCreate
TransformTHR ⚠ - cmsCreateXYZ
Profile ⚠ - cmsCreateXYZ
ProfileTHR ⚠ - cmsCreate_
OkLab ⚠Profile - cmsCreate_
sRGB ⚠Profile - cmsCreate_
sRGB ⚠ProfileTHR - cmsD50_
XYZ ⚠ - cmsD50_
xyY ⚠ - cmsDelete
Context ⚠ - cmsDelete
Transform ⚠ - cmsDeltaE⚠
- cmsDesaturate
Lab ⚠ - cmsDetect
Black ⚠Point - cmsDetect
Destination ⚠Black Point - cmsDetectRGB
Profile ⚠Gamma - cmsDetectTAC⚠
- cmsDict
AddEntry ⚠ - cmsDict
Alloc ⚠ - cmsDict
Dup ⚠ - cmsDict
Free ⚠ - cmsDict
GetEntry ⚠List - cmsDict
Next ⚠Entry - cmsDo
Transform ⚠ - cmsDo
Transform ⚠Line Stride - cmsDo
Transform ⚠Stride - Deprecated
- cmsDup
Context ⚠ - cmsDup
Named ⚠Color List - cmsDup
Profile ⚠Sequence Description - cmsDup
Tone ⚠Curve - cmsEstimate
Gamma ⚠ - cmsEval
Tone ⚠Curve16 - cmsEval
Tone ⚠Curve Float - cmsFloat2
LabEncoded ⚠ - cmsFloat2
LabEncoded ⚠V2 - cmsFloat2XYZ
Encoded ⚠ - cmsFormatter
ForColorspace ⚠OfProfile - cmsFormatter
ForPCS ⚠OfProfile - cmsFree
Named ⚠Color List - cmsFree
Profile ⚠Sequence Description - cmsFree
Tone ⚠Curve - cmsFree
Tone ⚠Curve Triple - cmsGBD
Alloc ⚠ - cmsGBD
Free ⚠ - cmsGDB
AddPoint ⚠ - cmsGDB
Check ⚠Point - cmsGDB
Compute ⚠ - cmsGet
Alarm ⚠Codes - cmsGet
Alarm ⚠CodesTHR - cmsGet
Color ⚠Space - cmsGet
Context ⚠User Data - cmsGet
Device ⚠Class - cmsGet
EncodedCM ⚠Mversion - cmsGet
EncodedIC ⚠Cversion - cmsGet
Header ⚠Attributes - cmsGet
Header ⚠Creation Date Time - cmsGet
Header ⚠Creator - cmsGet
Header ⚠Flags - cmsGet
Header ⚠Manufacturer - cmsGet
Header ⚠Model - cmsGet
Header ⚠ProfileID - cmsGet
Header ⚠Rendering Intent - cmsGet
Named ⚠Color List - cmsGetPCS⚠
- cmsGet
Pipeline ⚠ContextID - cmsGet
Post ⚠ScriptCRD - cmsGet
Post ⚠ScriptCSA - cmsGet
Post ⚠Script Color Resource - cmsGet
Profile ⚠ContextID - cmsGet
ProfileI ⚠Ohandler - cmsGet
Profile ⚠Info - cmsGet
Profile ⚠InfoASCII - cmsGet
Profile ⚠InfoUT F8 - cmsGet
Profile ⚠Version - cmsGet
Stage ⚠ContextID - cmsGet
Supported ⚠Intents - cmsGet
Supported ⚠IntentsTHR - cmsGet
TagCount ⚠ - cmsGet
TagSignature ⚠ - cmsGet
Tone ⚠Curve Estimated Table - cmsGet
Tone ⚠Curve Estimated Table Entries - cmsGet
Tone ⚠Curve Parametric Type - cmsGet
Tone ⚠Curve Segment - cmsGet
Transform ⚠ContextID - cmsGet
Transform ⚠Input Format - cmsGet
Transform ⚠Output Format - cmsI
T8Alloc ⚠ - cmsI
T8Define ⚠DblFormat - cmsI
T8Enum ⚠Data Format - cmsI
T8Enum ⚠Properties - cmsI
T8Enum ⚠Property Multi - cmsI
T8Find ⚠Data Format - cmsI
T8Free ⚠ - cmsI
T8Get ⚠Data - cmsI
T8Get ⚠Data Dbl - cmsI
T8Get ⚠Data RowCol - cmsI
T8Get ⚠Data RowCol Dbl - cmsI
T8Get ⚠Patch ByName - cmsI
T8Get ⚠Patch Name - cmsI
T8Get ⚠Property - cmsI
T8Get ⚠Property Dbl - cmsI
T8Get ⚠Property Multi - cmsI
T8Get ⚠Sheet Type - cmsI
T8Load ⚠From File - cmsI
T8Load ⚠From Mem - cmsI
T8Save ⚠ToFile - cmsI
T8Save ⚠ToMem - cmsI
T8Set ⚠Comment - cmsI
T8Set ⚠Data - cmsI
T8Set ⚠Data Dbl - cmsI
T8Set ⚠Data Format - cmsI
T8Set ⚠Data RowCol - cmsI
T8Set ⚠Data RowCol Dbl - cmsI
T8Set ⚠Index Column - cmsI
T8Set ⚠Property Dbl - cmsI
T8Set ⚠Property Hex - cmsI
T8Set ⚠Property Multi - cmsI
T8Set ⚠Property Str - cmsI
T8Set ⚠Property Uncooked - cmsI
T8Set ⚠Sheet Type - cmsI
T8Set ⚠Table - cmsI
T8Set ⚠Table ByLabel - cmsI
T8Table ⚠Count - cmsIsCLUT⚠
- cmsIs
Intent ⚠Supported - cmsIs
Matrix ⚠Shaper - cmsIs
Tag ⚠ - cmsIs
Tone ⚠Curve Descending - cmsIs
Tone ⚠Curve Linear - cmsIs
Tone ⚠Curve Monotonic - cmsIs
Tone ⚠Curve Multisegment - cmsJoin
Tone ⚠Curve - cmsL
Ch2Lab ⚠ - cmsLab2L
Ch ⚠ - cmsLab2XYZ⚠
- cmsLab
Encoded2 ⚠Float - cmsLab
Encoded2 ⚠Float V2 - cmsLink
Tag ⚠ - cmsM
D5computeID ⚠ - cmsML
Ualloc ⚠ - cmsML
Udup ⚠ - cmsML
Ufree ⚠ - cmsML
UgetASCII ⚠ - cmsML
Uget ⚠Translation - cmsML
UgetUT ⚠F8 - cmsML
Uget ⚠Wide - cmsML
UsetASCII ⚠ - cmsML
UsetUT ⚠F8 - cmsML
Uset ⚠Wide - cmsML
Utranslations ⚠Codes - cmsML
Utranslations ⚠Count - cmsNamed
Color ⚠Count - cmsNamed
Color ⚠Index - cmsNamed
Color ⚠Info - cmsOpenI
Ohandler ⚠From File - cmsOpenI
Ohandler ⚠From Mem - cmsOpenI
Ohandler ⚠FromNULL - cmsOpenI
Ohandler ⚠From Stream - cmsOpen
Profile ⚠From File - cmsOpen
Profile ⚠From FileTHR - cmsOpen
Profile ⚠FromI Ohandler2THR - cmsOpen
Profile ⚠FromI OhandlerTHR - cmsOpen
Profile ⚠From Mem - cmsOpen
Profile ⚠From MemTHR - cmsOpen
Profile ⚠From Stream - cmsOpen
Profile ⚠From StreamTHR - cmsPipeline
Alloc ⚠ - cmsPipeline
Cat ⚠ - cmsPipeline
Check ⚠AndRetreive Stages - This function is quite useful to analyze the structure of a Pipeline and retrieve the Stage elements that conform the Pipeline.
- cmsPipeline
Dup ⚠ - cmsPipeline
Eval16 ⚠ - cmsPipeline
Eval ⚠Float - cmsPipeline
Eval ⚠Reverse Float - cmsPipeline
Free ⚠ - cmsPipeline
GetPtr ⚠ToFirst Stage - cmsPipeline
GetPtr ⚠ToLast Stage - cmsPipeline
Input ⚠Channels - cmsPipeline
Insert ⚠Stage - cmsPipeline
Output ⚠Channels - cmsPipeline
SetSave ⚠As8bits Flag - cmsPipeline
Stage ⚠Count - cmsPipeline
Unlink ⚠Stage - cmsPlugin⚠
- cmsPluginTHR⚠
- cmsRead
RawTag ⚠ - cmsRead
Tag ⚠ - cmsReverse
Tone ⚠Curve - cmsReverse
Tone ⚠Curve Ex - cmsSave
Profile ⚠ToFile - cmsSave
Profile ⚠ToIOhandler - cmsSave
Profile ⚠ToMem - cmsSave
Profile ⚠ToStream - cmsSet
Adaptation ⚠State - cmsSet
Adaptation ⚠StateTHR - cmsSet
Alarm ⚠Codes - cmsSet
Alarm ⚠CodesTHR - cmsSet
Color ⚠Space - cmsSet
Device ⚠Class - cmsSet
EncodedIC ⚠Cversion - cmsSet
Header ⚠Attributes - cmsSet
Header ⚠Flags - cmsSet
Header ⚠Manufacturer - cmsSet
Header ⚠Model - cmsSet
Header ⚠ProfileID - cmsSet
Header ⚠Rendering Intent - cmsSet
LogError ⚠Handler - cmsSet
LogError ⚠HandlerTHR - cmsSetPCS⚠
- cmsSet
Profile ⚠Version - cmsSlice
Space16 ⚠ - cmsSlice
Space ⚠Float - cmsSmooth
Tone ⚠Curve - cmsStage
AllocC ⚠Lut16bit - cmsStage
AllocC ⚠Lut16bit Granular - cmsStage
AllocC ⚠LutFloat - cmsStage
AllocC ⚠LutFloat Granular - cmsStage
Alloc ⚠Identity - cmsStage
Alloc ⚠Matrix - cmsStage
Alloc ⚠Tone Curves - cmsStage
Data ⚠ - cmsStage
Dup ⚠ - cmsStage
Free ⚠ - cmsStage
Input ⚠Channels - cmsStage
Next ⚠ - cmsStage
Output ⚠Channels - cmsStage
SampleC ⚠Lut16bit - cmsStage
SampleC ⚠LutFloat - cmsStage
Type ⚠ - cmsTag
Linked ⚠To - cmsTemp
From ⚠White Point - cmsTransform2
Device ⚠Link - cmsUnregister
Plugins ⚠ - cmsUnregister
PluginsTHR ⚠ - cmsWhite
Point ⚠From Temp - cmsWrite
RawTag ⚠ - cmsWrite
Tag ⚠ - cmsXY
Z2Lab ⚠ - cmsXY
Z2xyY ⚠ - cmsXYZ
Encoded2 ⚠Float - cmsfilelength⚠
- cmsstrcasecmp⚠
- cmsxy
Y2XYZ ⚠