Debian Codegraph @

icc/todo.txt

raw
1
2 Notes on changes needed for V4.2 (OLD - outdated by icclib V3.0)
3
4 --------------------------------------------
5 Spec name/version/file version relationship.
6 This is more complicated that it really should be:
7
8 Spec. Name Spec. Version File Version
9 ---------- ------------- ------------
10 ICC.1:2004-10 4.2 4.2.0 <-- target icclib4
11 ICC.1:2003-09 4.1 4.1.0
12 ICC.1:2001-12 4.0 4.0.0
13 ICC.1:2001-04 (3.7?) 2.4.0
14 ICC.1A:1999-04 (3.6?) 2.3.0
15 ICC.1:1998-09 (3.5?) 2.2.0
16 (Version 3.4) 3.4 2.1.0 (a) <-- current icclib
17 (Version 3.3) 3.3 2.1.0
18 (Version 3.2) 3.2 2.0.0 (b)
19 (Version 3.01) 3.01 2.0.0 (a)
20 (Version 3.0) 3.0 2.0.0
21
22 -----------------------------
23 There are other changes from V2.1 in later versions,
24 such as:
25
26 2.3.0
27 Chromaticity Tag added
28
29 2.4.0
30 Lut tables now allowed for monochrome
31
32 Added chromaticAdaptationTag
33
34 Input, Display, Output and Colorspace LUT profiles
35 now support all 3 intents.
36
37 Can this be made backwards compatible without
38 messing about with specific code for other versions ??
39
40 This doesn't seem possible. The profile generator code and icclib
41 would seem to need to know which version they were generating,
42 for assured backwards compatibility with other CMMs.
43 -----------------------------
44 Should add "guess ink limit" support to ease gamut finding
45 from profiles. (Implemented in xicc at the moment) ?
46 -----------------------------
47
48 Add usage of #def icVersionNumberV41 when "V4" flag is active.
49
50 Tags needed since V2.1
51
52 icSigChromaticAdaptationTag = 0x63686164L, /* 'chad' V2.4+ */
53 icSigChromaticityTag = 0x6368726DL, /* 'chrm' V2.3+ */
54 icSigColorantOrderTag = 0x636C726FL, /* 'clro' V4.0+ */
55 icSigColorantTableTag = 0x636C7274L, /* 'clrt' V4.0+ */
56 icSigColorantTableOutTag = 0x636C6F74L, /* 'clot' V4.0+ */
57 icSigDeviceSettingsTag = 0x64657673L, /* 'devs' V2.2 - V4.0 */
58 icSigOutputResponseTag = 0x72657370L, /* 'resp' V2.2+ */
59
60
61 Tag types needed since V2.1
62
63 icSigDeviceSettingsType = 0x64657673L, /* 'devs' V2.2 - V4.0 */
64 icSigChromaticityTag = 0x6368726DL, /* 'chrm' V2.3+ */
65 icSigColorantOrderType = 0x636C726FL, /* 'clro' V4.0+ */
66 icSigColorantTableType = 0x636C7274L, /* 'clrt' V4.0+ */
67 icSigLutAtoBType = 0x6d414220L, /* 'mAB ' V4.0+ */
68 icSigLutBtoAType = 0x6d424120L, /* 'mBA ' V4.0+ */
69 icSigMultiLocalizedUnicodeType = 0x6D6C7563L, /* 'mluc' V4.0+ */
70 icSigParametricCurveType = 0x70617261L, /* 'para' V4.0+ */
71 icSigResponseCurveSet16Type = 0x72637332L, /* 'rcs2' V2.2 - V4.0 */
72
73 Stuff to deal with in implementing ICCV4:
74 -------------------
75
76 Make sure DLL/SO version is compilable ??
77
78 Add V4 flag in main icc struct (DONE), and some way of setting it before tags
79 are added.
80
81 Date & time being UTC.
82 - add flag when setting ?
83 - display both when dumping ?
84 - have both in structure when reading ?
85 - or simply not handle this ??
86
87 Check all padding is zero during writing - DONE
88
89 Implement MD5 generation on profile writing - DONE
90 Implement MD5 check method on read profile ?
91 Cross check MD5 against external V4 profiles. Cross check with cygwin md5sum!
92
93 Colorant table tag needed in V4 for xCLR devices.
94 colorantTableTag requirement for xCLR device link profiles.
95
96 Add check that tags are unique within a profile ?
97
98 Configure conformance to run as V4.2 or V2.4 on writing, and accept V4.X or V2.X on
99 reading. Don't try and implement detailed minor version behaviour.
100
101 Have some sort of table to embody valid tags and tag types within the two major
102 version numbers (2 & 4) ??
103
104 Check that non A2B0 and B2A0 intents are allowed for Input, Display & Colorspace
105 profiles ??
106
107 V4 mandates a chromatic adaptation tag for any profile that requires a white point
108 tag & not D50. Add to V4 check, & generate chromatic adaptation tag for V2 & V4
109 creation (method ?). Need to carefully read spec. to understand what chromatic
110 adaptation tag is meant to represent.
111 Implement absolute<->PCS object to represent functionality of chramatic adaptation,
112 analogous to conversion object.
113
114
115 Check mono profile black and white interpretation.
116
117
118 Matrix/shaper in V4 has clipping requirements. Should these be honoured ??
119 Maybe make this optional via a run time flag ?
120 May be best to have multiple conformance flags (Absolute Intent etc. ?)
121
122 Check icclink set header rendering intents correctly for device links.
123
124 Implemenmt parametric curve type as extra icmCurveStyle(s), and use icmCurve object to
125 do the work.
126
127
128 Implement MultiLocalizedUnicodeType as overload of icmTextDescription, or new tagtype ??
129 [ Create common class having plain ASCII that TextDescription and MultiLocalizedUnicode
130 inheret from. ]
131
132 - - - - -
133 Implement icSigLutAtoBType and icSigLutBtoAType as overloads of icmLut ??
134 If so, add new icmLuAlgType types for AtoB and BtoA conversions (NO - more complicated)
135
136 - OR -
137
138 switch to single superset Lut type ?? (YES - best solution) :-
139
140 Should a more extensive general model be considered, as a superset of V4 ?? (YES)
141
142 pcs/abs -> Curves -> matrix -> curves -> lut -> curves -> matrix -> curves -> pcs/abs
143
144 [ or asymetric ??: (NO)
145
146 pcs->curves->lut->3x3+3matrix->curves->pcs/abs (dev->PCS, PCS->PCS, dev->dev)
147 pcs/abs->curves->3x3+3matrix->curves->lut->curves (PCS->dev) ]
148
149 Could use this as universal transform method, even for matrix profiles (don't use old style
150 matrix/shaper or LUT at all internaly ?) (YES - need to accomodate V2 & V4 though).
151
152 Add new methods to setup the transform stages, with current set mathods implemented
153 as backwards compatible ? Have multiple methods rather than a single "set" ?
154 ( - how are ranges determined in latter case ?)
155
156 Finish support for generic 3 stage conversion view (input per chan, cross chan, output per chan.),
157 and support this in icclib4.
158
159 Use bit flags to indicate which stages are valid.
160 Flags effectively replace "algorithm" flag.
161 Flag combination set determines how transform can be represented by a profile
162 (Mono, Matrix, V2Lut, V4Lut etc.).
163
164 Have flags for "separable" (i.e. channel independent) and
165 "reversable".
166
167 Support implementing a universal transform both forwards and
168 backwards from a given set of ICC tags (backwards won't be
169 valid for some tags, ie. Lut).
170
171 lookup object acts as ideal abstract above exact tag representation within
172 a profile. Use this model for other aspects of ICC profiles.
173 Extend to simplify xicc/icc relationship - make xicc a true inheriting
174 class, and add whatever hooks are needed into icclib4 to make this work.
175 ICC tags -> luo -> transform
176 ICC tags <- luo <- Set transform
177
178 What impact does this have on memory usage though ?
179 - Makes sure transform is completely independent of
180 tags or profile after setting up, so that tags and/or
181 profile can be released. [ Use reference counting ? ]
182
183 - - - - - -
184
185 Split icc.c into 3 levels:
186
187 1 Basic support (I/O, primitives)
188 Toolkit for buiding ICC like file formats, but not
189 specic to the actual ICC file. Can be used to
190 create custom tags, and custom ICC like files (e.g. calibration)
191
192 2 Specific to ICC format, tags etc.
193
194 3 ICC color transform objects etc.
195 Allow for inheretance, so that xicc can be implemented
196 much more elegantly.
197