iccMAX (ICC.2:2023, profile version 5) defines its own list of tag types. Its clause 1 says that some ISO 15076-1 (ICC.1) types have been removed and others added: lut8Type, lut16Type, chromaticityType, colorantTableType, namedColor2Type, profileSequenceDescType, profileSequenceIdentifierType, responseCurveSet16Type and viewingConditionsType are not in it. It keeps the others, extends measurementType and multiProcessElementsType, and adds the types on this page, the structures and arrays built from them, and new processing elements. Its header, classes and tags are on Versions and iccMAX. As everywhere in a profile, numbers are big-endian, and each tag starts with its type signature and four reserved bytes.
Numbers and codes
| Name | Size | Meaning |
|---|---|---|
| float16Number | 2 | IEEE 754 half precision |
| float64Number | 8 | IEEE 754 double precision |
| spectralRange | 6 | Start wavelength and end wavelength (float16Numbers, nm), then the number of steps (uInt16Number); the interval is (end − start) ÷ (steps − 1) |
| valueEncodingType | 2 or 4 | How sampled values are stored: 0 float32Number, 1 float16Number, 2 uInt16Number for 0.0 to 1.0, 3 uInt8Number for 0.0 to 1.0 |
| interpolationHintType | 1 | 0 no recommendation, 1 trilinear, 2 3D tetrahedral |
| sparseMatrixEncodingType | 2 | 1 sparseMatrixUInt8, 2 sparseMatrixUInt16, 3 sparseMatrixFloat16, 4 sparseMatrixFloat32 |
| tintArray | … | N tints of M samples each, stored tint by tint (sample j of tint i at index i·M + j), in any numeric array type; used by the tintArrayElement and the namedColorStructure |
| azimuthNumber | 4 | A float: 0.0 is −180° and 1.0 is +180°, an azimuth angle input to the BRDF and directional tags |
| zenithNumber | 4 | A float: 0.0 is 0° and 1.0 is 90°, a zenith angle from the surface normal |
| horizontalNumber | 4 | A float: −1.0 the leftmost, 0.0 the centre, 1.0 the rightmost position of the viewing field (directional tags) |
| verticalNumber | 4 | A float: −1.0 the top, 0.0 the centre, 1.0 the bottom of the viewing field (directional tags) |
The BRDF and directional tags take these numbers as extra inputs to their multiProcessElementsType. The
BRDF transforms of a namedColorStructure (bcol, bspc) take five inputs, in this
order (ICC.2 Table 138): viewing azimuth Φr, viewing zenith θr, lighting azimuth Φi, lighting zenith θi,
then the tint.
Arrays and text
fl16 float16ArrayType, fl32 float32ArrayType, fl64 float64ArrayType
From byte 8, floating-point numbers of 2, 4 or 8 bytes, as many as the tag’s size allows.
utf8 utf8Type and ut16 utf16Type
From byte 8 to the end, UTF-8 text, or UTF-16 text in 16-bit big-endian units.
zut8 utf8ZipType and zxml (or ZXML) zipXmlType
From byte 8 to the end, a zlib stream (RFC 1950, Deflate) that inflates to UTF-8 text, or to XML. The explorer inflates and shows it.
meas measurementType in iccMAX
iccMAX keeps the ICC.1 layout (measurementType) and extends it (ICC.2 10.2.15). The standard illuminant may also be 9 black body defined by the colour temperature, 10 daylight defined by the colour temperature, 11 B, 12 C, 13 F1, 14 F3, 15 F4, 16 F5, 17 F6, 18 F7, 19 F9, 20 F10, 21 F11 or 22 F12, and 0 means custom. Bytes 36 to 39, when the tag is 40 bytes long, hold the ISO 13655 measurement condition: 0 unknown, 1 M0, 2 M1, 3 M2, 4 M3; a 36-byte tag means unknown.
The two parts of ICC.2 disagree on whether the tag itself belongs in a version 5 profile. Clause
10.2.15 calls the type “a backwards compatible extension of ISO 15076‐1 with the same tag
signature” (meas), but clause 9’s tag list has no measurementTag. The explorer decodes the tag and notes that it is not in ICC.2’s
tag list, rather than calling it invalid.
tstr tagStructType
A structure of named members, each a whole typed element.
| Offset | Size | Field |
|---|---|---|
| 8 | 4 | Structure type identifier |
| 12 | 4 | Number of members N |
| 16 | 12N | For each member: its signature, then a positionNumber (offset from the start of the structure, and size) |
| 16 + 12N | … | The members, each starting on a 4-byte boundary; members may share data |
Member signatures are unique within a structure. Clause 10.2.23 calls the structure element
type tags where Table 73 gives tstr; the explorer reads both.
The structures and their members
Each member is a whole typed element of the type given (“float32 array” means a float32ArrayType, and so on).
| Structure | Member | Holds | Type |
|---|---|---|---|
brdf brdfTransformStructure | type | BRDF type: mono monochrome parameters, colr parameters for each PCS channel | signature |
func | BRDF function (below) | signature | |
nprm | Parameters per channel; must match the function | uInt16 | |
xfrm | Device values to BRDF parameters | multiProcessElementsType | |
cinf colorantInfoStructure | name | Colorant name | utf8 |
lcnm | Localised name | mluc | |
pcs | PCS value | uInt8, uInt16, float16 or float32 array | |
spec | Spectral data | uInt8, uInt16, float16 or float32 array | |
cept colorEncodingParamsStructure | rXYZ gXYZ bXYZ | Red, green and blue primaries | float32 array |
func | Transfer function | segmented curve | |
lmat | Luma and chroma matrix | float32 array | |
wlum | White point luminance | float32 | |
wXYZ | White point chromaticity | float32 array | |
eRng | Encoding range | float32 array | |
bits | Bit depth | uInt8 array | |
imst | Image state: scoe, sape, fpce, rhoc, rpoc as in the ciisTag, or dorc display output referred colorimetry | signature | |
ibkg | Image background | float32 | |
srnd | Viewing surround | float32 | |
ailm | Ambient illuminance | float32 | |
awlm | Ambient white point luminance | float32 | |
awpc | Ambient white point chromaticity | float32 array | |
flar | Viewing flare | float32 | |
lrng | Valid relative luminance range | float32 array | |
mwpl | Medium white point luminance | float32 | |
mwpc | Medium white point chromaticity | float32 array | |
mbpl | Medium black point luminance | float32 | |
mbpc | Medium black point chromaticity | float32 array | |
meas measurementInfoStructure | mbak | Backing: 0 undefined, 1 white, 2 black, 3 media (self) | uInt32 |
mflr | Flare | float32 | |
mgeo | Geometry: 0 unknown, 1 0°:45° or 45°:0°, 2 0°:d or d:0° | uInt32 | |
mill | Illuminant spectral power distribution, one value for each miwr step. Clause 12.2.4.2.4 also has a “Permitted tag types: uInt32Number” line, but Table 133 and the clause’s own text both describe an array | float16 or float32 array | |
miwr | Wavelengths of the mill SPD: start, end and number of steps; required when mill is present, and its steps must equal the number of mill values. ICC.2 names no element type that holds a bare spectralRange, so the explorer reads a three-value number array | spectralRange | |
mmod | Mode: 0 undefined, 1 M0 (default, tungsten), 2 M1 (D50), 3 M2 (UV cut), 4 M3 (polarising filter) | uInt32 | |
nmcl namedColorStructure | name, lcnm | Name and localised name | utf8, mluc |
dev | Device data | uInt8, uInt16, float16 or float32 array | |
pcs | PCS data | uInt8, uInt16, float16 or float32 array | |
spec | Spectral data | numeric array | |
spcb, spcg | Spectral data over black and over grey | numeric arrays | |
tint | Tint values (a tintArray) | uInt8, uInt16 or float32 array | |
nmap | Normal map | embeddedNormalImageType | |
bcol, bspc | BRDF colorimetric and spectral transforms (five inputs, Table 138) | multiProcessElementsType | |
bcpr, bspr | BRDF colorimetric and spectral parameters | brdfTransformStructure | |
pcc pccStructure | c2sp | Custom to standard transform | multiProcessElementsType |
s2cp | Standard to custom transform | multiProcessElementsType | |
iXYZ | Illuminant | XYZ | |
mwpt | Media white point | XYZ | |
svcn | Spectral viewing conditions | spectralViewingConditionsType | |
pinf profileInfoStructure | attr | Device attributes, as in the header | uInt64 |
pdsc | Profile description | mluc | |
pid | Profile ID | uInt8 array of 16 | |
dmns, dmnd | Manufacturer signature and description | signature, mluc | |
mod , dmdd | Model signature and description | signature, mluc | |
rtrn | Rendering intent used: 0 perceptual, 1 media-relative colorimetric, 2 saturation, 3 ICC-absolute colorimetric | uInt32 | |
tech | Technology, as in the technologyTag | signature | |
tnt0 tintZeroStructure | dev | Device data of a zero tint | numeric array |
pcs | PCS data of a zero tint | numeric array | |
spec | Spectral data of a zero tint | numeric array | |
spcb | Spectral data over black | numeric array | |
spcg | Spectral data over grey | numeric array |
BRDF functions (ICC.2 Table 129), with the number of parameters each takes:
| Signature | Function | Parameters |
|---|---|---|
BPh0 | Blinn-Phong, monochrome parameters | 4 |
BPh1 | Blinn-Phong, full colour parameters | 3 |
CT10 CT20 CT30 | Cook-Torrance with 1, 2 or 3 lobes, monochrome | 6, 9, 11 |
CT11 CT21 CT31 | Cook-Torrance with 1, 2 or 3 lobes, full colour | 5, 8, 10 |
War0 War1 | Ward, monochrome and full colour | 5, 4 |
La10 La20 La30 | Lafortune with 1, 2 or 3 lobes, monochrome | 9, 16, 23 |
La11 La21 La31 | Lafortune with 1, 2 or 3 lobes, chromatic | 5, 9, 13 |
In a colorEncodingParamsStructure the members override the defaults that the reference name
implies; in a profileInfoStructure a missing member takes its default (zero, or an empty
description). The explorer names every member and code value, and checks that nprm
matches the function.
tary tagArrayType
| Offset | Size | Field |
|---|---|---|
| 8 | 4 | Array type identifier |
| 12 | 4 | Number of elements N |
| 16 | 8N | A positionNumber for each element, from the start of the array |
| 16 + 8N | … | The elements, all of one type, on 4-byte boundaries; they may share data |
| Identifier | Array |
|---|---|
ncol | namedColorArray: a tintZeroStructure, then a namedColorStructure for each colour (the iccMAX namedColorTag) |
pinf | profileInfoArray: a profileInfoStructure for each profile in a sequence, source first (profileSequenceInformationTag) |
tags | tagStructArray: tagStructTypes all of one structure type (clause 13 prints its hex as 74606773h, a misprint of 74616773h) |
cinf | Colorant information: a colorantInfoStructure for each colorant, in channel order (colorantInfoTag and colorantInfoOutTag) |
mcta | Multiplex type array: a utf8Type naming each multiplex channel (multiplexTypeArrayTag) |
Each element has an offset and a size, with offsets relative to the start of the array. Elements
should begin at an offset divisible by 4, with padding between them as needed. The type signature of
every element must match the array’s element type, which can be the signature of any valid profile tag
type (10.2.23). When the element type is tags (so that the array holds tagStructTypes), each
element’s structure type identifier must be the array’s structure identifier; otherwise that
identifier is zero.
smat sparseMatrixArrayType
Bytes 8 to 9 the number of equivalent output channels Q, 10 to 11 the sparseMatrixEncodingType, 12 to 15 the number of matrices N, then the N matrices, all of the same rows and columns. A sparse matrix is stored in compressed row order:
| Offset | Size | Field |
|---|---|---|
| 0 | 2 | Rows R |
| 2 | 2 | Columns C |
| 4 | 2R | Where each row’s entries start in the arrays below (not decreasing) |
| 4 + 2R | 2 | Number of stored entries N |
| 6 + 2R | 2N | The column of each entry, increasing within a row |
| … | … | Zero padding to a 4-byte boundary |
| O | N × size | The values: uInt8 or uInt16 for 0.0 to 1.0, float16 or float32 |
| … | … | Zero padding to a 4-byte boundary |
“Compact padding” places the values and the end of each matrix on 4-byte boundaries. A CMM may instead use fixed-size blocks internally; the specification gives the formulas for the largest number of entries such a block holds.
svcn spectralViewingConditionsType
| Offset | Size | Field |
|---|---|---|
| 8 | 4 | Observer: 0 custom, 1 CIE 1931, 2 CIE 1964 |
| 12 | 6 | The observer’s spectralRange (N steps) |
| 18 | 2 | Reserved, zero |
| 20 | 12N | The colour matching functions: x̄, then ȳ, then z̄ (float32) |
| 20 + 12N | 4 | Illuminant type (below) |
| 24 + 12N | 4 | (Correlated) colour temperature, float32 |
| 28 + 12N | 6 | The illuminant’s spectralRange (M steps) |
| 34 + 12N | 2 | Reserved, zero |
| 36 + 12N | 4M | The illuminant’s spectral power (float32) |
| 36 + 12N + 4M | 12 | Un-normalised XYZ of the illuminant, Y in cd/m² |
| 48 + 12N + 4M | 12 | Un-normalised XYZ of the surround, Y in cd/m² |
Illuminant types: 0 custom, 1 D50, 2 D65, 3 D93, 4 F2, 5 D55, 6 A, 7 equi-power (E), 8 F8, 9 black body defined by the colour temperature, 10 daylight defined by the colour temperature, 11 B, 12 C, 13 F1, 14 F3, 15 F4, 16 F5, 17 F6, 18 F7, 19 F9, 20 F10, 21 F11, 22 F12. For luminous colours the illuminant fields hold the white emission spectrum instead.
Data assumed for a range of 0 steps
ICC.2:2023 (10.2.22) says that if the observer’s range has 0 steps and the observer type is not 0 (custom) but is in Table 70, the range is taken to run from 380 nm to 780 nm in 81 steps (5 nm) and the matrix colorimetric observer data is that of Table X below. If the illuminant’s range has 0 steps and the illuminant type is not 0, is in Table 71 and is neither 9 nor 10 (the two defined by their colour temperature), the range is likewise 380 nm to 780 nm in 81 steps and the vector illuminant data is that of Table Y, which gives data for D50, D65, D93, A and E only; the other illuminants of Table 71 (F1 to F12, B, C and D55) have no assumed data, so a profile that names one of them needs the explicit range. The explorer shows these tables with the tag. The numbers are the specification’s, with its decimal commas written as points; element i (0 to 80) is at 380 + 5i nm.
Table X: the CIE 1931 standard colorimetric observer (value 1)
0.001368 0.002236 0.004243 0.007650 0.014310 0.023190 0.043510
0.077630 0.134380 0.214770 0.283900 0.328500 0.348280 0.348060
0.336200 0.318700 0.290800 0.251100 0.195360 0.142100 0.095640
0.057950 0.032010 0.014700 0.004900 0.002400 0.009300 0.029100
0.063270 0.109600 0.165500 0.225750 0.290400 0.359700 0.433450
0.512050 0.594500 0.678400 0.762100 0.842500 0.916300 0.978600
1.026300 1.056700 1.062200 1.045600 1.002600 0.938400 0.854450
0.751400 0.642400 0.541900 0.447900 0.360800 0.283500 0.218700
0.164900 0.121200 0.087400 0.063600 0.046770 0.032900 0.022700
0.015840 0.011359 0.008111 0.005790 0.004109 0.002899 0.002049
0.001440 0.001000 0.000690 0.000476 0.000332 0.000235 0.000166
0.000117 0.000083 0.000059 0.0000420.000039 0.000064 0.000120 0.000217 0.000396 0.000640 0.001210
0.002180 0.004000 0.007300 0.011600 0.016840 0.023000 0.029800
0.038000 0.048000 0.060000 0.073900 0.090980 0.112600 0.139020
0.169300 0.208020 0.258600 0.323000 0.407300 0.503000 0.608200
0.710000 0.793200 0.862000 0.914850 0.954000 0.980300 0.994950
1.000000 0.995000 0.978600 0.952000 0.915400 0.870000 0.816300
0.757000 0.694900 0.631000 0.566800 0.503000 0.441200 0.381000
0.321000 0.265000 0.217000 0.175000 0.138200 0.107000 0.081600
0.061000 0.044580 0.032000 0.023200 0.017000 0.011920 0.008210
0.005723 0.004102 0.002929 0.002091 0.001484 0.001047 0.000740
0.000520 0.000361 0.000249 0.000172 0.000120 0.000085 0.000060
0.000042 0.000030 0.000021 0.0000150.006450 0.010550 0.020050 0.036210 0.067850 0.110200 0.207400
0.371300 0.645600 1.039050 1.385600 1.622960 1.747060 1.782600
1.772110 1.744100 1.669200 1.528100 1.287640 1.041900 0.812950
0.616200 0.465180 0.353300 0.272000 0.212300 0.158200 0.111700
0.078250 0.057250 0.042160 0.029840 0.020300 0.013400 0.008750
0.005750 0.003900 0.002750 0.002100 0.001800 0.001650 0.001400
0.001100 0.001000 0.000800 0.000600 0.000340 0.000240 0.000190
0.000100 0.000050 0.000030 0.000020 0.000010 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000Table X: the CIE 1964 standard colorimetric observer (value 2)
0.000160 0.000662 0.002362 0.007242 0.019110 0.043400 0.084736
0.140638 0.204492 0.264737 0.314679 0.357719 0.383734 0.386726
0.370702 0.342957 0.302273 0.254085 0.195618 0.132349 0.080507
0.041072 0.016172 0.005132 0.003816 0.015444 0.037465 0.071358
0.117749 0.172953 0.236491 0.304213 0.376772 0.451584 0.529826
0.616053 0.705224 0.793832 0.878655 0.951162 1.014160 1.074300
1.118520 1.134300 1.123990 1.089100 1.030480 0.950740 0.856297
0.754930 0.647467 0.535110 0.431567 0.343690 0.268329 0.204300
0.152568 0.112210 0.081261 0.057930 0.040851 0.028623 0.019941
0.013842 0.009577 0.006605 0.004553 0.003145 0.002175 0.001506
0.001045 0.000727 0.000508 0.000356 0.000251 0.000178 0.000126
0.000090 0.000065 0.000046 0.0000330.000017 0.000072 0.000253 0.000769 0.002004 0.004509 0.008756
0.014456 0.021391 0.029497 0.038676 0.049602 0.062077 0.074704
0.089456 0.106256 0.128201 0.152761 0.185190 0.219940 0.253589
0.297665 0.339133 0.395379 0.460777 0.531360 0.606741 0.685660
0.761757 0.823330 0.875211 0.923810 0.961988 0.982200 0.991761
0.999110 0.997340 0.982380 0.955552 0.915175 0.868934 0.825623
0.777405 0.720353 0.658341 0.593878 0.527963 0.461834 0.398057
0.339554 0.283493 0.228254 0.179828 0.140211 0.107633 0.081187
0.060281 0.044096 0.031800 0.022602 0.015905 0.011130 0.007749
0.005375 0.003718 0.002565 0.001768 0.001222 0.000846 0.000586
0.000407 0.000284 0.000199 0.000140 0.000098 0.000070 0.000050
0.000036 0.000025 0.000018 0.0000130.000705 0.002928 0.010482 0.032344 0.086011 0.197120 0.389366
0.656760 0.972542 1.282500 1.553480 1.798500 1.967280 2.027300
1.994800 1.900700 1.745370 1.554900 1.317560 1.030200 0.772125
0.570060 0.415254 0.302356 0.218502 0.159249 0.112044 0.082248
0.060709 0.043050 0.030451 0.020584 0.013676 0.007918 0.003988
0.001091 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000Table Y: illuminants
The equi-power illuminant E (value 7) is 100 at all 81 wavelengths.
24.488 27.179 29.871 39.589 49.308 52.910 56.513 58.273 60.034 58.926 57.818
66.321 74.825 81.036 87.247 88.930 90.612 90.990 91.368 93.238 95.109 93.536
91.963 93.843 95.724 96.169 96.613 96.871 97.129 99.614 102.099 101.427 100.755
101.536 102.317 101.159 100.000 98.868 97.735 98.327 98.918 96.208 93.499
95.593 97.688 98.478 99.269 99.155 99.042 97.382 95.722 97.290 98.857 97.262
95.667 96.929 98.190 100.597 103.003 101.068 99.133 93.257 87.381 89.492 91.604
92.246 92.889 84.872 76.854 81.683 86.511 89.546 92.580 85.405 78.230 67.961
57.692 70.307 82.923 80.599 78.27449.975500 52.311800 54.648200 68.701500 82.754900 87.120400 91.486000
92.458900 93.431800 90.057000 86.682300 95.773600 104.865000 110.936000
117.008000 117.410000 117.812000 116.336000 114.861000 115.392000
115.923000 112.367000 108.811000 109.082000 109.354000 108.578000
107.802000 106.296000 104.790000 106.239000 107.689000 106.047000
104.405000 104.225000 104.046000 102.023000 100.000000 98.167100
96.334200 96.061100 95.788000 92.236800 88.685600 89.345900 90.006200
89.802600 89.599100 88.648900 87.698700 85.493600 83.288600 83.493900
83.699200 81.863000 80.026800 80.120700 80.214600 81.246200 82.277800
80.281000 78.284200 74.002700 69.721300 70.665200 71.609100 72.979000
74.349000 67.976500 61.604000 65.744800 69.885600 72.486300 75.087000
69.339800 63.592700 55.005400 46.418200 56.611800 66.805400 65.094100
63.38280092.424314 92.694368 92.964422 111.383899 129.803377 135.801152
141.798926 141.447583 141.096240 133.975439 126.854638 135.602812
144.350987 149.960021 155.569056 154.184112 152.799168 148.783207
144.767246 143.338753 141.910261 136.139746 130.369231 128.545220
126.721209 124.329813 121.938418 117.937629 113.936841 114.043847
114.150853 111.519464 108.888075 107.474441 106.060808 103.030404
100.000000 97.314129 94.628259 93.347855 92.067450 88.659570 85.251689
84.758623 84.265557 83.380599 82.495642 80.837162 79.178681 76.519588
73.860495 73.447089 73.033684 71.360089 69.686495 69.189247 68.692000
68.742482 68.792965 67.049716 65.306467 61.725711 58.144955 58.497707
58.850460 60.339599 61.828738 56.573774 51.318811 54.969052 58.619293
60.929241 63.239189 58.464199 53.689209 46.273925 38.858642 47.398674
55.938706 54.609104 53.2795029.795100 10.899600 12.085300 13.354300 14.708000 16.148000 17.675300
19.290700 20.995000 22.788300 24.670900 26.642500 28.702700 30.850800
33.085900 35.406800 37.812100 40.300200 42.869300 45.517400 48.242300
51.041800 53.913200 56.853900 59.861100 62.932000 66.063500 69.252500
72.495900 75.790300 79.132600 82.519300 85.947000 89.412400 92.912000
96.442300 100.000000 103.582000 107.184000 110.803000 114.436000
118.080000 121.731000 125.386000 129.043000 132.697000 136.346000
139.988000 143.618000 147.235000 150.836000 154.418000 157.979000
161.516000 165.028000 168.510000 171.963000 175.383000 178.769000
182.118000 185.429000 188.701000 191.931000 195.118000 198.261000
201.359000 204.409000 207.411000 210.365000 213.268000 216.120000
218.920000 221.667000 224.361000 227.000000 229.585000 232.115000
234.589000 237.008000 239.370000 241.675000gbd gamutBoundaryDescriptionType
| Offset | Size | Field |
|---|---|---|
| 8 | 2 | PCS channels P (three or more) |
| 10 | 2 | Device channels Q (or 0) |
| 12 | 4 | Vertices V (four or more) |
| 16 | 4 | Faces F (four or more) |
| 20 | 12F | Three vertex IDs (uInt32, 0 to V − 1) for each triangular face, clockwise from outside |
| 20 + 12F | 4VP | The PCS value of each vertex, float32 |
| 20 + 12F + 4VP | 4VQ | The device value of each vertex, float32 |
The faces should enclose a volume; Euler’s formula (V − E + F = 2) checks it, and the explorer does.
ehim embeddedHeightImageType and enim embeddedNormalImageType
Bytes 8 to 11: 1 if the image tiles without seams. 12 to 15: the image format, 0 PNG or 1 TIFF. A height image then has the heights in metres of the minimum and maximum pixel values (float32, bytes 16 and 20) and its data from byte 24; a normal image has its data from byte 16. The image is a whole PNG or TIFF file: greyscale heights, or RGB normals with red and green mapping to −1.0 to 1.0 for X and Y and blue to 0.0 to 1.0 for Z. Its physical size comes from the image file (pHYs, or the TIFF resolution tags). The explorer offers the image as a file to open.
Processing elements
Every element starts with its signature, four bytes that are reserved (for clut,
xclt, eclt and rclt, three reserved bytes and an interpolationHintType
in byte 7; in ICC.1 the clut element’s four bytes are all reserved), the number of
inputs P and outputs Q. Offsets inside an element count from its start.
calc calculatorElement
| Offset | Size | Field |
|---|---|---|
| 12 | 2 | Reserved, zero |
| 14 | 2 | Number of sub-elements E |
| 16 | 8 | Position of the main function |
| 24 | 8E | Positions of the sub-elements (any processing elements, shared or not overlapping) |
| 24 + 8E | 28 | Optional limits: clmt, 4 reserved bytes, maximum stack size, maximum temporary channels, maximum operations (0 for no limit), 8 reserved bytes |
| … | … | The main function and the sub-elements, with no gaps but alignment padding |
The main function is func, 4 reserved bytes, the number of operations, then the
operations, 8 bytes each: a signature and 4 bytes of data. They run in reverse Polish order on a stack
of float32 values, with input, output and temporary channels (up to 65535 each; temporaries start at
zero). The data depends on the kind of operation:
| Kind | Data | Operations |
|---|---|---|
| Constant | float32 | data push the value |
| Channel | start S, extra count T (uInt16 each) | in push inputs S to S+T; out pop into outputs; tget push temporaries; tput pop into temporaries; tsav copy into temporaries leaving the stack |
| Environment | a signature | env push a CMM environment variable and 1 if supported (or 0, 0); true and ndef always answer 1, 1 and 0, 0 |
| Sub-element | index S, 2 reserved bytes | curv mtx clut calc tint tJab fJab apply sub-element S of that kind; elem of any kind |
| Stack | S, T | copy duplicate the top S+1 values T+1 times; rotl rotr rotate them; posd duplicate the value S down; flip reverse; pop remove |
| Matrix | last row S, last column T | solv solve y = Ax (pushes x and 1 on success, zeros and 0 on failure); tran transpose |
| Sequence | extra count S | sum prod min max of S+2 values; and or (true is ≥ 0.5) |
| Function | last index S | noop scnt pi +INF -INF NaN; add sub mul div mod pow on vectors of S+1; gama sadd ssub smul sdiv with a scalar; sq sqrt cb cbrt abs neg rond flor ceil trnc exp log ln not sin cos tan asin acos atan atn2 ctop ptoc rnum; comparisons lt le eq near ge gt; vmin vmax vand vor vxor; tLab tXYZ |
| Conditional | number of operations (uInt32) | if runs its operations when the popped value is ≥ 0.5 or NaN, else the immediately following else’s; sel pops a value, rounds it and runs that case, or dflt when out of range. The if/else and sel/case/dflt headers come first, then their operation streams in order |
Before running, a CMM checks every operation, channel index and stack depth. The explorer lists the program, names every operation and checks that sub-element indices exist.
Curve sets: segment formulas, sngf and clcf
In a segmented curve (curf) iccMAX adds five formula types to the three of ICC.1 (ICC.2
Table 111). The parameters are float32Numbers in the order listed:
| Type | Parameters | Function |
|---|---|---|
| 0 | γ, a, b, c | Y = (aX + b)γ + c |
| 1 | γ, a, b, c, d | Y = a·log10(b·Xγ + c) + d |
| 2 | a, b, c, d, e | Y = a·bcX + d + e |
| 3 | γ, a, b, c, d | Y = a·(bX + c)γ + d |
| 4 | γ, a, b, c, d | Y = a·ln(d·Xγ − b) + c |
| 5 | γ, a, b, c, d, e | Y = e·exp((d·Xγ − c)/a) + b |
| 6 | ω, γ, a, b, c, d, e | Y = d·(max(e·Xγ − a, 0)/(b − c·Xγ))ω |
| 7 | ω, γ, a, b, c, d | Y = d·((a + b·Xγ)/(1 + c·Xγ))ω |
Table 111 gives type 6 a field length of 24 bytes but lists seven parameters (28 bytes); the explorer reads the seven parameters listed. Types 3 to 7 are not in ICC.1, where only 0 to 2 are allowed.
A cvst curve may also be a single sampled curve or a sampled calculator curve:
sngf: 4 reserved bytes, the number of samples N (at least 2), the inputs of the first and last samples F and L (float32, F < L), the extension outside F to L (0 clip, 1 extrapolate from the end samples), a valueEncodingType (uInt16), then the samples, interpolated linearly.clcf: 4 reserved bytes, the recommended number of samples R (at least 2), the start S and end E (float32), the extension type (uInt16), 2 reserved bytes, then a calculatorElement of one input and one output, sampled R times from S to E to fill a table.
xclt extendedCLUTElement
A valueEncodingType (uInt32, byte 12), 16 bytes of grid sizes (P used, 1 to 16 inputs), then the grid, each point Q values in that encoding.
eclt emissionCLUTElement and rclt reflectanceCLUTElement
A CLUT whose grid points are spectra, converted to colorimetry with the observer of the profile
connection conditions before interpolating; Q is 3. eclt: a spectralRange (S steps), a
valueEncodingType (uInt16), 16 grid sizes, the grid of S values a point, then the white emission
spectrum. rclt: flags (4 bytes), then the same fields with reflectance spectra and the
white reflectance, normalised for relative colorimetry.
emtx emissionMatrixElement and iemx inverseEmissionMatrixElement
A spectralRange (S steps), an absolute flag (reserved in iemx), the white emission
spectrum (S float32), then one emission spectrum for each primary and one for the offset, S float32
each. The spectra are turned into a 3 × 3 matrix and offset with the observer; iemx
applies the inverse.
eobs emissionObserverElement and robs reflectanceObserverElement
A spectralRange, an absolute flag and the white spectrum: they turn emission or reflectance spectra arriving on the inputs into XYZ (Q is 3).
smet sparseMatrixElement
A sparseMatrixEncodingType (uInt16), 2 reserved bytes, 16 grid sizes, then a sparse matrix (in the layout above) for each grid point; Q is the number of equivalent outputs.
tint tintArrayElement
One input. A valueEncodingType (uInt32), 4 reserved bytes, then the tint array: Q values for each of at least two tints, evenly spaced from 0.0 to 1.0, interpolated linearly and clipped outside.
tmap toneMapElement
Q is P − 1. The position of the luminance curve (a sngf, clcf or
curf) applied to the last input, then Q positions of mapping functions:
mapf, 4 reserved bytes, a function type (uInt16, 0 is Y = a·M·(X + b) + c with M the mapped
luminance), 2 reserved bytes and its float32 parameters.
JtoX JabToXYZElement and XtoJ XYZToJabElement
Colour appearance conversions with eight float32 viewing parameters: the white point X, Y, Z, the luminance (cd/m²), the background luminance (cd/m²), the impact of the surround (0.0 to 1.0), the chromatic induction factor and the adaptation factor.