@revizly/sharp-libvips-dev 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (679) hide show
  1. package/README.md +47 -0
  2. package/cplusplus/VConnection.cpp +151 -0
  3. package/cplusplus/VError.cpp +51 -0
  4. package/cplusplus/VImage.cpp +1595 -0
  5. package/cplusplus/VInterpolate.cpp +62 -0
  6. package/cplusplus/VRegion.cpp +27 -0
  7. package/cplusplus/index.js +1 -0
  8. package/cplusplus/vips-operators.cpp +3785 -0
  9. package/include/aom/aom.h +127 -0
  10. package/include/aom/aom_codec.h +577 -0
  11. package/include/aom/aom_decoder.h +257 -0
  12. package/include/aom/aom_encoder.h +1144 -0
  13. package/include/aom/aom_external_partition.h +452 -0
  14. package/include/aom/aom_frame_buffer.h +84 -0
  15. package/include/aom/aom_image.h +448 -0
  16. package/include/aom/aom_integer.h +68 -0
  17. package/include/aom/aomcx.h +2190 -0
  18. package/include/aom/aomdx.h +604 -0
  19. package/include/archive.h +1212 -0
  20. package/include/archive_entry.h +723 -0
  21. package/include/cairo/cairo-deprecated.h +123 -0
  22. package/include/cairo/cairo-features.h +29 -0
  23. package/include/cairo/cairo-ft.h +118 -0
  24. package/include/cairo/cairo-gobject.h +200 -0
  25. package/include/cairo/cairo-svg.h +130 -0
  26. package/include/cairo/cairo-version.h +8 -0
  27. package/include/cairo/cairo.h +3348 -0
  28. package/include/cgif.h +80 -0
  29. package/include/expat.h +1064 -0
  30. package/include/expat_config.h +140 -0
  31. package/include/expat_external.h +165 -0
  32. package/include/ffi.h +531 -0
  33. package/include/ffitarget.h +164 -0
  34. package/include/fontconfig/fcfreetype.h +59 -0
  35. package/include/fontconfig/fcprivate.h +134 -0
  36. package/include/fontconfig/fontconfig.h +1160 -0
  37. package/include/freetype2/freetype/config/ftconfig.h +51 -0
  38. package/include/freetype2/freetype/config/ftheader.h +836 -0
  39. package/include/freetype2/freetype/config/ftmodule.h +21 -0
  40. package/include/freetype2/freetype/config/ftoption.h +1014 -0
  41. package/include/freetype2/freetype/config/ftstdlib.h +185 -0
  42. package/include/freetype2/freetype/config/integer-types.h +250 -0
  43. package/include/freetype2/freetype/config/mac-support.h +49 -0
  44. package/include/freetype2/freetype/config/public-macros.h +138 -0
  45. package/include/freetype2/freetype/freetype.h +5337 -0
  46. package/include/freetype2/freetype/ftadvanc.h +188 -0
  47. package/include/freetype2/freetype/ftbbox.h +101 -0
  48. package/include/freetype2/freetype/ftbdf.h +212 -0
  49. package/include/freetype2/freetype/ftbitmap.h +329 -0
  50. package/include/freetype2/freetype/ftbzip2.h +102 -0
  51. package/include/freetype2/freetype/ftcache.h +1087 -0
  52. package/include/freetype2/freetype/ftchapters.h +168 -0
  53. package/include/freetype2/freetype/ftcid.h +167 -0
  54. package/include/freetype2/freetype/ftcolor.h +1667 -0
  55. package/include/freetype2/freetype/ftdriver.h +1246 -0
  56. package/include/freetype2/freetype/fterrdef.h +283 -0
  57. package/include/freetype2/freetype/fterrors.h +296 -0
  58. package/include/freetype2/freetype/ftfntfmt.h +93 -0
  59. package/include/freetype2/freetype/ftgasp.h +143 -0
  60. package/include/freetype2/freetype/ftglyph.h +750 -0
  61. package/include/freetype2/freetype/ftgxval.h +354 -0
  62. package/include/freetype2/freetype/ftgzip.h +151 -0
  63. package/include/freetype2/freetype/ftimage.h +1284 -0
  64. package/include/freetype2/freetype/ftincrem.h +348 -0
  65. package/include/freetype2/freetype/ftlcdfil.h +323 -0
  66. package/include/freetype2/freetype/ftlist.h +296 -0
  67. package/include/freetype2/freetype/ftlzw.h +100 -0
  68. package/include/freetype2/freetype/ftmac.h +289 -0
  69. package/include/freetype2/freetype/ftmm.h +805 -0
  70. package/include/freetype2/freetype/ftmodapi.h +807 -0
  71. package/include/freetype2/freetype/ftmoderr.h +204 -0
  72. package/include/freetype2/freetype/ftotval.h +206 -0
  73. package/include/freetype2/freetype/ftoutln.h +588 -0
  74. package/include/freetype2/freetype/ftparams.h +218 -0
  75. package/include/freetype2/freetype/ftpfr.h +179 -0
  76. package/include/freetype2/freetype/ftrender.h +244 -0
  77. package/include/freetype2/freetype/ftsizes.h +159 -0
  78. package/include/freetype2/freetype/ftsnames.h +272 -0
  79. package/include/freetype2/freetype/ftstroke.h +773 -0
  80. package/include/freetype2/freetype/ftsynth.h +104 -0
  81. package/include/freetype2/freetype/ftsystem.h +350 -0
  82. package/include/freetype2/freetype/fttrigon.h +350 -0
  83. package/include/freetype2/freetype/fttypes.h +617 -0
  84. package/include/freetype2/freetype/ftwinfnt.h +276 -0
  85. package/include/freetype2/freetype/otsvg.h +336 -0
  86. package/include/freetype2/freetype/t1tables.h +793 -0
  87. package/include/freetype2/freetype/ttnameid.h +1235 -0
  88. package/include/freetype2/freetype/tttables.h +855 -0
  89. package/include/freetype2/freetype/tttags.h +124 -0
  90. package/include/freetype2/ft2build.h +42 -0
  91. package/include/fribidi/fribidi-arabic.h +81 -0
  92. package/include/fribidi/fribidi-begindecls.h +3 -0
  93. package/include/fribidi/fribidi-bidi-types-list.h +96 -0
  94. package/include/fribidi/fribidi-bidi-types.h +405 -0
  95. package/include/fribidi/fribidi-bidi.h +142 -0
  96. package/include/fribidi/fribidi-brackets.h +89 -0
  97. package/include/fribidi/fribidi-char-sets-list.h +54 -0
  98. package/include/fribidi/fribidi-char-sets.h +106 -0
  99. package/include/fribidi/fribidi-common.h +152 -0
  100. package/include/fribidi/fribidi-config.h +23 -0
  101. package/include/fribidi/fribidi-deprecated.h +175 -0
  102. package/include/fribidi/fribidi-enddecls.h +3 -0
  103. package/include/fribidi/fribidi-flags.h +72 -0
  104. package/include/fribidi/fribidi-joining-types-list.h +44 -0
  105. package/include/fribidi/fribidi-joining-types.h +249 -0
  106. package/include/fribidi/fribidi-joining.h +74 -0
  107. package/include/fribidi/fribidi-mirroring.h +86 -0
  108. package/include/fribidi/fribidi-shape.h +71 -0
  109. package/include/fribidi/fribidi-types.h +79 -0
  110. package/include/fribidi/fribidi-unicode-version.h +10 -0
  111. package/include/fribidi/fribidi-unicode.h +105 -0
  112. package/include/fribidi/fribidi.h +129 -0
  113. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +221 -0
  114. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +37 -0
  115. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +525 -0
  116. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +40 -0
  117. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +115 -0
  118. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +481 -0
  119. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +113 -0
  120. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +718 -0
  121. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +33 -0
  122. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +70 -0
  123. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +168 -0
  124. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +46 -0
  125. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +165 -0
  126. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +200 -0
  127. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +62 -0
  128. package/include/gio-unix-2.0/gio/gunixfdmessage.h +86 -0
  129. package/include/gio-unix-2.0/gio/gunixinputstream.h +80 -0
  130. package/include/gio-unix-2.0/gio/gunixmounts.h +172 -0
  131. package/include/gio-unix-2.0/gio/gunixoutputstream.h +79 -0
  132. package/include/glib-2.0/gio/gaction.h +100 -0
  133. package/include/glib-2.0/gio/gactiongroup.h +163 -0
  134. package/include/glib-2.0/gio/gactiongroupexporter.h +47 -0
  135. package/include/glib-2.0/gio/gactionmap.h +101 -0
  136. package/include/glib-2.0/gio/gappinfo.h +362 -0
  137. package/include/glib-2.0/gio/gapplication.h +257 -0
  138. package/include/glib-2.0/gio/gapplicationcommandline.h +135 -0
  139. package/include/glib-2.0/gio/gasyncinitable.h +125 -0
  140. package/include/glib-2.0/gio/gasyncresult.h +81 -0
  141. package/include/glib-2.0/gio/gbufferedinputstream.h +130 -0
  142. package/include/glib-2.0/gio/gbufferedoutputstream.h +83 -0
  143. package/include/glib-2.0/gio/gbytesicon.h +49 -0
  144. package/include/glib-2.0/gio/gcancellable.h +115 -0
  145. package/include/glib-2.0/gio/gcharsetconverter.h +65 -0
  146. package/include/glib-2.0/gio/gcontenttype.h +84 -0
  147. package/include/glib-2.0/gio/gconverter.h +91 -0
  148. package/include/glib-2.0/gio/gconverterinputstream.h +76 -0
  149. package/include/glib-2.0/gio/gconverteroutputstream.h +76 -0
  150. package/include/glib-2.0/gio/gcredentials.h +87 -0
  151. package/include/glib-2.0/gio/gdatagrambased.h +139 -0
  152. package/include/glib-2.0/gio/gdatainputstream.h +176 -0
  153. package/include/glib-2.0/gio/gdataoutputstream.h +121 -0
  154. package/include/glib-2.0/gio/gdbusactiongroup.h +56 -0
  155. package/include/glib-2.0/gio/gdbusaddress.h +67 -0
  156. package/include/glib-2.0/gio/gdbusauthobserver.h +53 -0
  157. package/include/glib-2.0/gio/gdbusconnection.h +691 -0
  158. package/include/glib-2.0/gio/gdbuserror.h +111 -0
  159. package/include/glib-2.0/gio/gdbusinterface.h +75 -0
  160. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +121 -0
  161. package/include/glib-2.0/gio/gdbusintrospection.h +327 -0
  162. package/include/glib-2.0/gio/gdbusmenumodel.h +47 -0
  163. package/include/glib-2.0/gio/gdbusmessage.h +205 -0
  164. package/include/glib-2.0/gio/gdbusmethodinvocation.h +136 -0
  165. package/include/glib-2.0/gio/gdbusnameowning.h +117 -0
  166. package/include/glib-2.0/gio/gdbusnamewatching.h +104 -0
  167. package/include/glib-2.0/gio/gdbusobject.h +80 -0
  168. package/include/glib-2.0/gio/gdbusobjectmanager.h +96 -0
  169. package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +140 -0
  170. package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +87 -0
  171. package/include/glib-2.0/gio/gdbusobjectproxy.h +73 -0
  172. package/include/glib-2.0/gio/gdbusobjectskeleton.h +90 -0
  173. package/include/glib-2.0/gio/gdbusproxy.h +212 -0
  174. package/include/glib-2.0/gio/gdbusserver.h +62 -0
  175. package/include/glib-2.0/gio/gdbusutils.h +65 -0
  176. package/include/glib-2.0/gio/gdebugcontroller.h +73 -0
  177. package/include/glib-2.0/gio/gdebugcontrollerdbus.h +64 -0
  178. package/include/glib-2.0/gio/gdrive.h +274 -0
  179. package/include/glib-2.0/gio/gdtlsclientconnection.h +77 -0
  180. package/include/glib-2.0/gio/gdtlsconnection.h +230 -0
  181. package/include/glib-2.0/gio/gdtlsserverconnection.h +63 -0
  182. package/include/glib-2.0/gio/gemblem.h +58 -0
  183. package/include/glib-2.0/gio/gemblemedicon.h +78 -0
  184. package/include/glib-2.0/gio/gfile.h +1349 -0
  185. package/include/glib-2.0/gio/gfileattribute.h +86 -0
  186. package/include/glib-2.0/gio/gfileenumerator.h +149 -0
  187. package/include/glib-2.0/gio/gfileicon.h +54 -0
  188. package/include/glib-2.0/gio/gfileinfo.h +1541 -0
  189. package/include/glib-2.0/gio/gfileinputstream.h +108 -0
  190. package/include/glib-2.0/gio/gfileiostream.h +115 -0
  191. package/include/glib-2.0/gio/gfilemonitor.h +95 -0
  192. package/include/glib-2.0/gio/gfilenamecompleter.h +76 -0
  193. package/include/glib-2.0/gio/gfileoutputstream.h +116 -0
  194. package/include/glib-2.0/gio/gfilterinputstream.h +75 -0
  195. package/include/glib-2.0/gio/gfilteroutputstream.h +75 -0
  196. package/include/glib-2.0/gio/gicon.h +128 -0
  197. package/include/glib-2.0/gio/ginetaddress.h +125 -0
  198. package/include/glib-2.0/gio/ginetaddressmask.h +86 -0
  199. package/include/glib-2.0/gio/ginetsocketaddress.h +80 -0
  200. package/include/glib-2.0/gio/ginitable.h +100 -0
  201. package/include/glib-2.0/gio/ginputstream.h +213 -0
  202. package/include/glib-2.0/gio/gio-autocleanups.h +159 -0
  203. package/include/glib-2.0/gio/gio-visibility.h +986 -0
  204. package/include/glib-2.0/gio/gio.h +186 -0
  205. package/include/glib-2.0/gio/gioenums.h +2154 -0
  206. package/include/glib-2.0/gio/gioenumtypes.h +207 -0
  207. package/include/glib-2.0/gio/gioerror.h +58 -0
  208. package/include/glib-2.0/gio/giomodule.h +194 -0
  209. package/include/glib-2.0/gio/gioscheduler.h +56 -0
  210. package/include/glib-2.0/gio/giostream.h +132 -0
  211. package/include/glib-2.0/gio/giotypes.h +558 -0
  212. package/include/glib-2.0/gio/glistmodel.h +74 -0
  213. package/include/glib-2.0/gio/gliststore.h +97 -0
  214. package/include/glib-2.0/gio/gloadableicon.h +95 -0
  215. package/include/glib-2.0/gio/gmemoryinputstream.h +87 -0
  216. package/include/glib-2.0/gio/gmemorymonitor.h +64 -0
  217. package/include/glib-2.0/gio/gmemoryoutputstream.h +104 -0
  218. package/include/glib-2.0/gio/gmenu.h +184 -0
  219. package/include/glib-2.0/gio/gmenuexporter.h +55 -0
  220. package/include/glib-2.0/gio/gmenumodel.h +307 -0
  221. package/include/glib-2.0/gio/gmount.h +278 -0
  222. package/include/glib-2.0/gio/gmountoperation.h +173 -0
  223. package/include/glib-2.0/gio/gnativesocketaddress.h +67 -0
  224. package/include/glib-2.0/gio/gnativevolumemonitor.h +63 -0
  225. package/include/glib-2.0/gio/gnetworkaddress.h +82 -0
  226. package/include/glib-2.0/gio/gnetworking.h +85 -0
  227. package/include/glib-2.0/gio/gnetworkmonitor.h +101 -0
  228. package/include/glib-2.0/gio/gnetworkservice.h +77 -0
  229. package/include/glib-2.0/gio/gnotification.h +103 -0
  230. package/include/glib-2.0/gio/goutputstream.h +325 -0
  231. package/include/glib-2.0/gio/gpermission.h +129 -0
  232. package/include/glib-2.0/gio/gpollableinputstream.h +99 -0
  233. package/include/glib-2.0/gio/gpollableoutputstream.h +120 -0
  234. package/include/glib-2.0/gio/gpollableutils.h +66 -0
  235. package/include/glib-2.0/gio/gpowerprofilemonitor.h +65 -0
  236. package/include/glib-2.0/gio/gpropertyaction.h +49 -0
  237. package/include/glib-2.0/gio/gproxy.h +123 -0
  238. package/include/glib-2.0/gio/gproxyaddress.h +88 -0
  239. package/include/glib-2.0/gio/gproxyaddressenumerator.h +75 -0
  240. package/include/glib-2.0/gio/gproxyresolver.h +97 -0
  241. package/include/glib-2.0/gio/gremoteactiongroup.h +77 -0
  242. package/include/glib-2.0/gio/gresolver.h +299 -0
  243. package/include/glib-2.0/gio/gresource.h +132 -0
  244. package/include/glib-2.0/gio/gseekable.h +100 -0
  245. package/include/glib-2.0/gio/gsettings.h +347 -0
  246. package/include/glib-2.0/gio/gsettingsbackend.h +171 -0
  247. package/include/glib-2.0/gio/gsettingsschema.h +115 -0
  248. package/include/glib-2.0/gio/gsimpleaction.h +65 -0
  249. package/include/glib-2.0/gio/gsimpleactiongroup.h +92 -0
  250. package/include/glib-2.0/gio/gsimpleasyncresult.h +159 -0
  251. package/include/glib-2.0/gio/gsimpleiostream.h +47 -0
  252. package/include/glib-2.0/gio/gsimplepermission.h +47 -0
  253. package/include/glib-2.0/gio/gsimpleproxyresolver.h +86 -0
  254. package/include/glib-2.0/gio/gsocket.h +343 -0
  255. package/include/glib-2.0/gio/gsocketaddress.h +84 -0
  256. package/include/glib-2.0/gio/gsocketaddressenumerator.h +97 -0
  257. package/include/glib-2.0/gio/gsocketclient.h +199 -0
  258. package/include/glib-2.0/gio/gsocketconnectable.h +78 -0
  259. package/include/glib-2.0/gio/gsocketconnection.h +117 -0
  260. package/include/glib-2.0/gio/gsocketcontrolmessage.h +113 -0
  261. package/include/glib-2.0/gio/gsocketlistener.h +157 -0
  262. package/include/glib-2.0/gio/gsocketservice.h +95 -0
  263. package/include/glib-2.0/gio/gsrvtarget.h +60 -0
  264. package/include/glib-2.0/gio/gsubprocess.h +169 -0
  265. package/include/glib-2.0/gio/gsubprocesslauncher.h +121 -0
  266. package/include/glib-2.0/gio/gtask.h +219 -0
  267. package/include/glib-2.0/gio/gtcpconnection.h +71 -0
  268. package/include/glib-2.0/gio/gtcpwrapperconnection.h +71 -0
  269. package/include/glib-2.0/gio/gtestdbus.h +74 -0
  270. package/include/glib-2.0/gio/gthemedicon.h +65 -0
  271. package/include/glib-2.0/gio/gthreadedsocketservice.h +83 -0
  272. package/include/glib-2.0/gio/gtlsbackend.h +115 -0
  273. package/include/glib-2.0/gio/gtlscertificate.h +125 -0
  274. package/include/glib-2.0/gio/gtlsclientconnection.h +88 -0
  275. package/include/glib-2.0/gio/gtlsconnection.h +214 -0
  276. package/include/glib-2.0/gio/gtlsdatabase.h +249 -0
  277. package/include/glib-2.0/gio/gtlsfiledatabase.h +60 -0
  278. package/include/glib-2.0/gio/gtlsinteraction.h +150 -0
  279. package/include/glib-2.0/gio/gtlspassword.h +121 -0
  280. package/include/glib-2.0/gio/gtlsserverconnection.h +63 -0
  281. package/include/glib-2.0/gio/gunixconnection.h +102 -0
  282. package/include/glib-2.0/gio/gunixcredentialsmessage.h +81 -0
  283. package/include/glib-2.0/gio/gunixfdlist.h +97 -0
  284. package/include/glib-2.0/gio/gunixsocketaddress.h +83 -0
  285. package/include/glib-2.0/gio/gvfs.h +165 -0
  286. package/include/glib-2.0/gio/gvolume.h +255 -0
  287. package/include/glib-2.0/gio/gvolumemonitor.h +151 -0
  288. package/include/glib-2.0/gio/gzlibcompressor.h +64 -0
  289. package/include/glib-2.0/gio/gzlibdecompressor.h +60 -0
  290. package/include/glib-2.0/girepository/gi-visibility.h +986 -0
  291. package/include/glib-2.0/girepository/giarginfo.h +83 -0
  292. package/include/glib-2.0/girepository/gibaseinfo.h +103 -0
  293. package/include/glib-2.0/girepository/gicallableinfo.h +109 -0
  294. package/include/glib-2.0/girepository/gicallbackinfo.h +45 -0
  295. package/include/glib-2.0/girepository/giconstantinfo.h +57 -0
  296. package/include/glib-2.0/girepository/gienuminfo.h +83 -0
  297. package/include/glib-2.0/girepository/gifieldinfo.h +69 -0
  298. package/include/glib-2.0/girepository/gifunctioninfo.h +102 -0
  299. package/include/glib-2.0/girepository/giinterfaceinfo.h +105 -0
  300. package/include/glib-2.0/girepository/giobjectinfo.h +215 -0
  301. package/include/glib-2.0/girepository/gipropertyinfo.h +62 -0
  302. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +64 -0
  303. package/include/glib-2.0/girepository/girepository.h +256 -0
  304. package/include/glib-2.0/girepository/girffi.h +128 -0
  305. package/include/glib-2.0/girepository/gisignalinfo.h +57 -0
  306. package/include/glib-2.0/girepository/gistructinfo.h +87 -0
  307. package/include/glib-2.0/girepository/gitypeinfo.h +131 -0
  308. package/include/glib-2.0/girepository/gitypelib.h +65 -0
  309. package/include/glib-2.0/girepository/gitypes.h +473 -0
  310. package/include/glib-2.0/girepository/giunioninfo.h +89 -0
  311. package/include/glib-2.0/girepository/giunresolvedinfo.h +45 -0
  312. package/include/glib-2.0/girepository/givfuncinfo.h +73 -0
  313. package/include/glib-2.0/glib/deprecated/gallocator.h +88 -0
  314. package/include/glib-2.0/glib/deprecated/gcache.h +77 -0
  315. package/include/glib-2.0/glib/deprecated/gcompletion.h +85 -0
  316. package/include/glib-2.0/glib/deprecated/gmain.h +137 -0
  317. package/include/glib-2.0/glib/deprecated/grel.h +84 -0
  318. package/include/glib-2.0/glib/deprecated/gthread.h +295 -0
  319. package/include/glib-2.0/glib/galloca.h +147 -0
  320. package/include/glib-2.0/glib/garray.h +323 -0
  321. package/include/glib-2.0/glib/gasyncqueue.h +126 -0
  322. package/include/glib-2.0/glib/gatomic.h +587 -0
  323. package/include/glib-2.0/glib/gbacktrace.h +74 -0
  324. package/include/glib-2.0/glib/gbase64.h +63 -0
  325. package/include/glib-2.0/glib/gbitlock.h +78 -0
  326. package/include/glib-2.0/glib/gbookmarkfile.h +338 -0
  327. package/include/glib-2.0/glib/gbytes.h +99 -0
  328. package/include/glib-2.0/glib/gcharset.h +49 -0
  329. package/include/glib-2.0/glib/gchecksum.h +96 -0
  330. package/include/glib-2.0/glib/gconvert.h +179 -0
  331. package/include/glib-2.0/glib/gdataset.h +156 -0
  332. package/include/glib-2.0/glib/gdate.h +300 -0
  333. package/include/glib-2.0/glib/gdatetime.h +307 -0
  334. package/include/glib-2.0/glib/gdir.h +59 -0
  335. package/include/glib-2.0/glib/genviron.h +65 -0
  336. package/include/glib-2.0/glib/gerror.h +263 -0
  337. package/include/glib-2.0/glib/gfileutils.h +223 -0
  338. package/include/glib-2.0/glib/ggettext.h +65 -0
  339. package/include/glib-2.0/glib/ghash.h +206 -0
  340. package/include/glib-2.0/glib/ghmac.h +76 -0
  341. package/include/glib-2.0/glib/ghook.h +204 -0
  342. package/include/glib-2.0/glib/ghostutils.h +45 -0
  343. package/include/glib-2.0/glib/gi18n-lib.h +38 -0
  344. package/include/glib-2.0/glib/gi18n.h +34 -0
  345. package/include/glib-2.0/glib/giochannel.h +407 -0
  346. package/include/glib-2.0/glib/gkeyfile.h +332 -0
  347. package/include/glib-2.0/glib/glib-autocleanups.h +109 -0
  348. package/include/glib-2.0/glib/glib-typeof.h +47 -0
  349. package/include/glib-2.0/glib/glib-visibility.h +986 -0
  350. package/include/glib-2.0/glib/glist.h +179 -0
  351. package/include/glib-2.0/glib/gmacros.h +1426 -0
  352. package/include/glib-2.0/glib/gmain.h +862 -0
  353. package/include/glib-2.0/glib/gmappedfile.h +60 -0
  354. package/include/glib-2.0/glib/gmarkup.h +265 -0
  355. package/include/glib-2.0/glib/gmem.h +425 -0
  356. package/include/glib-2.0/glib/gmessages.h +693 -0
  357. package/include/glib-2.0/glib/gnode.h +309 -0
  358. package/include/glib-2.0/glib/goption.h +409 -0
  359. package/include/glib-2.0/glib/gpathbuf.h +83 -0
  360. package/include/glib-2.0/glib/gpattern.h +65 -0
  361. package/include/glib-2.0/glib/gpoll.h +122 -0
  362. package/include/glib-2.0/glib/gprimes.h +52 -0
  363. package/include/glib-2.0/glib/gprintf.h +59 -0
  364. package/include/glib-2.0/glib/gqsort.h +47 -0
  365. package/include/glib-2.0/glib/gquark.h +70 -0
  366. package/include/glib-2.0/glib/gqueue.h +205 -0
  367. package/include/glib-2.0/glib/grand.h +101 -0
  368. package/include/glib-2.0/glib/grcbox.h +91 -0
  369. package/include/glib-2.0/glib/grefcount.h +179 -0
  370. package/include/glib-2.0/glib/grefstring.h +59 -0
  371. package/include/glib-2.0/glib/gscanner.h +301 -0
  372. package/include/glib-2.0/glib/gsequence.h +175 -0
  373. package/include/glib-2.0/glib/gshell.h +59 -0
  374. package/include/glib-2.0/glib/gslice.h +117 -0
  375. package/include/glib-2.0/glib/gslist.h +166 -0
  376. package/include/glib-2.0/glib/gspawn.h +323 -0
  377. package/include/glib-2.0/glib/gstdio.h +231 -0
  378. package/include/glib-2.0/glib/gstrfuncs.h +504 -0
  379. package/include/glib-2.0/glib/gstring.h +296 -0
  380. package/include/glib-2.0/glib/gstringchunk.h +59 -0
  381. package/include/glib-2.0/glib/gstrvbuilder.h +65 -0
  382. package/include/glib-2.0/glib/gtestutils.h +768 -0
  383. package/include/glib-2.0/glib/gthread.h +628 -0
  384. package/include/glib-2.0/glib/gthreadpool.h +105 -0
  385. package/include/glib-2.0/glib/gtimer.h +80 -0
  386. package/include/glib-2.0/glib/gtimezone.h +98 -0
  387. package/include/glib-2.0/glib/gtrashstack.h +60 -0
  388. package/include/glib-2.0/glib/gtree.h +181 -0
  389. package/include/glib-2.0/glib/gtypes.h +591 -0
  390. package/include/glib-2.0/glib/gunicode.h +984 -0
  391. package/include/glib-2.0/glib/guri.h +420 -0
  392. package/include/glib-2.0/glib/gutils.h +479 -0
  393. package/include/glib-2.0/glib/guuid.h +42 -0
  394. package/include/glib-2.0/glib/gvariant.h +541 -0
  395. package/include/glib-2.0/glib/gvarianttype.h +375 -0
  396. package/include/glib-2.0/glib/gversion.h +57 -0
  397. package/include/glib-2.0/glib/gversionmacros.h +499 -0
  398. package/include/glib-2.0/glib/gwin32.h +142 -0
  399. package/include/glib-2.0/glib-object.h +46 -0
  400. package/include/glib-2.0/glib-unix.h +333 -0
  401. package/include/glib-2.0/glib.h +121 -0
  402. package/include/glib-2.0/gmodule/gmodule-visibility.h +986 -0
  403. package/include/glib-2.0/gmodule.h +147 -0
  404. package/include/glib-2.0/gobject/gbinding.h +148 -0
  405. package/include/glib-2.0/gobject/gbindinggroup.h +77 -0
  406. package/include/glib-2.0/gobject/gboxed.h +124 -0
  407. package/include/glib-2.0/gobject/gclosure.h +315 -0
  408. package/include/glib-2.0/gobject/genums.h +381 -0
  409. package/include/glib-2.0/gobject/glib-enumtypes.h +25 -0
  410. package/include/glib-2.0/gobject/glib-types.h +433 -0
  411. package/include/glib-2.0/gobject/gmarshal.h +434 -0
  412. package/include/glib-2.0/gobject/gobject-autocleanups.h +37 -0
  413. package/include/glib-2.0/gobject/gobject-visibility.h +986 -0
  414. package/include/glib-2.0/gobject/gobject.h +938 -0
  415. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +199 -0
  416. package/include/glib-2.0/gobject/gparam.h +467 -0
  417. package/include/glib-2.0/gobject/gparamspecs.h +1151 -0
  418. package/include/glib-2.0/gobject/gsignal.h +647 -0
  419. package/include/glib-2.0/gobject/gsignalgroup.h +90 -0
  420. package/include/glib-2.0/gobject/gsourceclosure.h +40 -0
  421. package/include/glib-2.0/gobject/gtype.h +2736 -0
  422. package/include/glib-2.0/gobject/gtypemodule.h +295 -0
  423. package/include/glib-2.0/gobject/gtypeplugin.h +130 -0
  424. package/include/glib-2.0/gobject/gvalue.h +212 -0
  425. package/include/glib-2.0/gobject/gvaluearray.h +99 -0
  426. package/include/glib-2.0/gobject/gvaluecollector.h +280 -0
  427. package/include/glib-2.0/gobject/gvaluetypes.h +320 -0
  428. package/include/harfbuzz/hb-aat-layout.h +795 -0
  429. package/include/harfbuzz/hb-aat.h +38 -0
  430. package/include/harfbuzz/hb-blob.h +160 -0
  431. package/include/harfbuzz/hb-buffer.h +799 -0
  432. package/include/harfbuzz/hb-common.h +938 -0
  433. package/include/harfbuzz/hb-cplusplus.hh +223 -0
  434. package/include/harfbuzz/hb-deprecated.h +318 -0
  435. package/include/harfbuzz/hb-draw.h +340 -0
  436. package/include/harfbuzz/hb-face.h +187 -0
  437. package/include/harfbuzz/hb-features.h +119 -0
  438. package/include/harfbuzz/hb-font.h +1153 -0
  439. package/include/harfbuzz/hb-ft.h +145 -0
  440. package/include/harfbuzz/hb-glib.h +56 -0
  441. package/include/harfbuzz/hb-map.h +143 -0
  442. package/include/harfbuzz/hb-ot-color.h +155 -0
  443. package/include/harfbuzz/hb-ot-deprecated.h +147 -0
  444. package/include/harfbuzz/hb-ot-font.h +45 -0
  445. package/include/harfbuzz/hb-ot-layout.h +549 -0
  446. package/include/harfbuzz/hb-ot-math.h +333 -0
  447. package/include/harfbuzz/hb-ot-meta.h +72 -0
  448. package/include/harfbuzz/hb-ot-metrics.h +129 -0
  449. package/include/harfbuzz/hb-ot-name.h +164 -0
  450. package/include/harfbuzz/hb-ot-shape.h +53 -0
  451. package/include/harfbuzz/hb-ot-var.h +191 -0
  452. package/include/harfbuzz/hb-ot.h +49 -0
  453. package/include/harfbuzz/hb-paint.h +1029 -0
  454. package/include/harfbuzz/hb-set.h +203 -0
  455. package/include/harfbuzz/hb-shape-plan.h +122 -0
  456. package/include/harfbuzz/hb-shape.h +74 -0
  457. package/include/harfbuzz/hb-style.h +81 -0
  458. package/include/harfbuzz/hb-subset-repacker.h +81 -0
  459. package/include/harfbuzz/hb-subset.h +247 -0
  460. package/include/harfbuzz/hb-unicode.h +643 -0
  461. package/include/harfbuzz/hb-version.h +95 -0
  462. package/include/harfbuzz/hb.h +51 -0
  463. package/include/hwy/aligned_allocator.h +211 -0
  464. package/include/hwy/base.h +1517 -0
  465. package/include/hwy/cache_control.h +108 -0
  466. package/include/hwy/detect_compiler_arch.h +281 -0
  467. package/include/hwy/detect_targets.h +644 -0
  468. package/include/hwy/foreach_target.h +340 -0
  469. package/include/hwy/highway.h +435 -0
  470. package/include/hwy/highway_export.h +74 -0
  471. package/include/hwy/nanobenchmark.h +171 -0
  472. package/include/hwy/ops/arm_neon-inl.h +8913 -0
  473. package/include/hwy/ops/arm_sve-inl.h +5105 -0
  474. package/include/hwy/ops/emu128-inl.h +2811 -0
  475. package/include/hwy/ops/generic_ops-inl.h +4745 -0
  476. package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
  477. package/include/hwy/ops/rvv-inl.h +5070 -0
  478. package/include/hwy/ops/scalar-inl.h +1995 -0
  479. package/include/hwy/ops/set_macros-inl.h +578 -0
  480. package/include/hwy/ops/shared-inl.h +539 -0
  481. package/include/hwy/ops/tuple-inl.h +125 -0
  482. package/include/hwy/ops/wasm_128-inl.h +5917 -0
  483. package/include/hwy/ops/x86_128-inl.h +11173 -0
  484. package/include/hwy/ops/x86_256-inl.h +7529 -0
  485. package/include/hwy/ops/x86_512-inl.h +6849 -0
  486. package/include/hwy/per_target.h +44 -0
  487. package/include/hwy/print-inl.h +62 -0
  488. package/include/hwy/print.h +75 -0
  489. package/include/hwy/robust_statistics.h +148 -0
  490. package/include/hwy/targets.h +338 -0
  491. package/include/hwy/timer-inl.h +200 -0
  492. package/include/hwy/timer.h +55 -0
  493. package/include/index.js +1 -0
  494. package/include/jconfig.h +37 -0
  495. package/include/jerror.h +335 -0
  496. package/include/jmorecfg.h +382 -0
  497. package/include/jpeglib.h +1211 -0
  498. package/include/lcms2.h +1997 -0
  499. package/include/lcms2_plugin.h +700 -0
  500. package/include/libexif/_stdint.h +2 -0
  501. package/include/libexif/exif-byte-order.h +48 -0
  502. package/include/libexif/exif-content.h +181 -0
  503. package/include/libexif/exif-data-type.h +46 -0
  504. package/include/libexif/exif-data.h +267 -0
  505. package/include/libexif/exif-entry.h +186 -0
  506. package/include/libexif/exif-format.h +65 -0
  507. package/include/libexif/exif-ifd.h +51 -0
  508. package/include/libexif/exif-loader.h +128 -0
  509. package/include/libexif/exif-log.h +116 -0
  510. package/include/libexif/exif-mem.h +91 -0
  511. package/include/libexif/exif-mnote-data.h +122 -0
  512. package/include/libexif/exif-tag.h +307 -0
  513. package/include/libexif/exif-utils.h +194 -0
  514. package/include/libheif/heif.h +2169 -0
  515. package/include/libheif/heif_cxx.h +1362 -0
  516. package/include/libheif/heif_plugin.h +306 -0
  517. package/include/libheif/heif_properties.h +138 -0
  518. package/include/libheif/heif_regions.h +866 -0
  519. package/include/libheif/heif_version.h +38 -0
  520. package/include/libimagequant.h +111 -0
  521. package/include/libpng16/png.h +3247 -0
  522. package/include/libpng16/pngconf.h +623 -0
  523. package/include/libpng16/pnglibconf.h +219 -0
  524. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +395 -0
  525. package/include/librsvg-2.0/librsvg/rsvg-features.h +184 -0
  526. package/include/librsvg-2.0/librsvg/rsvg-version.h +13 -0
  527. package/include/librsvg-2.0/librsvg/rsvg.h +1456 -0
  528. package/include/libxml2/libxml/HTMLparser.h +343 -0
  529. package/include/libxml2/libxml/HTMLtree.h +147 -0
  530. package/include/libxml2/libxml/SAX.h +202 -0
  531. package/include/libxml2/libxml/SAX2.h +171 -0
  532. package/include/libxml2/libxml/c14n.h +126 -0
  533. package/include/libxml2/libxml/catalog.h +182 -0
  534. package/include/libxml2/libxml/chvalid.h +230 -0
  535. package/include/libxml2/libxml/debugXML.h +217 -0
  536. package/include/libxml2/libxml/dict.h +82 -0
  537. package/include/libxml2/libxml/encoding.h +235 -0
  538. package/include/libxml2/libxml/entities.h +155 -0
  539. package/include/libxml2/libxml/globals.h +41 -0
  540. package/include/libxml2/libxml/hash.h +232 -0
  541. package/include/libxml2/libxml/list.h +137 -0
  542. package/include/libxml2/libxml/nanoftp.h +186 -0
  543. package/include/libxml2/libxml/nanohttp.h +81 -0
  544. package/include/libxml2/libxml/parser.h +1375 -0
  545. package/include/libxml2/libxml/parserInternals.h +663 -0
  546. package/include/libxml2/libxml/pattern.h +100 -0
  547. package/include/libxml2/libxml/relaxng.h +219 -0
  548. package/include/libxml2/libxml/schemasInternals.h +959 -0
  549. package/include/libxml2/libxml/schematron.h +143 -0
  550. package/include/libxml2/libxml/threads.h +87 -0
  551. package/include/libxml2/libxml/tree.h +1362 -0
  552. package/include/libxml2/libxml/uri.h +95 -0
  553. package/include/libxml2/libxml/valid.h +450 -0
  554. package/include/libxml2/libxml/xinclude.h +129 -0
  555. package/include/libxml2/libxml/xlink.h +189 -0
  556. package/include/libxml2/libxml/xmlIO.h +422 -0
  557. package/include/libxml2/libxml/xmlautomata.h +146 -0
  558. package/include/libxml2/libxml/xmlerror.h +948 -0
  559. package/include/libxml2/libxml/xmlexports.h +50 -0
  560. package/include/libxml2/libxml/xmlmemory.h +225 -0
  561. package/include/libxml2/libxml/xmlmodule.h +57 -0
  562. package/include/libxml2/libxml/xmlreader.h +434 -0
  563. package/include/libxml2/libxml/xmlregexp.h +215 -0
  564. package/include/libxml2/libxml/xmlsave.h +97 -0
  565. package/include/libxml2/libxml/xmlschemas.h +249 -0
  566. package/include/libxml2/libxml/xmlschemastypes.h +152 -0
  567. package/include/libxml2/libxml/xmlstring.h +140 -0
  568. package/include/libxml2/libxml/xmlunicode.h +202 -0
  569. package/include/libxml2/libxml/xmlversion.h +511 -0
  570. package/include/libxml2/libxml/xmlwriter.h +488 -0
  571. package/include/libxml2/libxml/xpath.h +575 -0
  572. package/include/libxml2/libxml/xpathInternals.h +633 -0
  573. package/include/libxml2/libxml/xpointer.h +138 -0
  574. package/include/pango-1.0/pango/pango-attributes.h +748 -0
  575. package/include/pango-1.0/pango/pango-bidi-type.h +117 -0
  576. package/include/pango-1.0/pango/pango-break.h +144 -0
  577. package/include/pango-1.0/pango/pango-color.h +75 -0
  578. package/include/pango-1.0/pango/pango-context.h +116 -0
  579. package/include/pango-1.0/pango/pango-coverage.h +108 -0
  580. package/include/pango-1.0/pango/pango-direction.h +72 -0
  581. package/include/pango-1.0/pango/pango-engine.h +457 -0
  582. package/include/pango-1.0/pango/pango-enum-types.h +120 -0
  583. package/include/pango-1.0/pango/pango-features.h +10 -0
  584. package/include/pango-1.0/pango/pango-font.h +699 -0
  585. package/include/pango-1.0/pango/pango-fontmap.h +132 -0
  586. package/include/pango-1.0/pango/pango-fontset-simple.h +64 -0
  587. package/include/pango-1.0/pango/pango-fontset.h +134 -0
  588. package/include/pango-1.0/pango/pango-glyph-item.h +175 -0
  589. package/include/pango-1.0/pango/pango-glyph.h +270 -0
  590. package/include/pango-1.0/pango/pango-gravity.h +137 -0
  591. package/include/pango-1.0/pango/pango-item.h +165 -0
  592. package/include/pango-1.0/pango/pango-language.h +70 -0
  593. package/include/pango-1.0/pango/pango-layout.h +554 -0
  594. package/include/pango-1.0/pango/pango-markup.h +52 -0
  595. package/include/pango-1.0/pango/pango-matrix.h +130 -0
  596. package/include/pango-1.0/pango/pango-modules.h +84 -0
  597. package/include/pango-1.0/pango/pango-ot.h +427 -0
  598. package/include/pango-1.0/pango/pango-renderer.h +290 -0
  599. package/include/pango-1.0/pango/pango-script.h +335 -0
  600. package/include/pango-1.0/pango/pango-tabs.h +117 -0
  601. package/include/pango-1.0/pango/pango-types.h +244 -0
  602. package/include/pango-1.0/pango/pango-utils.h +187 -0
  603. package/include/pango-1.0/pango/pango-version-macros.h +756 -0
  604. package/include/pango-1.0/pango/pango.h +54 -0
  605. package/include/pango-1.0/pango/pangocairo.h +220 -0
  606. package/include/pango-1.0/pango/pangofc-decoder.h +122 -0
  607. package/include/pango-1.0/pango/pangofc-font.h +120 -0
  608. package/include/pango-1.0/pango/pangofc-fontmap.h +244 -0
  609. package/include/pango-1.0/pango/pangoft2.h +158 -0
  610. package/include/pixman-1/pixman-version.h +54 -0
  611. package/include/pixman-1/pixman.h +1426 -0
  612. package/include/png.h +3247 -0
  613. package/include/pngconf.h +623 -0
  614. package/include/pnglibconf.h +219 -0
  615. package/include/spng.h +537 -0
  616. package/include/tiff.h +899 -0
  617. package/include/tiffconf.h +145 -0
  618. package/include/tiffio.h +653 -0
  619. package/include/tiffvers.h +36 -0
  620. package/include/vips/VConnection8.h +144 -0
  621. package/include/vips/VError8.h +79 -0
  622. package/include/vips/VImage8.h +6329 -0
  623. package/include/vips/VInterpolate8.h +74 -0
  624. package/include/vips/VRegion8.h +154 -0
  625. package/include/vips/arithmetic.h +571 -0
  626. package/include/vips/basic.h +113 -0
  627. package/include/vips/buf.h +120 -0
  628. package/include/vips/colour.h +306 -0
  629. package/include/vips/connection.h +567 -0
  630. package/include/vips/conversion.h +357 -0
  631. package/include/vips/convolution.h +101 -0
  632. package/include/vips/create.h +161 -0
  633. package/include/vips/dbuf.h +101 -0
  634. package/include/vips/debug.h +106 -0
  635. package/include/vips/draw.h +113 -0
  636. package/include/vips/enumtypes.h +184 -0
  637. package/include/vips/error.h +142 -0
  638. package/include/vips/foreign.h +1033 -0
  639. package/include/vips/format.h +135 -0
  640. package/include/vips/freqfilt.h +64 -0
  641. package/include/vips/gate.h +90 -0
  642. package/include/vips/generate.h +92 -0
  643. package/include/vips/header.h +322 -0
  644. package/include/vips/histogram.h +85 -0
  645. package/include/vips/image.h +605 -0
  646. package/include/vips/interpolate.h +140 -0
  647. package/include/vips/memory.h +105 -0
  648. package/include/vips/morphology.h +73 -0
  649. package/include/vips/mosaicing.h +79 -0
  650. package/include/vips/object.h +720 -0
  651. package/include/vips/operation.h +183 -0
  652. package/include/vips/private.h +227 -0
  653. package/include/vips/rect.h +80 -0
  654. package/include/vips/region.h +238 -0
  655. package/include/vips/resample.h +123 -0
  656. package/include/vips/sbuf.h +143 -0
  657. package/include/vips/semaphore.h +77 -0
  658. package/include/vips/thread.h +75 -0
  659. package/include/vips/threadpool.h +159 -0
  660. package/include/vips/transform.h +89 -0
  661. package/include/vips/type.h +310 -0
  662. package/include/vips/util.h +451 -0
  663. package/include/vips/vector.h +63 -0
  664. package/include/vips/version.h +26 -0
  665. package/include/vips/vips.h +195 -0
  666. package/include/vips/vips8 +60 -0
  667. package/include/webp/decode.h +504 -0
  668. package/include/webp/demux.h +363 -0
  669. package/include/webp/encode.h +552 -0
  670. package/include/webp/mux.h +530 -0
  671. package/include/webp/mux_types.h +98 -0
  672. package/include/webp/sharpyuv/sharpyuv.h +103 -0
  673. package/include/webp/sharpyuv/sharpyuv_csp.h +60 -0
  674. package/include/webp/types.h +72 -0
  675. package/include/zconf.h +206 -0
  676. package/include/zlib.h +1859 -0
  677. package/include/zlib_name_mangling.h +8 -0
  678. package/package.json +30 -0
  679. package/versions.json +31 -0
@@ -0,0 +1,1997 @@
1
+ //---------------------------------------------------------------------------------
2
+ //
3
+ // Little Color Management System
4
+ // Copyright (c) 1998-2023 Marti Maria Saguer
5
+ //
6
+ // Permission is hereby granted, free of charge, to any person obtaining
7
+ // a copy of this software and associated documentation files (the "Software"),
8
+ // to deal in the Software without restriction, including without limitation
9
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
+ // and/or sell copies of the Software, and to permit persons to whom the Software
11
+ // is furnished to do so, subject to the following conditions:
12
+ //
13
+ // The above copyright notice and this permission notice shall be included in
14
+ // all copies or substantial portions of the Software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
18
+ // THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ //
24
+ //---------------------------------------------------------------------------------
25
+ //
26
+ // Version 2.16
27
+ //
28
+
29
+ #ifndef _lcms2_H
30
+
31
+ // ********** Configuration toggles ****************************************
32
+
33
+ // Uncomment this one if you are using big endian machines
34
+ // #define CMS_USE_BIG_ENDIAN 1
35
+
36
+ // Uncomment this one if your compiler/machine does NOT support the
37
+ // "long long" type.
38
+ // #define CMS_DONT_USE_INT64 1
39
+
40
+ // Uncomment this if your compiler doesn't work with fast floor function
41
+ // #define CMS_DONT_USE_FAST_FLOOR 1
42
+
43
+ // Uncomment this line if you want lcms to use the black point tag in profile,
44
+ // if commented, lcms will compute the black point by its own.
45
+ // It is safer to leave it commented out
46
+ // #define CMS_USE_PROFILE_BLACK_POINT_TAG 1
47
+
48
+ // Uncomment this line if you are compiling as C++ and want a C++ API
49
+ // #define CMS_USE_CPP_API
50
+
51
+ // Uncomment this line if you need strict CGATS syntax. Makes CGATS files to
52
+ // require "KEYWORD" on undefined identifiers, keep it commented out unless needed
53
+ // #define CMS_STRICT_CGATS 1
54
+
55
+ // Uncomment to get rid of the tables for "half" float support
56
+ // #define CMS_NO_HALF_SUPPORT 1
57
+
58
+ // Uncomment to get rid of pthreads/windows dependency
59
+ // #define CMS_NO_PTHREADS 1
60
+
61
+ // Uncomment this for special windows mutex initialization (see lcms2_internal.h)
62
+ // #define CMS_RELY_ON_WINDOWS_STATIC_MUTEX_INIT
63
+
64
+ // Uncomment this to remove the "register" storage class
65
+ // #define CMS_NO_REGISTER_KEYWORD 1
66
+
67
+ // ********** End of configuration toggles ******************************
68
+
69
+ // Needed for streams
70
+ #include <stdio.h>
71
+
72
+ // Needed for portability (C99 per 7.1.2)
73
+ #include <limits.h>
74
+ #include <time.h>
75
+ #include <stddef.h>
76
+
77
+ #ifndef CMS_USE_CPP_API
78
+ # ifdef __cplusplus
79
+ # if __cplusplus >= 201703L
80
+ # define CMS_NO_REGISTER_KEYWORD 1
81
+ # endif
82
+ extern "C" {
83
+ # endif
84
+ #endif
85
+
86
+ // Version/release
87
+ #define LCMS_VERSION 2160
88
+
89
+ // I will give the chance of redefining basic types for compilers that are not fully C99 compliant
90
+ #ifndef CMS_BASIC_TYPES_ALREADY_DEFINED
91
+
92
+ // Base types
93
+ typedef unsigned char cmsUInt8Number; // That is guaranteed by the C99 spec
94
+ typedef signed char cmsInt8Number; // That is guaranteed by the C99 spec
95
+
96
+ #if CHAR_BIT != 8
97
+ # error "Unable to find 8 bit type, unsupported compiler"
98
+ #endif
99
+
100
+ // IEEE float storage numbers
101
+ typedef float cmsFloat32Number;
102
+ typedef double cmsFloat64Number;
103
+
104
+ // 16-bit base types
105
+ #if (USHRT_MAX == 65535U)
106
+ typedef unsigned short cmsUInt16Number;
107
+ #elif (UINT_MAX == 65535U)
108
+ typedef unsigned int cmsUInt16Number;
109
+ #else
110
+ # error "Unable to find 16 bits unsigned type, unsupported compiler"
111
+ #endif
112
+
113
+ #if (SHRT_MAX == 32767)
114
+ typedef short cmsInt16Number;
115
+ #elif (INT_MAX == 32767)
116
+ typedef int cmsInt16Number;
117
+ #else
118
+ # error "Unable to find 16 bits signed type, unsupported compiler"
119
+ #endif
120
+
121
+ // 32-bit base type
122
+ #if (UINT_MAX == 4294967295U)
123
+ typedef unsigned int cmsUInt32Number;
124
+ #elif (ULONG_MAX == 4294967295U)
125
+ typedef unsigned long cmsUInt32Number;
126
+ #else
127
+ # error "Unable to find 32 bit unsigned type, unsupported compiler"
128
+ #endif
129
+
130
+ #if (INT_MAX == +2147483647)
131
+ typedef int cmsInt32Number;
132
+ #elif (LONG_MAX == +2147483647)
133
+ typedef long cmsInt32Number;
134
+ #else
135
+ # error "Unable to find 32 bit signed type, unsupported compiler"
136
+ #endif
137
+
138
+ // 64-bit base types
139
+ #ifndef CMS_DONT_USE_INT64
140
+ # if (ULONG_MAX == 18446744073709551615U)
141
+ typedef unsigned long cmsUInt64Number;
142
+ # elif (ULLONG_MAX == 18446744073709551615U)
143
+ typedef unsigned long long cmsUInt64Number;
144
+ # else
145
+ # define CMS_DONT_USE_INT64 1
146
+ # endif
147
+ # if (LONG_MAX == +9223372036854775807)
148
+ typedef long cmsInt64Number;
149
+ # elif (LLONG_MAX == +9223372036854775807)
150
+ typedef long long cmsInt64Number;
151
+ # else
152
+ # define CMS_DONT_USE_INT64 1
153
+ # endif
154
+ #endif
155
+ #endif
156
+
157
+ // Handle "register" keyword
158
+ #if defined(CMS_NO_REGISTER_KEYWORD)
159
+ # define CMSREGISTER
160
+ #else
161
+ # define CMSREGISTER register
162
+ #endif
163
+
164
+ // In the case 64 bit numbers are not supported by the compiler
165
+ #ifdef CMS_DONT_USE_INT64
166
+ typedef cmsUInt32Number cmsUInt64Number[2];
167
+ typedef cmsInt32Number cmsInt64Number[2];
168
+ #endif
169
+
170
+ // Derivative types
171
+ typedef cmsUInt32Number cmsSignature;
172
+ typedef cmsUInt16Number cmsU8Fixed8Number;
173
+ typedef cmsInt32Number cmsS15Fixed16Number;
174
+ typedef cmsUInt32Number cmsU16Fixed16Number;
175
+
176
+ // Boolean type, which will be using the native integer
177
+ typedef int cmsBool;
178
+
179
+ // Try to detect windows
180
+ #if defined (_WIN32) || defined(_WIN64) || defined(WIN32) || defined(_WIN32_)
181
+ # define CMS_IS_WINDOWS_ 1
182
+ #endif
183
+
184
+ #ifdef _MSC_VER
185
+ # define CMS_IS_WINDOWS_ 1
186
+ #endif
187
+
188
+ #ifdef __BORLANDC__
189
+ # define CMS_IS_WINDOWS_ 1
190
+ #endif
191
+
192
+ // Try to detect big endian platforms. This list can be endless, so primarily rely on the configure script
193
+ // on Unix-like systems, and allow it to be set on the compiler command line using
194
+ // -DCMS_USE_BIG_ENDIAN or something similar
195
+ #ifdef CMS_USE_BIG_ENDIAN // set at compiler command line takes overall precedence
196
+
197
+ # if CMS_USE_BIG_ENDIAN == 0
198
+ # undef CMS_USE_BIG_ENDIAN
199
+ # endif
200
+
201
+ #else // CMS_USE_BIG_ENDIAN
202
+
203
+ # ifdef WORDS_BIGENDIAN // set by configure (or explicitly on compiler command line)
204
+ # define CMS_USE_BIG_ENDIAN 1
205
+ # else // WORDS_BIGENDIAN
206
+ // Fall back to platform/compiler specific tests
207
+ # if defined(__sgi__) || defined(__sgi) || defined(sparc)
208
+ # define CMS_USE_BIG_ENDIAN 1
209
+ # endif
210
+
211
+ # if defined(__s390__) || defined(__s390x__)
212
+ # define CMS_USE_BIG_ENDIAN 1
213
+ # endif
214
+
215
+ # ifdef macintosh
216
+ # ifdef __BIG_ENDIAN__
217
+ # define CMS_USE_BIG_ENDIAN 1
218
+ # endif
219
+ # ifdef __LITTLE_ENDIAN__
220
+ # undef CMS_USE_BIG_ENDIAN
221
+ # endif
222
+ # endif
223
+ # endif // WORDS_BIGENDIAN
224
+
225
+ # if defined(_HOST_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
226
+ # define CMS_USE_BIG_ENDIAN 1
227
+ # endif
228
+
229
+ #endif // CMS_USE_BIG_ENDIAN
230
+
231
+
232
+ // Calling convention -- this is hardly platform and compiler dependent
233
+ #if defined(CMS_IS_WINDOWS_) && !defined(__GNUC__)
234
+ # if defined(CMS_DLL) || defined(CMS_DLL_BUILD)
235
+ # ifdef __BORLANDC__
236
+ # define CMSEXPORT __stdcall _export
237
+ # define CMSAPI
238
+ # else
239
+ # define CMSEXPORT __stdcall
240
+ # ifdef CMS_DLL_BUILD
241
+ # define CMSAPI __declspec(dllexport)
242
+ # else
243
+ # define CMSAPI __declspec(dllimport)
244
+ # endif
245
+ # endif
246
+ # else
247
+ # define CMSEXPORT
248
+ # define CMSAPI
249
+ # endif
250
+ #else // not Windows
251
+ # ifdef HAVE_FUNC_ATTRIBUTE_VISIBILITY
252
+ # define CMSEXPORT
253
+ # define CMSAPI __attribute__((visibility("default")))
254
+ # else
255
+ # define CMSEXPORT
256
+ # define CMSAPI
257
+ # endif
258
+ #endif // CMS_IS_WINDOWS_
259
+
260
+ #ifdef HasTHREADS
261
+ # if HasTHREADS == 1
262
+ # undef CMS_NO_PTHREADS
263
+ # else
264
+ # define CMS_NO_PTHREADS 1
265
+ # endif
266
+ #endif
267
+
268
+ // Some common definitions
269
+ #define cmsMAX_PATH 256
270
+
271
+ #ifndef FALSE
272
+ # define FALSE 0
273
+ #endif
274
+ #ifndef TRUE
275
+ # define TRUE 1
276
+ #endif
277
+
278
+ // D50 XYZ normalized to Y=1.0
279
+ #define cmsD50X 0.9642
280
+ #define cmsD50Y 1.0
281
+ #define cmsD50Z 0.8249
282
+
283
+ // V4 perceptual black
284
+ #define cmsPERCEPTUAL_BLACK_X 0.00336
285
+ #define cmsPERCEPTUAL_BLACK_Y 0.0034731
286
+ #define cmsPERCEPTUAL_BLACK_Z 0.00287
287
+
288
+ // Definitions in ICC spec
289
+ #define cmsMagicNumber 0x61637370 // 'acsp'
290
+ #define lcmsSignature 0x6c636d73 // 'lcms'
291
+
292
+
293
+ // Base ICC type definitions
294
+ typedef enum {
295
+ cmsSigChromaticityType = 0x6368726D, // 'chrm'
296
+ cmsSigcicpType = 0x63696370, // 'cicp'
297
+ cmsSigColorantOrderType = 0x636C726F, // 'clro'
298
+ cmsSigColorantTableType = 0x636C7274, // 'clrt'
299
+ cmsSigCrdInfoType = 0x63726469, // 'crdi'
300
+ cmsSigCurveType = 0x63757276, // 'curv'
301
+ cmsSigDataType = 0x64617461, // 'data'
302
+ cmsSigDictType = 0x64696374, // 'dict'
303
+ cmsSigDateTimeType = 0x6474696D, // 'dtim'
304
+ cmsSigDeviceSettingsType = 0x64657673, // 'devs'
305
+ cmsSigLut16Type = 0x6d667432, // 'mft2'
306
+ cmsSigLut8Type = 0x6d667431, // 'mft1'
307
+ cmsSigLutAtoBType = 0x6d414220, // 'mAB '
308
+ cmsSigLutBtoAType = 0x6d424120, // 'mBA '
309
+ cmsSigMeasurementType = 0x6D656173, // 'meas'
310
+ cmsSigMultiLocalizedUnicodeType = 0x6D6C7563, // 'mluc'
311
+ cmsSigMultiProcessElementType = 0x6D706574, // 'mpet'
312
+ cmsSigNamedColorType = 0x6E636f6C, // 'ncol' -- DEPRECATED!
313
+ cmsSigNamedColor2Type = 0x6E636C32, // 'ncl2'
314
+ cmsSigParametricCurveType = 0x70617261, // 'para'
315
+ cmsSigProfileSequenceDescType = 0x70736571, // 'pseq'
316
+ cmsSigProfileSequenceIdType = 0x70736964, // 'psid'
317
+ cmsSigResponseCurveSet16Type = 0x72637332, // 'rcs2'
318
+ cmsSigS15Fixed16ArrayType = 0x73663332, // 'sf32'
319
+ cmsSigScreeningType = 0x7363726E, // 'scrn'
320
+ cmsSigSignatureType = 0x73696720, // 'sig '
321
+ cmsSigTextType = 0x74657874, // 'text'
322
+ cmsSigTextDescriptionType = 0x64657363, // 'desc'
323
+ cmsSigU16Fixed16ArrayType = 0x75663332, // 'uf32'
324
+ cmsSigUcrBgType = 0x62666420, // 'bfd '
325
+ cmsSigUInt16ArrayType = 0x75693136, // 'ui16'
326
+ cmsSigUInt32ArrayType = 0x75693332, // 'ui32'
327
+ cmsSigUInt64ArrayType = 0x75693634, // 'ui64'
328
+ cmsSigUInt8ArrayType = 0x75693038, // 'ui08'
329
+ cmsSigVcgtType = 0x76636774, // 'vcgt'
330
+ cmsSigViewingConditionsType = 0x76696577, // 'view'
331
+ cmsSigXYZType = 0x58595A20, // 'XYZ '
332
+ cmsSigMHC2Type = 0x4D484332 // 'MHC2'
333
+
334
+
335
+ } cmsTagTypeSignature;
336
+
337
+ // Base ICC tag definitions
338
+ typedef enum {
339
+ cmsSigAToB0Tag = 0x41324230, // 'A2B0'
340
+ cmsSigAToB1Tag = 0x41324231, // 'A2B1'
341
+ cmsSigAToB2Tag = 0x41324232, // 'A2B2'
342
+ cmsSigBlueColorantTag = 0x6258595A, // 'bXYZ'
343
+ cmsSigBlueMatrixColumnTag = 0x6258595A, // 'bXYZ'
344
+ cmsSigBlueTRCTag = 0x62545243, // 'bTRC'
345
+ cmsSigBToA0Tag = 0x42324130, // 'B2A0'
346
+ cmsSigBToA1Tag = 0x42324131, // 'B2A1'
347
+ cmsSigBToA2Tag = 0x42324132, // 'B2A2'
348
+ cmsSigCalibrationDateTimeTag = 0x63616C74, // 'calt'
349
+ cmsSigCharTargetTag = 0x74617267, // 'targ'
350
+ cmsSigChromaticAdaptationTag = 0x63686164, // 'chad'
351
+ cmsSigChromaticityTag = 0x6368726D, // 'chrm'
352
+ cmsSigColorantOrderTag = 0x636C726F, // 'clro'
353
+ cmsSigColorantTableTag = 0x636C7274, // 'clrt'
354
+ cmsSigColorantTableOutTag = 0x636C6F74, // 'clot'
355
+ cmsSigColorimetricIntentImageStateTag = 0x63696973, // 'ciis'
356
+ cmsSigCopyrightTag = 0x63707274, // 'cprt'
357
+ cmsSigCrdInfoTag = 0x63726469, // 'crdi'
358
+ cmsSigDataTag = 0x64617461, // 'data'
359
+ cmsSigDateTimeTag = 0x6474696D, // 'dtim'
360
+ cmsSigDeviceMfgDescTag = 0x646D6E64, // 'dmnd'
361
+ cmsSigDeviceModelDescTag = 0x646D6464, // 'dmdd'
362
+ cmsSigDeviceSettingsTag = 0x64657673, // 'devs'
363
+ cmsSigDToB0Tag = 0x44324230, // 'D2B0'
364
+ cmsSigDToB1Tag = 0x44324231, // 'D2B1'
365
+ cmsSigDToB2Tag = 0x44324232, // 'D2B2'
366
+ cmsSigDToB3Tag = 0x44324233, // 'D2B3'
367
+ cmsSigBToD0Tag = 0x42324430, // 'B2D0'
368
+ cmsSigBToD1Tag = 0x42324431, // 'B2D1'
369
+ cmsSigBToD2Tag = 0x42324432, // 'B2D2'
370
+ cmsSigBToD3Tag = 0x42324433, // 'B2D3'
371
+ cmsSigGamutTag = 0x67616D74, // 'gamt'
372
+ cmsSigGrayTRCTag = 0x6b545243, // 'kTRC'
373
+ cmsSigGreenColorantTag = 0x6758595A, // 'gXYZ'
374
+ cmsSigGreenMatrixColumnTag = 0x6758595A, // 'gXYZ'
375
+ cmsSigGreenTRCTag = 0x67545243, // 'gTRC'
376
+ cmsSigLuminanceTag = 0x6C756d69, // 'lumi'
377
+ cmsSigMeasurementTag = 0x6D656173, // 'meas'
378
+ cmsSigMediaBlackPointTag = 0x626B7074, // 'bkpt'
379
+ cmsSigMediaWhitePointTag = 0x77747074, // 'wtpt'
380
+ cmsSigNamedColorTag = 0x6E636f6C, // 'ncol' // Deprecated by the ICC
381
+ cmsSigNamedColor2Tag = 0x6E636C32, // 'ncl2'
382
+ cmsSigOutputResponseTag = 0x72657370, // 'resp'
383
+ cmsSigPerceptualRenderingIntentGamutTag = 0x72696730, // 'rig0'
384
+ cmsSigPreview0Tag = 0x70726530, // 'pre0'
385
+ cmsSigPreview1Tag = 0x70726531, // 'pre1'
386
+ cmsSigPreview2Tag = 0x70726532, // 'pre2'
387
+ cmsSigProfileDescriptionTag = 0x64657363, // 'desc'
388
+ cmsSigProfileDescriptionMLTag = 0x6473636d, // 'dscm'
389
+ cmsSigProfileSequenceDescTag = 0x70736571, // 'pseq'
390
+ cmsSigProfileSequenceIdTag = 0x70736964, // 'psid'
391
+ cmsSigPs2CRD0Tag = 0x70736430, // 'psd0'
392
+ cmsSigPs2CRD1Tag = 0x70736431, // 'psd1'
393
+ cmsSigPs2CRD2Tag = 0x70736432, // 'psd2'
394
+ cmsSigPs2CRD3Tag = 0x70736433, // 'psd3'
395
+ cmsSigPs2CSATag = 0x70733273, // 'ps2s'
396
+ cmsSigPs2RenderingIntentTag = 0x70733269, // 'ps2i'
397
+ cmsSigRedColorantTag = 0x7258595A, // 'rXYZ'
398
+ cmsSigRedMatrixColumnTag = 0x7258595A, // 'rXYZ'
399
+ cmsSigRedTRCTag = 0x72545243, // 'rTRC'
400
+ cmsSigSaturationRenderingIntentGamutTag = 0x72696732, // 'rig2'
401
+ cmsSigScreeningDescTag = 0x73637264, // 'scrd'
402
+ cmsSigScreeningTag = 0x7363726E, // 'scrn'
403
+ cmsSigTechnologyTag = 0x74656368, // 'tech'
404
+ cmsSigUcrBgTag = 0x62666420, // 'bfd '
405
+ cmsSigViewingCondDescTag = 0x76756564, // 'vued'
406
+ cmsSigViewingConditionsTag = 0x76696577, // 'view'
407
+ cmsSigVcgtTag = 0x76636774, // 'vcgt'
408
+ cmsSigMetaTag = 0x6D657461, // 'meta'
409
+ cmsSigcicpTag = 0x63696370, // 'cicp'
410
+ cmsSigArgyllArtsTag = 0x61727473, // 'arts'
411
+ cmsSigMHC2Tag = 0x4D484332 // 'MHC2'
412
+
413
+ } cmsTagSignature;
414
+
415
+
416
+ // ICC Technology tag
417
+ typedef enum {
418
+ cmsSigDigitalCamera = 0x6463616D, // 'dcam'
419
+ cmsSigFilmScanner = 0x6673636E, // 'fscn'
420
+ cmsSigReflectiveScanner = 0x7273636E, // 'rscn'
421
+ cmsSigInkJetPrinter = 0x696A6574, // 'ijet'
422
+ cmsSigThermalWaxPrinter = 0x74776178, // 'twax'
423
+ cmsSigElectrophotographicPrinter = 0x6570686F, // 'epho'
424
+ cmsSigElectrostaticPrinter = 0x65737461, // 'esta'
425
+ cmsSigDyeSublimationPrinter = 0x64737562, // 'dsub'
426
+ cmsSigPhotographicPaperPrinter = 0x7270686F, // 'rpho'
427
+ cmsSigFilmWriter = 0x6670726E, // 'fprn'
428
+ cmsSigVideoMonitor = 0x7669646D, // 'vidm'
429
+ cmsSigVideoCamera = 0x76696463, // 'vidc'
430
+ cmsSigProjectionTelevision = 0x706A7476, // 'pjtv'
431
+ cmsSigCRTDisplay = 0x43525420, // 'CRT '
432
+ cmsSigPMDisplay = 0x504D4420, // 'PMD '
433
+ cmsSigAMDisplay = 0x414D4420, // 'AMD '
434
+ cmsSigPhotoCD = 0x4B504344, // 'KPCD'
435
+ cmsSigPhotoImageSetter = 0x696D6773, // 'imgs'
436
+ cmsSigGravure = 0x67726176, // 'grav'
437
+ cmsSigOffsetLithography = 0x6F666673, // 'offs'
438
+ cmsSigSilkscreen = 0x73696C6B, // 'silk'
439
+ cmsSigFlexography = 0x666C6578, // 'flex'
440
+ cmsSigMotionPictureFilmScanner = 0x6D706673, // 'mpfs'
441
+ cmsSigMotionPictureFilmRecorder = 0x6D706672, // 'mpfr'
442
+ cmsSigDigitalMotionPictureCamera = 0x646D7063, // 'dmpc'
443
+ cmsSigDigitalCinemaProjector = 0x64636A70 // 'dcpj'
444
+
445
+ } cmsTechnologySignature;
446
+
447
+
448
+ // ICC Color spaces
449
+ typedef enum {
450
+ cmsSigXYZData = 0x58595A20, // 'XYZ '
451
+ cmsSigLabData = 0x4C616220, // 'Lab '
452
+ cmsSigLuvData = 0x4C757620, // 'Luv '
453
+ cmsSigYCbCrData = 0x59436272, // 'YCbr'
454
+ cmsSigYxyData = 0x59787920, // 'Yxy '
455
+ cmsSigRgbData = 0x52474220, // 'RGB '
456
+ cmsSigGrayData = 0x47524159, // 'GRAY'
457
+ cmsSigHsvData = 0x48535620, // 'HSV '
458
+ cmsSigHlsData = 0x484C5320, // 'HLS '
459
+ cmsSigCmykData = 0x434D594B, // 'CMYK'
460
+ cmsSigCmyData = 0x434D5920, // 'CMY '
461
+ cmsSigMCH1Data = 0x4D434831, // 'MCH1'
462
+ cmsSigMCH2Data = 0x4D434832, // 'MCH2'
463
+ cmsSigMCH3Data = 0x4D434833, // 'MCH3'
464
+ cmsSigMCH4Data = 0x4D434834, // 'MCH4'
465
+ cmsSigMCH5Data = 0x4D434835, // 'MCH5'
466
+ cmsSigMCH6Data = 0x4D434836, // 'MCH6'
467
+ cmsSigMCH7Data = 0x4D434837, // 'MCH7'
468
+ cmsSigMCH8Data = 0x4D434838, // 'MCH8'
469
+ cmsSigMCH9Data = 0x4D434839, // 'MCH9'
470
+ cmsSigMCHAData = 0x4D434841, // 'MCHA'
471
+ cmsSigMCHBData = 0x4D434842, // 'MCHB'
472
+ cmsSigMCHCData = 0x4D434843, // 'MCHC'
473
+ cmsSigMCHDData = 0x4D434844, // 'MCHD'
474
+ cmsSigMCHEData = 0x4D434845, // 'MCHE'
475
+ cmsSigMCHFData = 0x4D434846, // 'MCHF'
476
+ cmsSigNamedData = 0x6e6d636c, // 'nmcl'
477
+ cmsSig1colorData = 0x31434C52, // '1CLR'
478
+ cmsSig2colorData = 0x32434C52, // '2CLR'
479
+ cmsSig3colorData = 0x33434C52, // '3CLR'
480
+ cmsSig4colorData = 0x34434C52, // '4CLR'
481
+ cmsSig5colorData = 0x35434C52, // '5CLR'
482
+ cmsSig6colorData = 0x36434C52, // '6CLR'
483
+ cmsSig7colorData = 0x37434C52, // '7CLR'
484
+ cmsSig8colorData = 0x38434C52, // '8CLR'
485
+ cmsSig9colorData = 0x39434C52, // '9CLR'
486
+ cmsSig10colorData = 0x41434C52, // 'ACLR'
487
+ cmsSig11colorData = 0x42434C52, // 'BCLR'
488
+ cmsSig12colorData = 0x43434C52, // 'CCLR'
489
+ cmsSig13colorData = 0x44434C52, // 'DCLR'
490
+ cmsSig14colorData = 0x45434C52, // 'ECLR'
491
+ cmsSig15colorData = 0x46434C52, // 'FCLR'
492
+ cmsSigLuvKData = 0x4C75764B // 'LuvK'
493
+
494
+ } cmsColorSpaceSignature;
495
+
496
+ // ICC Profile Class
497
+ typedef enum {
498
+ cmsSigInputClass = 0x73636E72, // 'scnr'
499
+ cmsSigDisplayClass = 0x6D6E7472, // 'mntr'
500
+ cmsSigOutputClass = 0x70727472, // 'prtr'
501
+ cmsSigLinkClass = 0x6C696E6B, // 'link'
502
+ cmsSigAbstractClass = 0x61627374, // 'abst'
503
+ cmsSigColorSpaceClass = 0x73706163, // 'spac'
504
+ cmsSigNamedColorClass = 0x6e6d636c // 'nmcl'
505
+
506
+ } cmsProfileClassSignature;
507
+
508
+ // ICC Platforms
509
+ typedef enum {
510
+ cmsSigMacintosh = 0x4150504C, // 'APPL'
511
+ cmsSigMicrosoft = 0x4D534654, // 'MSFT'
512
+ cmsSigSolaris = 0x53554E57, // 'SUNW'
513
+ cmsSigSGI = 0x53474920, // 'SGI '
514
+ cmsSigTaligent = 0x54474E54, // 'TGNT'
515
+ cmsSigUnices = 0x2A6E6978 // '*nix' // From argyll -- Not official
516
+
517
+ } cmsPlatformSignature;
518
+
519
+ // Reference gamut
520
+ #define cmsSigPerceptualReferenceMediumGamut 0x70726d67 //'prmg'
521
+
522
+ // For cmsSigColorimetricIntentImageStateTag
523
+ #define cmsSigSceneColorimetryEstimates 0x73636F65 //'scoe'
524
+ #define cmsSigSceneAppearanceEstimates 0x73617065 //'sape'
525
+ #define cmsSigFocalPlaneColorimetryEstimates 0x66706365 //'fpce'
526
+ #define cmsSigReflectionHardcopyOriginalColorimetry 0x72686F63 //'rhoc'
527
+ #define cmsSigReflectionPrintOutputColorimetry 0x72706F63 //'rpoc'
528
+
529
+ // Multi process elements types
530
+ typedef enum {
531
+ cmsSigCurveSetElemType = 0x63767374, //'cvst'
532
+ cmsSigMatrixElemType = 0x6D617466, //'matf'
533
+ cmsSigCLutElemType = 0x636C7574, //'clut'
534
+
535
+ cmsSigBAcsElemType = 0x62414353, // 'bACS'
536
+ cmsSigEAcsElemType = 0x65414353, // 'eACS'
537
+
538
+ // Custom from here, not in the ICC Spec
539
+ cmsSigXYZ2LabElemType = 0x6C327820, // 'l2x '
540
+ cmsSigLab2XYZElemType = 0x78326C20, // 'x2l '
541
+ cmsSigNamedColorElemType = 0x6E636C20, // 'ncl '
542
+ cmsSigLabV2toV4 = 0x32203420, // '2 4 '
543
+ cmsSigLabV4toV2 = 0x34203220, // '4 2 '
544
+
545
+ // Identities
546
+ cmsSigIdentityElemType = 0x69646E20, // 'idn '
547
+
548
+ // Float to floatPCS
549
+ cmsSigLab2FloatPCS = 0x64326C20, // 'd2l '
550
+ cmsSigFloatPCS2Lab = 0x6C326420, // 'l2d '
551
+ cmsSigXYZ2FloatPCS = 0x64327820, // 'd2x '
552
+ cmsSigFloatPCS2XYZ = 0x78326420, // 'x2d '
553
+ cmsSigClipNegativesElemType = 0x636c7020 // 'clp '
554
+
555
+ } cmsStageSignature;
556
+
557
+ // Types of CurveElements
558
+ typedef enum {
559
+
560
+ cmsSigFormulaCurveSeg = 0x70617266, // 'parf'
561
+ cmsSigSampledCurveSeg = 0x73616D66, // 'samf'
562
+ cmsSigSegmentedCurve = 0x63757266 // 'curf'
563
+
564
+ } cmsCurveSegSignature;
565
+
566
+ // Used in ResponseCurveType
567
+ #define cmsSigStatusA 0x53746141 //'StaA'
568
+ #define cmsSigStatusE 0x53746145 //'StaE'
569
+ #define cmsSigStatusI 0x53746149 //'StaI'
570
+ #define cmsSigStatusT 0x53746154 //'StaT'
571
+ #define cmsSigStatusM 0x5374614D //'StaM'
572
+ #define cmsSigDN 0x444E2020 //'DN '
573
+ #define cmsSigDNP 0x444E2050 //'DN P'
574
+ #define cmsSigDNN 0x444E4E20 //'DNN '
575
+ #define cmsSigDNNP 0x444E4E50 //'DNNP'
576
+
577
+ // Device attributes, currently defined values correspond to the low 4 bytes
578
+ // of the 8 byte attribute quantity
579
+ #define cmsReflective 0
580
+ #define cmsTransparency 1
581
+ #define cmsGlossy 0
582
+ #define cmsMatte 2
583
+
584
+ // Common structures in ICC tags
585
+ typedef struct {
586
+ cmsUInt32Number len;
587
+ cmsUInt32Number flag;
588
+ cmsUInt8Number data[1];
589
+
590
+ } cmsICCData;
591
+
592
+ // ICC date time
593
+ typedef struct {
594
+ cmsUInt16Number year;
595
+ cmsUInt16Number month;
596
+ cmsUInt16Number day;
597
+ cmsUInt16Number hours;
598
+ cmsUInt16Number minutes;
599
+ cmsUInt16Number seconds;
600
+
601
+ } cmsDateTimeNumber;
602
+
603
+ // ICC XYZ
604
+ typedef struct {
605
+ cmsS15Fixed16Number X;
606
+ cmsS15Fixed16Number Y;
607
+ cmsS15Fixed16Number Z;
608
+
609
+ } cmsEncodedXYZNumber;
610
+
611
+
612
+ // Profile ID as computed by MD5 algorithm
613
+ typedef union {
614
+ cmsUInt8Number ID8[16];
615
+ cmsUInt16Number ID16[8];
616
+ cmsUInt32Number ID32[4];
617
+
618
+ } cmsProfileID;
619
+
620
+
621
+ // ----------------------------------------------------------------------------------------------
622
+ // ICC profile internal base types. Strictly, shouldn't be declared in this header, but maybe
623
+ // somebody want to use this info for accessing profile header directly, so here it is.
624
+
625
+ // Profile header -- it is 32-bit aligned, so no issues are expected on alignment
626
+ typedef struct {
627
+ cmsUInt32Number size; // Profile size in bytes
628
+ cmsSignature cmmId; // CMM for this profile
629
+ cmsUInt32Number version; // Format version number
630
+ cmsProfileClassSignature deviceClass; // Type of profile
631
+ cmsColorSpaceSignature colorSpace; // Color space of data
632
+ cmsColorSpaceSignature pcs; // PCS, XYZ or Lab only
633
+ cmsDateTimeNumber date; // Date profile was created
634
+ cmsSignature magic; // Magic Number to identify an ICC profile
635
+ cmsPlatformSignature platform; // Primary Platform
636
+ cmsUInt32Number flags; // Various bit settings
637
+ cmsSignature manufacturer; // Device manufacturer
638
+ cmsUInt32Number model; // Device model number
639
+ cmsUInt64Number attributes; // Device attributes
640
+ cmsUInt32Number renderingIntent;// Rendering intent
641
+ cmsEncodedXYZNumber illuminant; // Profile illuminant
642
+ cmsSignature creator; // Profile creator
643
+ cmsProfileID profileID; // Profile ID using MD5
644
+ cmsInt8Number reserved[28]; // Reserved for future use
645
+
646
+ } cmsICCHeader;
647
+
648
+ // ICC base tag
649
+ typedef struct {
650
+ cmsTagTypeSignature sig;
651
+ cmsInt8Number reserved[4];
652
+
653
+ } cmsTagBase;
654
+
655
+ // A tag entry in directory
656
+ typedef struct {
657
+ cmsTagSignature sig; // The tag signature
658
+ cmsUInt32Number offset; // Start of tag
659
+ cmsUInt32Number size; // Size in bytes
660
+
661
+ } cmsTagEntry;
662
+
663
+ // ----------------------------------------------------------------------------------------------
664
+
665
+ // Little CMS specific typedefs
666
+
667
+ typedef void* cmsHANDLE ; // Generic handle
668
+ typedef void* cmsHPROFILE; // Opaque typedefs to hide internals
669
+ typedef void* cmsHTRANSFORM;
670
+
671
+ #define cmsMAXCHANNELS 16 // Maximum number of channels in ICC profiles
672
+
673
+ // Format of pixel is defined by one cmsUInt32Number, using bit fields as follows
674
+ //
675
+ // 2 1 0
676
+ // 4 3 2 10987 6 5 4 3 2 1 098 7654 321
677
+ // M A O TTTTT U Y F P X S EEE CCCC BBB
678
+ //
679
+ // M: Premultiplied alpha (only works when extra samples is 1)
680
+ // A: Floating point -- With this flag we can differentiate 16 bits as float and as int
681
+ // O: Optimized -- previous optimization already returns the final 8-bit value
682
+ // T: Pixeltype
683
+ // F: Flavor 0=MinIsBlack(Chocolate) 1=MinIsWhite(Vanilla)
684
+ // P: Planar? 0=Chunky, 1=Planar
685
+ // X: swap 16 bps endianness?
686
+ // S: Do swap? ie, BGR, KYMC
687
+ // E: Extra samples
688
+ // C: Channels (Samples per pixel)
689
+ // B: bytes per sample
690
+ // Y: Swap first - changes ABGR to BGRA and KCMY to CMYK
691
+
692
+ #define PREMUL_SH(m) ((m) << 23)
693
+ #define FLOAT_SH(a) ((a) << 22)
694
+ #define OPTIMIZED_SH(s) ((s) << 21)
695
+ #define COLORSPACE_SH(s) ((s) << 16)
696
+ #define SWAPFIRST_SH(s) ((s) << 14)
697
+ #define FLAVOR_SH(s) ((s) << 13)
698
+ #define PLANAR_SH(p) ((p) << 12)
699
+ #define ENDIAN16_SH(e) ((e) << 11)
700
+ #define DOSWAP_SH(e) ((e) << 10)
701
+ #define EXTRA_SH(e) ((e) << 7)
702
+ #define CHANNELS_SH(c) ((c) << 3)
703
+ #define BYTES_SH(b) (b)
704
+
705
+ // These macros unpack format specifiers into integers
706
+ #define T_PREMUL(m) (((m)>>23)&1)
707
+ #define T_FLOAT(a) (((a)>>22)&1)
708
+ #define T_OPTIMIZED(o) (((o)>>21)&1)
709
+ #define T_COLORSPACE(s) (((s)>>16)&31)
710
+ #define T_SWAPFIRST(s) (((s)>>14)&1)
711
+ #define T_FLAVOR(s) (((s)>>13)&1)
712
+ #define T_PLANAR(p) (((p)>>12)&1)
713
+ #define T_ENDIAN16(e) (((e)>>11)&1)
714
+ #define T_DOSWAP(e) (((e)>>10)&1)
715
+ #define T_EXTRA(e) (((e)>>7)&7)
716
+ #define T_CHANNELS(c) (((c)>>3)&15)
717
+ #define T_BYTES(b) ((b)&7)
718
+
719
+
720
+ // Pixel types
721
+ #define PT_ANY 0 // Don't check colorspace
722
+ // 1 & 2 are reserved
723
+ #define PT_GRAY 3
724
+ #define PT_RGB 4
725
+ #define PT_CMY 5
726
+ #define PT_CMYK 6
727
+ #define PT_YCbCr 7
728
+ #define PT_YUV 8 // Lu'v'
729
+ #define PT_XYZ 9
730
+ #define PT_Lab 10
731
+ #define PT_YUVK 11 // Lu'v'K
732
+ #define PT_HSV 12
733
+ #define PT_HLS 13
734
+ #define PT_Yxy 14
735
+ #define PT_MCH1 15
736
+ #define PT_MCH2 16
737
+ #define PT_MCH3 17
738
+ #define PT_MCH4 18
739
+ #define PT_MCH5 19
740
+ #define PT_MCH6 20
741
+ #define PT_MCH7 21
742
+ #define PT_MCH8 22
743
+ #define PT_MCH9 23
744
+ #define PT_MCH10 24
745
+ #define PT_MCH11 25
746
+ #define PT_MCH12 26
747
+ #define PT_MCH13 27
748
+ #define PT_MCH14 28
749
+ #define PT_MCH15 29
750
+ #define PT_LabV2 30 // Identical to PT_Lab, but using the V2 old encoding
751
+
752
+ // Some (not all!) representations
753
+
754
+ #ifndef TYPE_RGB_8 // TYPE_RGB_8 is a very common identifier, so don't include ours
755
+ // if user has it already defined.
756
+
757
+ #define TYPE_GRAY_8 (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(1))
758
+ #define TYPE_GRAY_8_REV (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(1)|FLAVOR_SH(1))
759
+ #define TYPE_GRAY_16 (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2))
760
+ #define TYPE_GRAY_16_REV (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)|FLAVOR_SH(1))
761
+ #define TYPE_GRAY_16_SE (COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2)|ENDIAN16_SH(1))
762
+ #define TYPE_GRAYA_8 (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1))
763
+ #define TYPE_GRAYA_8_PREMUL (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1)|PREMUL_SH(1))
764
+ #define TYPE_GRAYA_16 (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2))
765
+ #define TYPE_GRAYA_16_PREMUL (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|PREMUL_SH(1))
766
+ #define TYPE_GRAYA_16_SE (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|ENDIAN16_SH(1))
767
+ #define TYPE_GRAYA_8_PLANAR (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(1)|PLANAR_SH(1))
768
+ #define TYPE_GRAYA_16_PLANAR (COLORSPACE_SH(PT_GRAY)|EXTRA_SH(1)|CHANNELS_SH(1)|BYTES_SH(2)|PLANAR_SH(1))
769
+
770
+ #define TYPE_RGB_8 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1))
771
+ #define TYPE_RGB_8_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
772
+ #define TYPE_BGR_8 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1))
773
+ #define TYPE_BGR_8_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PLANAR_SH(1))
774
+ #define TYPE_RGB_16 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2))
775
+ #define TYPE_RGB_16_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
776
+ #define TYPE_RGB_16_SE (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
777
+ #define TYPE_BGR_16 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1))
778
+ #define TYPE_BGR_16_PLANAR (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PLANAR_SH(1))
779
+ #define TYPE_BGR_16_SE (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
780
+
781
+ #define TYPE_RGBA_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1))
782
+ #define TYPE_RGBA_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|PREMUL_SH(1))
783
+ #define TYPE_RGBA_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
784
+ #define TYPE_RGBA_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2))
785
+ #define TYPE_RGBA_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|PREMUL_SH(1))
786
+ #define TYPE_RGBA_16_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
787
+ #define TYPE_RGBA_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
788
+
789
+ #define TYPE_ARGB_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1))
790
+ #define TYPE_ARGB_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1))
791
+ #define TYPE_ARGB_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|SWAPFIRST_SH(1)|PLANAR_SH(1))
792
+ #define TYPE_ARGB_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1))
793
+ #define TYPE_ARGB_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1)|PREMUL_SH(1))
794
+
795
+ #define TYPE_ABGR_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1))
796
+ #define TYPE_ABGR_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PREMUL_SH(1))
797
+ #define TYPE_ABGR_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|PLANAR_SH(1))
798
+ #define TYPE_ABGR_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1))
799
+ #define TYPE_ABGR_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PREMUL_SH(1))
800
+ #define TYPE_ABGR_16_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|PLANAR_SH(1))
801
+ #define TYPE_ABGR_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
802
+
803
+ #define TYPE_BGRA_8 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1))
804
+ #define TYPE_BGRA_8_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1))
805
+ #define TYPE_BGRA_8_PLANAR (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PLANAR_SH(1))
806
+ #define TYPE_BGRA_16 (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1))
807
+ #define TYPE_BGRA_16_PREMUL (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1))
808
+ #define TYPE_BGRA_16_SE (COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1)|DOSWAP_SH(1)|SWAPFIRST_SH(1))
809
+
810
+ #define TYPE_CMY_8 (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(1))
811
+ #define TYPE_CMY_8_PLANAR (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
812
+ #define TYPE_CMY_16 (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2))
813
+ #define TYPE_CMY_16_PLANAR (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
814
+ #define TYPE_CMY_16_SE (COLORSPACE_SH(PT_CMY)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
815
+
816
+ #define TYPE_CMYK_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1))
817
+ #define TYPE_CMYKA_8 (COLORSPACE_SH(PT_CMYK)|EXTRA_SH(1)|CHANNELS_SH(4)|BYTES_SH(1))
818
+ #define TYPE_CMYK_8_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|FLAVOR_SH(1))
819
+ #define TYPE_YUVK_8 TYPE_CMYK_8_REV
820
+ #define TYPE_CMYK_8_PLANAR (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|PLANAR_SH(1))
821
+ #define TYPE_CMYK_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2))
822
+ #define TYPE_CMYK_16_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|FLAVOR_SH(1))
823
+ #define TYPE_YUVK_16 TYPE_CMYK_16_REV
824
+ #define TYPE_CMYK_16_PLANAR (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|PLANAR_SH(1))
825
+ #define TYPE_CMYK_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|ENDIAN16_SH(1))
826
+
827
+ #define TYPE_KYMC_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|DOSWAP_SH(1))
828
+ #define TYPE_KYMC_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|DOSWAP_SH(1))
829
+ #define TYPE_KYMC_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
830
+
831
+ #define TYPE_KCMY_8 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|SWAPFIRST_SH(1))
832
+ #define TYPE_KCMY_8_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(1)|FLAVOR_SH(1)|SWAPFIRST_SH(1))
833
+ #define TYPE_KCMY_16 (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|SWAPFIRST_SH(1))
834
+ #define TYPE_KCMY_16_REV (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|FLAVOR_SH(1)|SWAPFIRST_SH(1))
835
+ #define TYPE_KCMY_16_SE (COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2)|ENDIAN16_SH(1)|SWAPFIRST_SH(1))
836
+
837
+ #define TYPE_CMYK5_8 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(1))
838
+ #define TYPE_CMYK5_16 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2))
839
+ #define TYPE_CMYK5_16_SE (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|ENDIAN16_SH(1))
840
+ #define TYPE_KYMC5_8 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(1)|DOSWAP_SH(1))
841
+ #define TYPE_KYMC5_16 (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|DOSWAP_SH(1))
842
+ #define TYPE_KYMC5_16_SE (COLORSPACE_SH(PT_MCH5)|CHANNELS_SH(5)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
843
+ #define TYPE_CMYK6_8 (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(1))
844
+ #define TYPE_CMYK6_8_PLANAR (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(1)|PLANAR_SH(1))
845
+ #define TYPE_CMYK6_16 (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2))
846
+ #define TYPE_CMYK6_16_PLANAR (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2)|PLANAR_SH(1))
847
+ #define TYPE_CMYK6_16_SE (COLORSPACE_SH(PT_MCH6)|CHANNELS_SH(6)|BYTES_SH(2)|ENDIAN16_SH(1))
848
+ #define TYPE_CMYK7_8 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(1))
849
+ #define TYPE_CMYK7_16 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2))
850
+ #define TYPE_CMYK7_16_SE (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|ENDIAN16_SH(1))
851
+ #define TYPE_KYMC7_8 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(1)|DOSWAP_SH(1))
852
+ #define TYPE_KYMC7_16 (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|DOSWAP_SH(1))
853
+ #define TYPE_KYMC7_16_SE (COLORSPACE_SH(PT_MCH7)|CHANNELS_SH(7)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
854
+ #define TYPE_CMYK8_8 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(1))
855
+ #define TYPE_CMYK8_16 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2))
856
+ #define TYPE_CMYK8_16_SE (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|ENDIAN16_SH(1))
857
+ #define TYPE_KYMC8_8 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(1)|DOSWAP_SH(1))
858
+ #define TYPE_KYMC8_16 (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|DOSWAP_SH(1))
859
+ #define TYPE_KYMC8_16_SE (COLORSPACE_SH(PT_MCH8)|CHANNELS_SH(8)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
860
+ #define TYPE_CMYK9_8 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(1))
861
+ #define TYPE_CMYK9_16 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2))
862
+ #define TYPE_CMYK9_16_SE (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|ENDIAN16_SH(1))
863
+ #define TYPE_KYMC9_8 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(1)|DOSWAP_SH(1))
864
+ #define TYPE_KYMC9_16 (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|DOSWAP_SH(1))
865
+ #define TYPE_KYMC9_16_SE (COLORSPACE_SH(PT_MCH9)|CHANNELS_SH(9)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
866
+ #define TYPE_CMYK10_8 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(1))
867
+ #define TYPE_CMYK10_16 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2))
868
+ #define TYPE_CMYK10_16_SE (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|ENDIAN16_SH(1))
869
+ #define TYPE_KYMC10_8 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(1)|DOSWAP_SH(1))
870
+ #define TYPE_KYMC10_16 (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|DOSWAP_SH(1))
871
+ #define TYPE_KYMC10_16_SE (COLORSPACE_SH(PT_MCH10)|CHANNELS_SH(10)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
872
+ #define TYPE_CMYK11_8 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(1))
873
+ #define TYPE_CMYK11_16 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2))
874
+ #define TYPE_CMYK11_16_SE (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|ENDIAN16_SH(1))
875
+ #define TYPE_KYMC11_8 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(1)|DOSWAP_SH(1))
876
+ #define TYPE_KYMC11_16 (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|DOSWAP_SH(1))
877
+ #define TYPE_KYMC11_16_SE (COLORSPACE_SH(PT_MCH11)|CHANNELS_SH(11)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
878
+ #define TYPE_CMYK12_8 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(1))
879
+ #define TYPE_CMYK12_16 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2))
880
+ #define TYPE_CMYK12_16_SE (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|ENDIAN16_SH(1))
881
+ #define TYPE_KYMC12_8 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(1)|DOSWAP_SH(1))
882
+ #define TYPE_KYMC12_16 (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|DOSWAP_SH(1))
883
+ #define TYPE_KYMC12_16_SE (COLORSPACE_SH(PT_MCH12)|CHANNELS_SH(12)|BYTES_SH(2)|DOSWAP_SH(1)|ENDIAN16_SH(1))
884
+
885
+ // Colorimetric
886
+ #define TYPE_XYZ_16 (COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(2))
887
+ #define TYPE_Lab_8 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(1))
888
+ #define TYPE_LabV2_8 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(1))
889
+
890
+ #define TYPE_ALab_8 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(1)|EXTRA_SH(1)|SWAPFIRST_SH(1))
891
+ #define TYPE_ALabV2_8 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(1)|EXTRA_SH(1)|SWAPFIRST_SH(1))
892
+ #define TYPE_Lab_16 (COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(2))
893
+ #define TYPE_LabV2_16 (COLORSPACE_SH(PT_LabV2)|CHANNELS_SH(3)|BYTES_SH(2))
894
+ #define TYPE_Yxy_16 (COLORSPACE_SH(PT_Yxy)|CHANNELS_SH(3)|BYTES_SH(2))
895
+
896
+ // YCbCr
897
+ #define TYPE_YCbCr_8 (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(1))
898
+ #define TYPE_YCbCr_8_PLANAR (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
899
+ #define TYPE_YCbCr_16 (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2))
900
+ #define TYPE_YCbCr_16_PLANAR (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
901
+ #define TYPE_YCbCr_16_SE (COLORSPACE_SH(PT_YCbCr)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
902
+
903
+ // YUV
904
+ #define TYPE_YUV_8 (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(1))
905
+ #define TYPE_YUV_8_PLANAR (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
906
+ #define TYPE_YUV_16 (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2))
907
+ #define TYPE_YUV_16_PLANAR (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
908
+ #define TYPE_YUV_16_SE (COLORSPACE_SH(PT_YUV)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
909
+
910
+ // HLS
911
+ #define TYPE_HLS_8 (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(1))
912
+ #define TYPE_HLS_8_PLANAR (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
913
+ #define TYPE_HLS_16 (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2))
914
+ #define TYPE_HLS_16_PLANAR (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
915
+ #define TYPE_HLS_16_SE (COLORSPACE_SH(PT_HLS)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
916
+
917
+ // HSV
918
+ #define TYPE_HSV_8 (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(1))
919
+ #define TYPE_HSV_8_PLANAR (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(1)|PLANAR_SH(1))
920
+ #define TYPE_HSV_16 (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2))
921
+ #define TYPE_HSV_16_PLANAR (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2)|PLANAR_SH(1))
922
+ #define TYPE_HSV_16_SE (COLORSPACE_SH(PT_HSV)|CHANNELS_SH(3)|BYTES_SH(2)|ENDIAN16_SH(1))
923
+
924
+ // Named color index. Only 16 bits is allowed (don't check colorspace)
925
+ #define TYPE_NAMED_COLOR_INDEX (CHANNELS_SH(1)|BYTES_SH(2))
926
+
927
+ // Float formatters.
928
+ #define TYPE_XYZ_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(4))
929
+ #define TYPE_Lab_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(4))
930
+ #define TYPE_LabA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4))
931
+ #define TYPE_GRAY_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4))
932
+ #define TYPE_GRAYA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4)|EXTRA_SH(1))
933
+ #define TYPE_GRAYA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(4)|EXTRA_SH(1)|PREMUL_SH(1))
934
+ #define TYPE_RGB_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(4))
935
+
936
+ #define TYPE_RGBA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4))
937
+ #define TYPE_RGBA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|PREMUL_SH(1))
938
+ #define TYPE_ARGB_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|SWAPFIRST_SH(1))
939
+ #define TYPE_ARGB_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|SWAPFIRST_SH(1)|PREMUL_SH(1))
940
+ #define TYPE_BGR_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1))
941
+ #define TYPE_BGRA_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|SWAPFIRST_SH(1))
942
+ #define TYPE_BGRA_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|SWAPFIRST_SH(1)|PREMUL_SH(1))
943
+ #define TYPE_ABGR_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1))
944
+ #define TYPE_ABGR_FLT_PREMUL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(4)|DOSWAP_SH(1)|PREMUL_SH(1))
945
+
946
+ #define TYPE_CMYK_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(4))
947
+
948
+ // Floating point formatters.
949
+ // NOTE THAT 'BYTES' FIELD IS SET TO ZERO ON DLB because 8 bytes overflows the bitfield
950
+ #define TYPE_XYZ_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_XYZ)|CHANNELS_SH(3)|BYTES_SH(0))
951
+ #define TYPE_Lab_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_Lab)|CHANNELS_SH(3)|BYTES_SH(0))
952
+ #define TYPE_GRAY_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(0))
953
+ #define TYPE_RGB_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(0))
954
+ #define TYPE_BGR_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(0)|DOSWAP_SH(1))
955
+ #define TYPE_CMYK_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(0))
956
+ #define TYPE_OKLAB_DBL (FLOAT_SH(1)|COLORSPACE_SH(PT_MCH3)|CHANNELS_SH(3)|BYTES_SH(0))
957
+
958
+ // IEEE 754-2008 "half"
959
+ #define TYPE_GRAY_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_GRAY)|CHANNELS_SH(1)|BYTES_SH(2))
960
+ #define TYPE_RGB_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2))
961
+ #define TYPE_RGBA_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2))
962
+ #define TYPE_CMYK_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_CMYK)|CHANNELS_SH(4)|BYTES_SH(2))
963
+
964
+ #define TYPE_RGBA_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2))
965
+ #define TYPE_ARGB_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|SWAPFIRST_SH(1))
966
+ #define TYPE_BGR_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1))
967
+ #define TYPE_BGRA_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|EXTRA_SH(1)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1)|SWAPFIRST_SH(1))
968
+ #define TYPE_ABGR_HALF_FLT (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(2)|DOSWAP_SH(1))
969
+
970
+ #endif
971
+
972
+ // Colorspaces
973
+ typedef struct {
974
+ cmsFloat64Number X;
975
+ cmsFloat64Number Y;
976
+ cmsFloat64Number Z;
977
+
978
+ } cmsCIEXYZ;
979
+
980
+ typedef struct {
981
+ cmsFloat64Number x;
982
+ cmsFloat64Number y;
983
+ cmsFloat64Number Y;
984
+
985
+ } cmsCIExyY;
986
+
987
+ typedef struct {
988
+ cmsFloat64Number L;
989
+ cmsFloat64Number a;
990
+ cmsFloat64Number b;
991
+
992
+ } cmsCIELab;
993
+
994
+ typedef struct {
995
+ cmsFloat64Number L;
996
+ cmsFloat64Number C;
997
+ cmsFloat64Number h;
998
+
999
+ } cmsCIELCh;
1000
+
1001
+ typedef struct {
1002
+ cmsFloat64Number J;
1003
+ cmsFloat64Number C;
1004
+ cmsFloat64Number h;
1005
+
1006
+ } cmsJCh;
1007
+
1008
+ typedef struct {
1009
+ cmsCIEXYZ Red;
1010
+ cmsCIEXYZ Green;
1011
+ cmsCIEXYZ Blue;
1012
+
1013
+ } cmsCIEXYZTRIPLE;
1014
+
1015
+ typedef struct {
1016
+ cmsCIExyY Red;
1017
+ cmsCIExyY Green;
1018
+ cmsCIExyY Blue;
1019
+
1020
+ } cmsCIExyYTRIPLE;
1021
+
1022
+ // Illuminant types for structs below
1023
+ #define cmsILLUMINANT_TYPE_UNKNOWN 0x0000000
1024
+ #define cmsILLUMINANT_TYPE_D50 0x0000001
1025
+ #define cmsILLUMINANT_TYPE_D65 0x0000002
1026
+ #define cmsILLUMINANT_TYPE_D93 0x0000003
1027
+ #define cmsILLUMINANT_TYPE_F2 0x0000004
1028
+ #define cmsILLUMINANT_TYPE_D55 0x0000005
1029
+ #define cmsILLUMINANT_TYPE_A 0x0000006
1030
+ #define cmsILLUMINANT_TYPE_E 0x0000007
1031
+ #define cmsILLUMINANT_TYPE_F8 0x0000008
1032
+
1033
+ typedef struct {
1034
+ cmsUInt32Number Observer; // 0 = unknown, 1=CIE 1931, 2=CIE 1964
1035
+ cmsCIEXYZ Backing; // Value of backing
1036
+ cmsUInt32Number Geometry; // 0=unknown, 1=45/0, 0/45 2=0d, d/0
1037
+ cmsFloat64Number Flare; // 0..1.0
1038
+ cmsUInt32Number IlluminantType;
1039
+
1040
+ } cmsICCMeasurementConditions;
1041
+
1042
+ typedef struct {
1043
+ cmsCIEXYZ IlluminantXYZ; // Not the same struct as CAM02,
1044
+ cmsCIEXYZ SurroundXYZ; // This is for storing the tag
1045
+ cmsUInt32Number IlluminantType; // viewing condition
1046
+
1047
+ } cmsICCViewingConditions;
1048
+
1049
+ typedef struct {
1050
+ cmsUInt8Number ColourPrimaries; // Recommendation ITU-T H.273
1051
+ cmsUInt8Number TransferCharacteristics; // (ISO/IEC 23091-2)
1052
+ cmsUInt8Number MatrixCoefficients;
1053
+ cmsUInt8Number VideoFullRangeFlag;
1054
+
1055
+ } cmsVideoSignalType;
1056
+
1057
+ typedef struct {
1058
+ cmsUInt32Number CurveEntries;
1059
+ cmsFloat64Number* RedCurve;
1060
+ cmsFloat64Number* GreenCurve;
1061
+ cmsFloat64Number* BlueCurve;
1062
+
1063
+ cmsFloat64Number MinLuminance; // ST.2086 min luminance in nits
1064
+ cmsFloat64Number PeakLuminance; // ST.2086 peak luminance in nits
1065
+
1066
+ cmsFloat64Number XYZ2XYZmatrix[3][4];
1067
+
1068
+ } cmsMHC2Type;
1069
+
1070
+
1071
+
1072
+ // Get LittleCMS version (for shared objects) -----------------------------------------------------------------------------
1073
+
1074
+ CMSAPI int CMSEXPORT cmsGetEncodedCMMversion(void);
1075
+
1076
+ // Support of non-standard functions --------------------------------------------------------------------------------------
1077
+
1078
+ CMSAPI int CMSEXPORT cmsstrcasecmp(const char* s1, const char* s2);
1079
+ CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
1080
+
1081
+
1082
+ // Context handling --------------------------------------------------------------------------------------------------------
1083
+
1084
+ // Each context holds its owns globals and its own plug-ins. There is a global context with the id = 0 for lecacy compatibility
1085
+ // though using the global context is not recommended. Proper context handling makes lcms more thread-safe.
1086
+
1087
+ typedef struct _cmsContext_struct* cmsContext;
1088
+
1089
+ CMSAPI cmsContext CMSEXPORT cmsCreateContext(void* Plugin, void* UserData);
1090
+ CMSAPI void CMSEXPORT cmsDeleteContext(cmsContext ContextID);
1091
+ CMSAPI cmsContext CMSEXPORT cmsDupContext(cmsContext ContextID, void* NewUserData);
1092
+ CMSAPI void* CMSEXPORT cmsGetContextUserData(cmsContext ContextID);
1093
+
1094
+ // Plug-In registering --------------------------------------------------------------------------------------------------
1095
+
1096
+ CMSAPI cmsBool CMSEXPORT cmsPlugin(void* Plugin);
1097
+ CMSAPI cmsBool CMSEXPORT cmsPluginTHR(cmsContext ContextID, void* Plugin);
1098
+ CMSAPI void CMSEXPORT cmsUnregisterPlugins(void);
1099
+ CMSAPI void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID);
1100
+
1101
+ // Error logging ----------------------------------------------------------------------------------------------------------
1102
+
1103
+ // There is no error handling at all. When a function fails, it returns proper value.
1104
+ // For example, all create functions does return NULL on failure. Other may return FALSE.
1105
+ // It may be interesting, for the developer, to know why the function is failing.
1106
+ // for that reason, lcms2 does offer a logging function. This function will get
1107
+ // an ENGLISH string with some clues on what is going wrong. You can show this
1108
+ // info to the end user if you wish, or just create some sort of log on disk.
1109
+ // The logging function should NOT terminate the program, as this obviously can leave
1110
+ // unfreed resources. It is the programmer's responsibility to check each function
1111
+ // return code to make sure it didn't fail.
1112
+
1113
+ #define cmsERROR_UNDEFINED 0
1114
+ #define cmsERROR_FILE 1
1115
+ #define cmsERROR_RANGE 2
1116
+ #define cmsERROR_INTERNAL 3
1117
+ #define cmsERROR_NULL 4
1118
+ #define cmsERROR_READ 5
1119
+ #define cmsERROR_SEEK 6
1120
+ #define cmsERROR_WRITE 7
1121
+ #define cmsERROR_UNKNOWN_EXTENSION 8
1122
+ #define cmsERROR_COLORSPACE_CHECK 9
1123
+ #define cmsERROR_ALREADY_DEFINED 10
1124
+ #define cmsERROR_BAD_SIGNATURE 11
1125
+ #define cmsERROR_CORRUPTION_DETECTED 12
1126
+ #define cmsERROR_NOT_SUITABLE 13
1127
+
1128
+ // Error logger is called with the ContextID when a message is raised. This gives the
1129
+ // chance to know which thread is responsible of the warning and any environment associated
1130
+ // with it. Non-multithreading applications may safely ignore this parameter.
1131
+ // Note that under certain special circumstances, ContextID may be NULL.
1132
+ typedef void (* cmsLogErrorHandlerFunction)(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *Text);
1133
+
1134
+ // Allows user to set any specific logger
1135
+ CMSAPI void CMSEXPORT cmsSetLogErrorHandler(cmsLogErrorHandlerFunction Fn);
1136
+ CMSAPI void CMSEXPORT cmsSetLogErrorHandlerTHR(cmsContext ContextID, cmsLogErrorHandlerFunction Fn);
1137
+
1138
+ // Conversions --------------------------------------------------------------------------------------------------------------
1139
+
1140
+ // Returns pointers to constant structs
1141
+ CMSAPI const cmsCIEXYZ* CMSEXPORT cmsD50_XYZ(void);
1142
+ CMSAPI const cmsCIExyY* CMSEXPORT cmsD50_xyY(void);
1143
+
1144
+ // Colorimetric space conversions
1145
+ CMSAPI void CMSEXPORT cmsXYZ2xyY(cmsCIExyY* Dest, const cmsCIEXYZ* Source);
1146
+ CMSAPI void CMSEXPORT cmsxyY2XYZ(cmsCIEXYZ* Dest, const cmsCIExyY* Source);
1147
+ CMSAPI void CMSEXPORT cmsXYZ2Lab(const cmsCIEXYZ* WhitePoint, cmsCIELab* Lab, const cmsCIEXYZ* xyz);
1148
+ CMSAPI void CMSEXPORT cmsLab2XYZ(const cmsCIEXYZ* WhitePoint, cmsCIEXYZ* xyz, const cmsCIELab* Lab);
1149
+ CMSAPI void CMSEXPORT cmsLab2LCh(cmsCIELCh*LCh, const cmsCIELab* Lab);
1150
+ CMSAPI void CMSEXPORT cmsLCh2Lab(cmsCIELab* Lab, const cmsCIELCh* LCh);
1151
+
1152
+ // Encoding /Decoding on PCS
1153
+ CMSAPI void CMSEXPORT cmsLabEncoded2Float(cmsCIELab* Lab, const cmsUInt16Number wLab[3]);
1154
+ CMSAPI void CMSEXPORT cmsLabEncoded2FloatV2(cmsCIELab* Lab, const cmsUInt16Number wLab[3]);
1155
+ CMSAPI void CMSEXPORT cmsFloat2LabEncoded(cmsUInt16Number wLab[3], const cmsCIELab* Lab);
1156
+ CMSAPI void CMSEXPORT cmsFloat2LabEncodedV2(cmsUInt16Number wLab[3], const cmsCIELab* Lab);
1157
+ CMSAPI void CMSEXPORT cmsXYZEncoded2Float(cmsCIEXYZ* fxyz, const cmsUInt16Number XYZ[3]);
1158
+ CMSAPI void CMSEXPORT cmsFloat2XYZEncoded(cmsUInt16Number XYZ[3], const cmsCIEXYZ* fXYZ);
1159
+
1160
+ // DeltaE metrics
1161
+ CMSAPI cmsFloat64Number CMSEXPORT cmsDeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2);
1162
+ CMSAPI cmsFloat64Number CMSEXPORT cmsCIE94DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2);
1163
+ CMSAPI cmsFloat64Number CMSEXPORT cmsBFDdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2);
1164
+ CMSAPI cmsFloat64Number CMSEXPORT cmsCMCdeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2, cmsFloat64Number l, cmsFloat64Number c);
1165
+ CMSAPI cmsFloat64Number CMSEXPORT cmsCIE2000DeltaE(const cmsCIELab* Lab1, const cmsCIELab* Lab2, cmsFloat64Number Kl, cmsFloat64Number Kc, cmsFloat64Number Kh);
1166
+
1167
+ // Temperature <-> Chromaticity (Black body)
1168
+ CMSAPI cmsBool CMSEXPORT cmsWhitePointFromTemp(cmsCIExyY* WhitePoint, cmsFloat64Number TempK);
1169
+ CMSAPI cmsBool CMSEXPORT cmsTempFromWhitePoint(cmsFloat64Number* TempK, const cmsCIExyY* WhitePoint);
1170
+
1171
+ // Chromatic adaptation
1172
+ CMSAPI cmsBool CMSEXPORT cmsAdaptToIlluminant(cmsCIEXYZ* Result, const cmsCIEXYZ* SourceWhitePt,
1173
+ const cmsCIEXYZ* Illuminant,
1174
+ const cmsCIEXYZ* Value);
1175
+
1176
+ // CIECAM02 ---------------------------------------------------------------------------------------------------
1177
+
1178
+ // Viewing conditions. Please note those are CAM model viewing conditions, and not the ICC tag viewing
1179
+ // conditions, which I'm naming cmsICCViewingConditions to make differences evident. Unfortunately, the tag
1180
+ // cannot deal with surround La, Yb and D value so is basically useless to store CAM02 viewing conditions.
1181
+
1182
+
1183
+ #define AVG_SURROUND 1
1184
+ #define DIM_SURROUND 2
1185
+ #define DARK_SURROUND 3
1186
+ #define CUTSHEET_SURROUND 4
1187
+
1188
+ #define D_CALCULATE (-1)
1189
+
1190
+ typedef struct {
1191
+ cmsCIEXYZ whitePoint;
1192
+ cmsFloat64Number Yb;
1193
+ cmsFloat64Number La;
1194
+ cmsUInt32Number surround;
1195
+ cmsFloat64Number D_value;
1196
+
1197
+ } cmsViewingConditions;
1198
+
1199
+ CMSAPI cmsHANDLE CMSEXPORT cmsCIECAM02Init(cmsContext ContextID, const cmsViewingConditions* pVC);
1200
+ CMSAPI void CMSEXPORT cmsCIECAM02Done(cmsHANDLE hModel);
1201
+ CMSAPI void CMSEXPORT cmsCIECAM02Forward(cmsHANDLE hModel, const cmsCIEXYZ* pIn, cmsJCh* pOut);
1202
+ CMSAPI void CMSEXPORT cmsCIECAM02Reverse(cmsHANDLE hModel, const cmsJCh* pIn, cmsCIEXYZ* pOut);
1203
+
1204
+
1205
+ // Tone curves -----------------------------------------------------------------------------------------
1206
+
1207
+ // This describes a curve segment. For a table of supported types, see the manual. User can increase the number of
1208
+ // available types by using a proper plug-in. Parametric segments allow 10 parameters at most
1209
+
1210
+ typedef struct {
1211
+ cmsFloat32Number x0, x1; // Domain; for x0 < x <= x1
1212
+ cmsInt32Number Type; // Parametric type, Type == 0 means sampled segment. Negative values are reserved
1213
+ cmsFloat64Number Params[10]; // Parameters if Type != 0
1214
+ cmsUInt32Number nGridPoints; // Number of grid points if Type == 0
1215
+ cmsFloat32Number* SampledPoints; // Points to an array of floats if Type == 0
1216
+
1217
+ } cmsCurveSegment;
1218
+
1219
+ // The internal representation is none of your business.
1220
+ typedef struct _cms_curve_struct cmsToneCurve;
1221
+
1222
+ CMSAPI cmsToneCurve* CMSEXPORT cmsBuildSegmentedToneCurve(cmsContext ContextID, cmsUInt32Number nSegments, const cmsCurveSegment Segments[]);
1223
+ CMSAPI cmsToneCurve* CMSEXPORT cmsBuildParametricToneCurve(cmsContext ContextID, cmsInt32Number Type, const cmsFloat64Number Params[]);
1224
+ CMSAPI cmsToneCurve* CMSEXPORT cmsBuildGamma(cmsContext ContextID, cmsFloat64Number Gamma);
1225
+ CMSAPI cmsToneCurve* CMSEXPORT cmsBuildTabulatedToneCurve16(cmsContext ContextID, cmsUInt32Number nEntries, const cmsUInt16Number values[]);
1226
+ CMSAPI cmsToneCurve* CMSEXPORT cmsBuildTabulatedToneCurveFloat(cmsContext ContextID, cmsUInt32Number nEntries, const cmsFloat32Number values[]);
1227
+ CMSAPI void CMSEXPORT cmsFreeToneCurve(cmsToneCurve* Curve);
1228
+ CMSAPI void CMSEXPORT cmsFreeToneCurveTriple(cmsToneCurve* Curve[3]);
1229
+ CMSAPI cmsToneCurve* CMSEXPORT cmsDupToneCurve(const cmsToneCurve* Src);
1230
+ CMSAPI cmsToneCurve* CMSEXPORT cmsReverseToneCurve(const cmsToneCurve* InGamma);
1231
+ CMSAPI cmsToneCurve* CMSEXPORT cmsReverseToneCurveEx(cmsUInt32Number nResultSamples, const cmsToneCurve* InGamma);
1232
+ CMSAPI cmsToneCurve* CMSEXPORT cmsJoinToneCurve(cmsContext ContextID, const cmsToneCurve* X, const cmsToneCurve* Y, cmsUInt32Number nPoints);
1233
+ CMSAPI cmsBool CMSEXPORT cmsSmoothToneCurve(cmsToneCurve* Tab, cmsFloat64Number lambda);
1234
+ CMSAPI cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Number v);
1235
+ CMSAPI cmsUInt16Number CMSEXPORT cmsEvalToneCurve16(const cmsToneCurve* Curve, cmsUInt16Number v);
1236
+ CMSAPI cmsBool CMSEXPORT cmsIsToneCurveMultisegment(const cmsToneCurve* InGamma);
1237
+ CMSAPI cmsBool CMSEXPORT cmsIsToneCurveLinear(const cmsToneCurve* Curve);
1238
+ CMSAPI cmsBool CMSEXPORT cmsIsToneCurveMonotonic(const cmsToneCurve* t);
1239
+ CMSAPI cmsBool CMSEXPORT cmsIsToneCurveDescending(const cmsToneCurve* t);
1240
+ CMSAPI cmsInt32Number CMSEXPORT cmsGetToneCurveParametricType(const cmsToneCurve* t);
1241
+ CMSAPI cmsFloat64Number CMSEXPORT cmsEstimateGamma(const cmsToneCurve* t, cmsFloat64Number Precision);
1242
+
1243
+ CMSAPI const cmsCurveSegment* CMSEXPORT cmsGetToneCurveSegment(cmsInt32Number n, const cmsToneCurve* t);
1244
+
1245
+ // Tone curve tabular estimation
1246
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetToneCurveEstimatedTableEntries(const cmsToneCurve* t);
1247
+ CMSAPI const cmsUInt16Number* CMSEXPORT cmsGetToneCurveEstimatedTable(const cmsToneCurve* t);
1248
+
1249
+
1250
+ // Implements pipelines of multi-processing elements -------------------------------------------------------------
1251
+
1252
+ // Nothing to see here, move along
1253
+ typedef struct _cmsPipeline_struct cmsPipeline;
1254
+ typedef struct _cmsStage_struct cmsStage;
1255
+
1256
+ // Those are hi-level pipelines
1257
+ CMSAPI cmsPipeline* CMSEXPORT cmsPipelineAlloc(cmsContext ContextID, cmsUInt32Number InputChannels, cmsUInt32Number OutputChannels);
1258
+ CMSAPI void CMSEXPORT cmsPipelineFree(cmsPipeline* lut);
1259
+ CMSAPI cmsPipeline* CMSEXPORT cmsPipelineDup(const cmsPipeline* Orig);
1260
+
1261
+ CMSAPI cmsContext CMSEXPORT cmsGetPipelineContextID(const cmsPipeline* lut);
1262
+ CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineInputChannels(const cmsPipeline* lut);
1263
+ CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineOutputChannels(const cmsPipeline* lut);
1264
+
1265
+ CMSAPI cmsUInt32Number CMSEXPORT cmsPipelineStageCount(const cmsPipeline* lut);
1266
+ CMSAPI cmsStage* CMSEXPORT cmsPipelineGetPtrToFirstStage(const cmsPipeline* lut);
1267
+ CMSAPI cmsStage* CMSEXPORT cmsPipelineGetPtrToLastStage(const cmsPipeline* lut);
1268
+
1269
+ CMSAPI void CMSEXPORT cmsPipelineEval16(const cmsUInt16Number In[], cmsUInt16Number Out[], const cmsPipeline* lut);
1270
+ CMSAPI void CMSEXPORT cmsPipelineEvalFloat(const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsPipeline* lut);
1271
+ CMSAPI cmsBool CMSEXPORT cmsPipelineEvalReverseFloat(cmsFloat32Number Target[], cmsFloat32Number Result[], cmsFloat32Number Hint[], const cmsPipeline* lut);
1272
+ CMSAPI cmsBool CMSEXPORT cmsPipelineCat(cmsPipeline* l1, const cmsPipeline* l2);
1273
+ CMSAPI cmsBool CMSEXPORT cmsPipelineSetSaveAs8bitsFlag(cmsPipeline* lut, cmsBool On);
1274
+
1275
+ // Where to place/locate the stages in the pipeline chain
1276
+ typedef enum { cmsAT_BEGIN, cmsAT_END } cmsStageLoc;
1277
+
1278
+ CMSAPI cmsBool CMSEXPORT cmsPipelineInsertStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage* mpe);
1279
+ CMSAPI void CMSEXPORT cmsPipelineUnlinkStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage** mpe);
1280
+
1281
+ // This function is quite useful to analyze the structure of a Pipeline and retrieve the Stage elements
1282
+ // that conform the Pipeline. It should be called with the Pipeline, the number of expected elements and
1283
+ // then a list of expected types followed with a list of double pointers to Stage elements. If
1284
+ // the function founds a match with current pipeline, it fills the pointers and returns TRUE
1285
+ // if not, returns FALSE without touching anything.
1286
+ CMSAPI cmsBool CMSEXPORT cmsPipelineCheckAndRetreiveStages(const cmsPipeline* Lut, cmsUInt32Number n, ...);
1287
+
1288
+ // Matrix has double precision and CLUT has only float precision. That is because an ICC profile can encode
1289
+ // matrices with far more precision that CLUTS
1290
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, cmsUInt32Number nChannels);
1291
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocToneCurves(cmsContext ContextID, cmsUInt32Number nChannels, cmsToneCurve* const Curves[]);
1292
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext ContextID, cmsUInt32Number Rows, cmsUInt32Number Cols, const cmsFloat64Number* Matrix, const cmsFloat64Number* Offset);
1293
+
1294
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bit(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table);
1295
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloat(cmsContext ContextID, cmsUInt32Number nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table);
1296
+
1297
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLut16bitGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsUInt16Number* Table);
1298
+ CMSAPI cmsStage* CMSEXPORT cmsStageAllocCLutFloatGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table);
1299
+
1300
+ CMSAPI cmsStage* CMSEXPORT cmsStageDup(cmsStage* mpe);
1301
+ CMSAPI void CMSEXPORT cmsStageFree(cmsStage* mpe);
1302
+ CMSAPI cmsStage* CMSEXPORT cmsStageNext(const cmsStage* mpe);
1303
+
1304
+ CMSAPI cmsUInt32Number CMSEXPORT cmsStageInputChannels(const cmsStage* mpe);
1305
+ CMSAPI cmsUInt32Number CMSEXPORT cmsStageOutputChannels(const cmsStage* mpe);
1306
+ CMSAPI cmsStageSignature CMSEXPORT cmsStageType(const cmsStage* mpe);
1307
+ CMSAPI void* CMSEXPORT cmsStageData(const cmsStage* mpe);
1308
+ CMSAPI cmsContext CMSEXPORT cmsGetStageContextID(const cmsStage* mpe);
1309
+
1310
+ // Sampling
1311
+ typedef cmsInt32Number (* cmsSAMPLER16) (CMSREGISTER const cmsUInt16Number In[],
1312
+ CMSREGISTER cmsUInt16Number Out[],
1313
+ CMSREGISTER void * Cargo);
1314
+
1315
+ typedef cmsInt32Number (* cmsSAMPLERFLOAT)(CMSREGISTER const cmsFloat32Number In[],
1316
+ CMSREGISTER cmsFloat32Number Out[],
1317
+ CMSREGISTER void * Cargo);
1318
+
1319
+ // Use this flag to prevent changes being written to destination
1320
+ #define SAMPLER_INSPECT 0x01000000
1321
+
1322
+ // For CLUT only
1323
+ CMSAPI cmsBool CMSEXPORT cmsStageSampleCLut16bit(cmsStage* mpe, cmsSAMPLER16 Sampler, void* Cargo, cmsUInt32Number dwFlags);
1324
+ CMSAPI cmsBool CMSEXPORT cmsStageSampleCLutFloat(cmsStage* mpe, cmsSAMPLERFLOAT Sampler, void* Cargo, cmsUInt32Number dwFlags);
1325
+
1326
+ // Slicers
1327
+ CMSAPI cmsBool CMSEXPORT cmsSliceSpace16(cmsUInt32Number nInputs, const cmsUInt32Number clutPoints[],
1328
+ cmsSAMPLER16 Sampler, void * Cargo);
1329
+
1330
+ CMSAPI cmsBool CMSEXPORT cmsSliceSpaceFloat(cmsUInt32Number nInputs, const cmsUInt32Number clutPoints[],
1331
+ cmsSAMPLERFLOAT Sampler, void * Cargo);
1332
+
1333
+ // Multilocalized Unicode management ---------------------------------------------------------------------------------------
1334
+
1335
+ typedef struct _cms_MLU_struct cmsMLU;
1336
+
1337
+ #define cmsNoLanguage "\0\0"
1338
+ #define cmsNoCountry "\0\0"
1339
+
1340
+ // Special language/country to retrieve unicode field for description in V2 profiles. Use with care.
1341
+ #define cmsV2Unicode "\xff\xff"
1342
+
1343
+ CMSAPI cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems);
1344
+ CMSAPI void CMSEXPORT cmsMLUfree(cmsMLU* mlu);
1345
+ CMSAPI cmsMLU* CMSEXPORT cmsMLUdup(const cmsMLU* mlu);
1346
+
1347
+ CMSAPI cmsBool CMSEXPORT cmsMLUsetASCII(cmsMLU* mlu,
1348
+ const char LanguageCode[3], const char CountryCode[3],
1349
+ const char* ASCIIString);
1350
+ CMSAPI cmsBool CMSEXPORT cmsMLUsetWide(cmsMLU* mlu,
1351
+ const char LanguageCode[3], const char CountryCode[3],
1352
+ const wchar_t* WideString);
1353
+ CMSAPI cmsBool CMSEXPORT cmsMLUsetUTF8(cmsMLU* mlu,
1354
+ const char LanguageCode[3], const char CountryCode[3],
1355
+ const char* UTF8String);
1356
+
1357
+ CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetASCII(const cmsMLU* mlu,
1358
+ const char LanguageCode[3], const char CountryCode[3],
1359
+ char* Buffer, cmsUInt32Number BufferSize);
1360
+
1361
+ CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetWide(const cmsMLU* mlu,
1362
+ const char LanguageCode[3], const char CountryCode[3],
1363
+ wchar_t* Buffer, cmsUInt32Number BufferSize);
1364
+ CMSAPI cmsUInt32Number CMSEXPORT cmsMLUgetUTF8(const cmsMLU* mlu,
1365
+ const char LanguageCode[3], const char CountryCode[3],
1366
+ char* Buffer, cmsUInt32Number BufferSize);
1367
+
1368
+
1369
+ CMSAPI cmsBool CMSEXPORT cmsMLUgetTranslation(const cmsMLU* mlu,
1370
+ const char LanguageCode[3], const char CountryCode[3],
1371
+ char ObtainedLanguage[3], char ObtainedCountry[3]);
1372
+
1373
+ CMSAPI cmsUInt32Number CMSEXPORT cmsMLUtranslationsCount(const cmsMLU* mlu);
1374
+
1375
+ CMSAPI cmsBool CMSEXPORT cmsMLUtranslationsCodes(const cmsMLU* mlu,
1376
+ cmsUInt32Number idx,
1377
+ char LanguageCode[3],
1378
+ char CountryCode[3]);
1379
+
1380
+ // Undercolorremoval & black generation -------------------------------------------------------------------------------------
1381
+
1382
+ typedef struct {
1383
+ cmsToneCurve* Ucr;
1384
+ cmsToneCurve* Bg;
1385
+ cmsMLU* Desc;
1386
+
1387
+ } cmsUcrBg;
1388
+
1389
+ // Screening ----------------------------------------------------------------------------------------------------------------
1390
+
1391
+ #define cmsPRINTER_DEFAULT_SCREENS 0x0001
1392
+ #define cmsFREQUENCE_UNITS_LINES_CM 0x0000
1393
+ #define cmsFREQUENCE_UNITS_LINES_INCH 0x0002
1394
+
1395
+ #define cmsSPOT_UNKNOWN 0
1396
+ #define cmsSPOT_PRINTER_DEFAULT 1
1397
+ #define cmsSPOT_ROUND 2
1398
+ #define cmsSPOT_DIAMOND 3
1399
+ #define cmsSPOT_ELLIPSE 4
1400
+ #define cmsSPOT_LINE 5
1401
+ #define cmsSPOT_SQUARE 6
1402
+ #define cmsSPOT_CROSS 7
1403
+
1404
+ typedef struct {
1405
+ cmsFloat64Number Frequency;
1406
+ cmsFloat64Number ScreenAngle;
1407
+ cmsUInt32Number SpotShape;
1408
+
1409
+ } cmsScreeningChannel;
1410
+
1411
+ typedef struct {
1412
+ cmsUInt32Number Flag;
1413
+ cmsUInt32Number nChannels;
1414
+ cmsScreeningChannel Channels[cmsMAXCHANNELS];
1415
+
1416
+ } cmsScreening;
1417
+
1418
+
1419
+ // Named color -----------------------------------------------------------------------------------------------------------------
1420
+
1421
+ typedef struct _cms_NAMEDCOLORLIST_struct cmsNAMEDCOLORLIST;
1422
+
1423
+ CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID,
1424
+ cmsUInt32Number n,
1425
+ cmsUInt32Number ColorantCount,
1426
+ const char* Prefix, const char* Suffix);
1427
+
1428
+ CMSAPI void CMSEXPORT cmsFreeNamedColorList(cmsNAMEDCOLORLIST* v);
1429
+ CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsDupNamedColorList(const cmsNAMEDCOLORLIST* v);
1430
+ CMSAPI cmsBool CMSEXPORT cmsAppendNamedColor(cmsNAMEDCOLORLIST* v, const char* Name,
1431
+ cmsUInt16Number PCS[3],
1432
+ cmsUInt16Number Colorant[cmsMAXCHANNELS]);
1433
+
1434
+ CMSAPI cmsUInt32Number CMSEXPORT cmsNamedColorCount(const cmsNAMEDCOLORLIST* v);
1435
+ CMSAPI cmsInt32Number CMSEXPORT cmsNamedColorIndex(const cmsNAMEDCOLORLIST* v, const char* Name);
1436
+
1437
+ CMSAPI cmsBool CMSEXPORT cmsNamedColorInfo(const cmsNAMEDCOLORLIST* NamedColorList, cmsUInt32Number nColor,
1438
+ char* Name,
1439
+ char* Prefix,
1440
+ char* Suffix,
1441
+ cmsUInt16Number* PCS,
1442
+ cmsUInt16Number* Colorant);
1443
+
1444
+ // Retrieve named color list from transform
1445
+ CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetNamedColorList(cmsHTRANSFORM xform);
1446
+
1447
+ // Profile sequence -----------------------------------------------------------------------------------------------------
1448
+
1449
+ // Profile sequence descriptor. Some fields come from profile sequence descriptor tag, others
1450
+ // come from Profile Sequence Identifier Tag
1451
+ typedef struct {
1452
+
1453
+ cmsSignature deviceMfg;
1454
+ cmsSignature deviceModel;
1455
+ cmsUInt64Number attributes;
1456
+ cmsTechnologySignature technology;
1457
+ cmsProfileID ProfileID;
1458
+ cmsMLU* Manufacturer;
1459
+ cmsMLU* Model;
1460
+ cmsMLU* Description;
1461
+
1462
+ } cmsPSEQDESC;
1463
+
1464
+ typedef struct {
1465
+
1466
+ cmsUInt32Number n;
1467
+ cmsContext ContextID;
1468
+ cmsPSEQDESC* seq;
1469
+
1470
+ } cmsSEQ;
1471
+
1472
+ CMSAPI cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n);
1473
+ CMSAPI cmsSEQ* CMSEXPORT cmsDupProfileSequenceDescription(const cmsSEQ* pseq);
1474
+ CMSAPI void CMSEXPORT cmsFreeProfileSequenceDescription(cmsSEQ* pseq);
1475
+
1476
+ // Dictionaries --------------------------------------------------------------------------------------------------------
1477
+
1478
+ typedef struct _cmsDICTentry_struct {
1479
+
1480
+ struct _cmsDICTentry_struct* Next;
1481
+
1482
+ cmsMLU *DisplayName;
1483
+ cmsMLU *DisplayValue;
1484
+ wchar_t* Name;
1485
+ wchar_t* Value;
1486
+
1487
+ } cmsDICTentry;
1488
+
1489
+ CMSAPI cmsHANDLE CMSEXPORT cmsDictAlloc(cmsContext ContextID);
1490
+ CMSAPI void CMSEXPORT cmsDictFree(cmsHANDLE hDict);
1491
+ CMSAPI cmsHANDLE CMSEXPORT cmsDictDup(cmsHANDLE hDict);
1492
+
1493
+ CMSAPI cmsBool CMSEXPORT cmsDictAddEntry(cmsHANDLE hDict, const wchar_t* Name, const wchar_t* Value, const cmsMLU *DisplayName, const cmsMLU *DisplayValue);
1494
+ CMSAPI const cmsDICTentry* CMSEXPORT cmsDictGetEntryList(cmsHANDLE hDict);
1495
+ CMSAPI const cmsDICTentry* CMSEXPORT cmsDictNextEntry(const cmsDICTentry* e);
1496
+
1497
+ // Access to Profile data ----------------------------------------------------------------------------------------------
1498
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateProfilePlaceholder(cmsContext ContextID);
1499
+
1500
+ CMSAPI cmsContext CMSEXPORT cmsGetProfileContextID(cmsHPROFILE hProfile);
1501
+ CMSAPI cmsInt32Number CMSEXPORT cmsGetTagCount(cmsHPROFILE hProfile);
1502
+ CMSAPI cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n);
1503
+ CMSAPI cmsBool CMSEXPORT cmsIsTag(cmsHPROFILE hProfile, cmsTagSignature sig);
1504
+
1505
+ // Read and write pre-formatted data
1506
+ CMSAPI void* CMSEXPORT cmsReadTag(cmsHPROFILE hProfile, cmsTagSignature sig);
1507
+ CMSAPI cmsBool CMSEXPORT cmsWriteTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data);
1508
+ CMSAPI cmsBool CMSEXPORT cmsLinkTag(cmsHPROFILE hProfile, cmsTagSignature sig, cmsTagSignature dest);
1509
+ CMSAPI cmsTagSignature CMSEXPORT cmsTagLinkedTo(cmsHPROFILE hProfile, cmsTagSignature sig);
1510
+
1511
+ // Read and write raw data
1512
+ CMSAPI cmsUInt32Number CMSEXPORT cmsReadRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, void* Buffer, cmsUInt32Number BufferSize);
1513
+ CMSAPI cmsBool CMSEXPORT cmsWriteRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data, cmsUInt32Number Size);
1514
+
1515
+ // Access header data
1516
+ #define cmsEmbeddedProfileFalse 0x00000000
1517
+ #define cmsEmbeddedProfileTrue 0x00000001
1518
+ #define cmsUseAnywhere 0x00000000
1519
+ #define cmsUseWithEmbeddedDataOnly 0x00000002
1520
+
1521
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderFlags(cmsHPROFILE hProfile);
1522
+ CMSAPI void CMSEXPORT cmsGetHeaderAttributes(cmsHPROFILE hProfile, cmsUInt64Number* Flags);
1523
+ CMSAPI void CMSEXPORT cmsGetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID);
1524
+ CMSAPI cmsBool CMSEXPORT cmsGetHeaderCreationDateTime(cmsHPROFILE hProfile, struct tm *Dest);
1525
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderRenderingIntent(cmsHPROFILE hProfile);
1526
+
1527
+ CMSAPI void CMSEXPORT cmsSetHeaderFlags(cmsHPROFILE hProfile, cmsUInt32Number Flags);
1528
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderManufacturer(cmsHPROFILE hProfile);
1529
+ CMSAPI void CMSEXPORT cmsSetHeaderManufacturer(cmsHPROFILE hProfile, cmsUInt32Number manufacturer);
1530
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderCreator(cmsHPROFILE hProfile);
1531
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderModel(cmsHPROFILE hProfile);
1532
+ CMSAPI void CMSEXPORT cmsSetHeaderModel(cmsHPROFILE hProfile, cmsUInt32Number model);
1533
+ CMSAPI void CMSEXPORT cmsSetHeaderAttributes(cmsHPROFILE hProfile, cmsUInt64Number Flags);
1534
+ CMSAPI void CMSEXPORT cmsSetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID);
1535
+ CMSAPI void CMSEXPORT cmsSetHeaderRenderingIntent(cmsHPROFILE hProfile, cmsUInt32Number RenderingIntent);
1536
+
1537
+ CMSAPI cmsColorSpaceSignature
1538
+ CMSEXPORT cmsGetPCS(cmsHPROFILE hProfile);
1539
+ CMSAPI void CMSEXPORT cmsSetPCS(cmsHPROFILE hProfile, cmsColorSpaceSignature pcs);
1540
+ CMSAPI cmsColorSpaceSignature
1541
+ CMSEXPORT cmsGetColorSpace(cmsHPROFILE hProfile);
1542
+ CMSAPI void CMSEXPORT cmsSetColorSpace(cmsHPROFILE hProfile, cmsColorSpaceSignature sig);
1543
+ CMSAPI cmsProfileClassSignature
1544
+ CMSEXPORT cmsGetDeviceClass(cmsHPROFILE hProfile);
1545
+ CMSAPI void CMSEXPORT cmsSetDeviceClass(cmsHPROFILE hProfile, cmsProfileClassSignature sig);
1546
+ CMSAPI void CMSEXPORT cmsSetProfileVersion(cmsHPROFILE hProfile, cmsFloat64Number Version);
1547
+ CMSAPI cmsFloat64Number CMSEXPORT cmsGetProfileVersion(cmsHPROFILE hProfile);
1548
+
1549
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetEncodedICCversion(cmsHPROFILE hProfile);
1550
+ CMSAPI void CMSEXPORT cmsSetEncodedICCversion(cmsHPROFILE hProfile, cmsUInt32Number Version);
1551
+
1552
+ // How profiles may be used
1553
+ #define LCMS_USED_AS_INPUT 0
1554
+ #define LCMS_USED_AS_OUTPUT 1
1555
+ #define LCMS_USED_AS_PROOF 2
1556
+
1557
+ CMSAPI cmsBool CMSEXPORT cmsIsIntentSupported(cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number UsedDirection);
1558
+ CMSAPI cmsBool CMSEXPORT cmsIsMatrixShaper(cmsHPROFILE hProfile);
1559
+ CMSAPI cmsBool CMSEXPORT cmsIsCLUT(cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number UsedDirection);
1560
+
1561
+ // Translate form/to our notation to ICC
1562
+ CMSAPI cmsColorSpaceSignature CMSEXPORT _cmsICCcolorSpace(int OurNotation);
1563
+ CMSAPI int CMSEXPORT _cmsLCMScolorSpace(cmsColorSpaceSignature ProfileSpace);
1564
+
1565
+ // Deprecated, use cmsChannelsOfColorSpace instead
1566
+ CMSAPI cmsUInt32Number CMSEXPORT cmsChannelsOf(cmsColorSpaceSignature ColorSpace);
1567
+
1568
+ // Get number of channels of color space or -1 if color space is not listed/supported
1569
+ CMSAPI cmsInt32Number CMSEXPORT cmsChannelsOfColorSpace(cmsColorSpaceSignature ColorSpace);
1570
+
1571
+ // Build a suitable formatter for the colorspace of this profile. nBytes=1 means 8 bits, nBytes=2 means 16 bits.
1572
+ CMSAPI cmsUInt32Number CMSEXPORT cmsFormatterForColorspaceOfProfile(cmsHPROFILE hProfile, cmsUInt32Number nBytes, cmsBool lIsFloat);
1573
+ CMSAPI cmsUInt32Number CMSEXPORT cmsFormatterForPCSOfProfile(cmsHPROFILE hProfile, cmsUInt32Number nBytes, cmsBool lIsFloat);
1574
+
1575
+
1576
+ // Localized info
1577
+ typedef enum {
1578
+ cmsInfoDescription = 0,
1579
+ cmsInfoManufacturer = 1,
1580
+ cmsInfoModel = 2,
1581
+ cmsInfoCopyright = 3
1582
+ } cmsInfoType;
1583
+
1584
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfo(cmsHPROFILE hProfile, cmsInfoType Info,
1585
+ const char LanguageCode[3], const char CountryCode[3],
1586
+ wchar_t* Buffer, cmsUInt32Number BufferSize);
1587
+
1588
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfoASCII(cmsHPROFILE hProfile, cmsInfoType Info,
1589
+ const char LanguageCode[3], const char CountryCode[3],
1590
+ char* Buffer, cmsUInt32Number BufferSize);
1591
+
1592
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetProfileInfoUTF8(cmsHPROFILE hProfile, cmsInfoType Info,
1593
+ const char LanguageCode[3], const char CountryCode[3],
1594
+ char* Buffer, cmsUInt32Number BufferSize);
1595
+
1596
+ // IO handlers ----------------------------------------------------------------------------------------------------------
1597
+
1598
+ typedef struct _cms_io_handler cmsIOHANDLER;
1599
+
1600
+ CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromFile(cmsContext ContextID, const char* FileName, const char* AccessMode);
1601
+ CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromStream(cmsContext ContextID, FILE* Stream);
1602
+ CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromMem(cmsContext ContextID, void *Buffer, cmsUInt32Number size, const char* AccessMode);
1603
+ CMSAPI cmsIOHANDLER* CMSEXPORT cmsOpenIOhandlerFromNULL(cmsContext ContextID);
1604
+ CMSAPI cmsIOHANDLER* CMSEXPORT cmsGetProfileIOhandler(cmsHPROFILE hProfile);
1605
+ CMSAPI cmsBool CMSEXPORT cmsCloseIOhandler(cmsIOHANDLER* io);
1606
+
1607
+ // MD5 message digest --------------------------------------------------------------------------------------------------
1608
+
1609
+ CMSAPI cmsBool CMSEXPORT cmsMD5computeID(cmsHPROFILE hProfile);
1610
+
1611
+ // Profile high level functions ------------------------------------------------------------------------------------------
1612
+
1613
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromFile(const char *ICCProfile, const char *sAccess);
1614
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromFileTHR(cmsContext ContextID, const char *ICCProfile, const char *sAccess);
1615
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromStream(FILE* ICCProfile, const char* sAccess);
1616
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromStreamTHR(cmsContext ContextID, FILE* ICCProfile, const char* sAccess);
1617
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromMem(const void * MemPtr, cmsUInt32Number dwSize);
1618
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromMemTHR(cmsContext ContextID, const void * MemPtr, cmsUInt32Number dwSize);
1619
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromIOhandlerTHR(cmsContext ContextID, cmsIOHANDLER* io);
1620
+ CMSAPI cmsHPROFILE CMSEXPORT cmsOpenProfileFromIOhandler2THR(cmsContext ContextID, cmsIOHANDLER* io, cmsBool write);
1621
+ CMSAPI cmsBool CMSEXPORT cmsCloseProfile(cmsHPROFILE hProfile);
1622
+
1623
+ CMSAPI cmsBool CMSEXPORT cmsSaveProfileToFile(cmsHPROFILE hProfile, const char* FileName);
1624
+ CMSAPI cmsBool CMSEXPORT cmsSaveProfileToStream(cmsHPROFILE hProfile, FILE* Stream);
1625
+ CMSAPI cmsBool CMSEXPORT cmsSaveProfileToMem(cmsHPROFILE hProfile, void *MemPtr, cmsUInt32Number* BytesNeeded);
1626
+ CMSAPI cmsUInt32Number CMSEXPORT cmsSaveProfileToIOhandler(cmsHPROFILE hProfile, cmsIOHANDLER* io);
1627
+
1628
+ // Predefined virtual profiles ------------------------------------------------------------------------------------------
1629
+
1630
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateRGBProfileTHR(cmsContext ContextID,
1631
+ const cmsCIExyY* WhitePoint,
1632
+ const cmsCIExyYTRIPLE* Primaries,
1633
+ cmsToneCurve* const TransferFunction[3]);
1634
+
1635
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateRGBProfile(const cmsCIExyY* WhitePoint,
1636
+ const cmsCIExyYTRIPLE* Primaries,
1637
+ cmsToneCurve* const TransferFunction[3]);
1638
+
1639
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateGrayProfileTHR(cmsContext ContextID,
1640
+ const cmsCIExyY* WhitePoint,
1641
+ const cmsToneCurve* TransferFunction);
1642
+
1643
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateGrayProfile(const cmsCIExyY* WhitePoint,
1644
+ const cmsToneCurve* TransferFunction);
1645
+
1646
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLinkTHR(cmsContext ContextID,
1647
+ cmsColorSpaceSignature ColorSpace,
1648
+ cmsToneCurve* const TransferFunctions[]);
1649
+
1650
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLinearizationDeviceLink(cmsColorSpaceSignature ColorSpace,
1651
+ cmsToneCurve* const TransferFunctions[]);
1652
+
1653
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLinkTHR(cmsContext ContextID,
1654
+ cmsColorSpaceSignature ColorSpace, cmsFloat64Number Limit);
1655
+
1656
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLink(cmsColorSpaceSignature ColorSpace, cmsFloat64Number Limit);
1657
+
1658
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateDeviceLinkFromCubeFile(const char* cFileName);
1659
+
1660
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateDeviceLinkFromCubeFileTHR(cmsContext ContextID, const char* cFileName);
1661
+
1662
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab2ProfileTHR(cmsContext ContextID, const cmsCIExyY* WhitePoint);
1663
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab2Profile(const cmsCIExyY* WhitePoint);
1664
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab4ProfileTHR(cmsContext ContextID, const cmsCIExyY* WhitePoint);
1665
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateLab4Profile(const cmsCIExyY* WhitePoint);
1666
+
1667
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateXYZProfileTHR(cmsContext ContextID);
1668
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateXYZProfile(void);
1669
+
1670
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_sRGBProfileTHR(cmsContext ContextID);
1671
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_sRGBProfile(void);
1672
+
1673
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreate_OkLabProfile(cmsContext ctx);
1674
+
1675
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateBCHSWabstractProfileTHR(cmsContext ContextID,
1676
+ cmsUInt32Number nLUTPoints,
1677
+ cmsFloat64Number Bright,
1678
+ cmsFloat64Number Contrast,
1679
+ cmsFloat64Number Hue,
1680
+ cmsFloat64Number Saturation,
1681
+ cmsUInt32Number TempSrc,
1682
+ cmsUInt32Number TempDest);
1683
+
1684
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateBCHSWabstractProfile(cmsUInt32Number nLUTPoints,
1685
+ cmsFloat64Number Bright,
1686
+ cmsFloat64Number Contrast,
1687
+ cmsFloat64Number Hue,
1688
+ cmsFloat64Number Saturation,
1689
+ cmsUInt32Number TempSrc,
1690
+ cmsUInt32Number TempDest);
1691
+
1692
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateNULLProfileTHR(cmsContext ContextID);
1693
+ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateNULLProfile(void);
1694
+
1695
+ // Converts a transform to a devicelink profile
1696
+ CMSAPI cmsHPROFILE CMSEXPORT cmsTransform2DeviceLink(cmsHTRANSFORM hTransform, cmsFloat64Number Version, cmsUInt32Number dwFlags);
1697
+
1698
+ // Intents ----------------------------------------------------------------------------------------------
1699
+
1700
+ // ICC Intents
1701
+ #define INTENT_PERCEPTUAL 0
1702
+ #define INTENT_RELATIVE_COLORIMETRIC 1
1703
+ #define INTENT_SATURATION 2
1704
+ #define INTENT_ABSOLUTE_COLORIMETRIC 3
1705
+
1706
+ // Non-ICC intents
1707
+ #define INTENT_PRESERVE_K_ONLY_PERCEPTUAL 10
1708
+ #define INTENT_PRESERVE_K_ONLY_RELATIVE_COLORIMETRIC 11
1709
+ #define INTENT_PRESERVE_K_ONLY_SATURATION 12
1710
+ #define INTENT_PRESERVE_K_PLANE_PERCEPTUAL 13
1711
+ #define INTENT_PRESERVE_K_PLANE_RELATIVE_COLORIMETRIC 14
1712
+ #define INTENT_PRESERVE_K_PLANE_SATURATION 15
1713
+
1714
+ // Call with NULL as parameters to get the intent count
1715
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetSupportedIntents(cmsUInt32Number nMax, cmsUInt32Number* Codes, char** Descriptions);
1716
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetSupportedIntentsTHR(cmsContext ContextID, cmsUInt32Number nMax, cmsUInt32Number* Codes, char** Descriptions);
1717
+
1718
+ // Flags
1719
+
1720
+ #define cmsFLAGS_NOCACHE 0x0040 // Inhibit 1-pixel cache
1721
+ #define cmsFLAGS_NOOPTIMIZE 0x0100 // Inhibit optimizations
1722
+ #define cmsFLAGS_NULLTRANSFORM 0x0200 // Don't transform anyway
1723
+
1724
+ // Proofing flags
1725
+ #define cmsFLAGS_GAMUTCHECK 0x1000 // Out of Gamut alarm
1726
+ #define cmsFLAGS_SOFTPROOFING 0x4000 // Do softproofing
1727
+
1728
+ // Misc
1729
+ #define cmsFLAGS_BLACKPOINTCOMPENSATION 0x2000
1730
+ #define cmsFLAGS_NOWHITEONWHITEFIXUP 0x0004 // Don't fix scum dot
1731
+ #define cmsFLAGS_HIGHRESPRECALC 0x0400 // Use more memory to give better accuracy
1732
+ #define cmsFLAGS_LOWRESPRECALC 0x0800 // Use less memory to minimize resources
1733
+
1734
+ // For devicelink creation
1735
+ #define cmsFLAGS_8BITS_DEVICELINK 0x0008 // Create 8 bits devicelinks
1736
+ #define cmsFLAGS_GUESSDEVICECLASS 0x0020 // Guess device class (for transform2devicelink)
1737
+ #define cmsFLAGS_KEEP_SEQUENCE 0x0080 // Keep profile sequence for devicelink creation
1738
+
1739
+ // Specific to a particular optimizations
1740
+ #define cmsFLAGS_FORCE_CLUT 0x0002 // Force CLUT optimization
1741
+ #define cmsFLAGS_CLUT_POST_LINEARIZATION 0x0001 // create postlinearization tables if possible
1742
+ #define cmsFLAGS_CLUT_PRE_LINEARIZATION 0x0010 // create prelinearization tables if possible
1743
+
1744
+ // Specific to unbounded mode
1745
+ #define cmsFLAGS_NONEGATIVES 0x8000 // Prevent negative numbers in floating point transforms
1746
+
1747
+ // Copy alpha channels when transforming
1748
+ #define cmsFLAGS_COPY_ALPHA 0x04000000 // Alpha channels are copied on cmsDoTransform()
1749
+
1750
+ // Fine-tune control over number of gridpoints
1751
+ #define cmsFLAGS_GRIDPOINTS(n) (((n) & 0xFF) << 16)
1752
+
1753
+ // CRD special
1754
+ #define cmsFLAGS_NODEFAULTRESOURCEDEF 0x01000000
1755
+
1756
+ // Transforms ---------------------------------------------------------------------------------------------------
1757
+
1758
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateTransformTHR(cmsContext ContextID,
1759
+ cmsHPROFILE Input,
1760
+ cmsUInt32Number InputFormat,
1761
+ cmsHPROFILE Output,
1762
+ cmsUInt32Number OutputFormat,
1763
+ cmsUInt32Number Intent,
1764
+ cmsUInt32Number dwFlags);
1765
+
1766
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateTransform(cmsHPROFILE Input,
1767
+ cmsUInt32Number InputFormat,
1768
+ cmsHPROFILE Output,
1769
+ cmsUInt32Number OutputFormat,
1770
+ cmsUInt32Number Intent,
1771
+ cmsUInt32Number dwFlags);
1772
+
1773
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateProofingTransformTHR(cmsContext ContextID,
1774
+ cmsHPROFILE Input,
1775
+ cmsUInt32Number InputFormat,
1776
+ cmsHPROFILE Output,
1777
+ cmsUInt32Number OutputFormat,
1778
+ cmsHPROFILE Proofing,
1779
+ cmsUInt32Number Intent,
1780
+ cmsUInt32Number ProofingIntent,
1781
+ cmsUInt32Number dwFlags);
1782
+
1783
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateProofingTransform(cmsHPROFILE Input,
1784
+ cmsUInt32Number InputFormat,
1785
+ cmsHPROFILE Output,
1786
+ cmsUInt32Number OutputFormat,
1787
+ cmsHPROFILE Proofing,
1788
+ cmsUInt32Number Intent,
1789
+ cmsUInt32Number ProofingIntent,
1790
+ cmsUInt32Number dwFlags);
1791
+
1792
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateMultiprofileTransformTHR(cmsContext ContextID,
1793
+ cmsHPROFILE hProfiles[],
1794
+ cmsUInt32Number nProfiles,
1795
+ cmsUInt32Number InputFormat,
1796
+ cmsUInt32Number OutputFormat,
1797
+ cmsUInt32Number Intent,
1798
+ cmsUInt32Number dwFlags);
1799
+
1800
+
1801
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateMultiprofileTransform(cmsHPROFILE hProfiles[],
1802
+ cmsUInt32Number nProfiles,
1803
+ cmsUInt32Number InputFormat,
1804
+ cmsUInt32Number OutputFormat,
1805
+ cmsUInt32Number Intent,
1806
+ cmsUInt32Number dwFlags);
1807
+
1808
+
1809
+ CMSAPI cmsHTRANSFORM CMSEXPORT cmsCreateExtendedTransform(cmsContext ContextID,
1810
+ cmsUInt32Number nProfiles, cmsHPROFILE hProfiles[],
1811
+ cmsBool BPC[],
1812
+ cmsUInt32Number Intents[],
1813
+ cmsFloat64Number AdaptationStates[],
1814
+ cmsHPROFILE hGamutProfile,
1815
+ cmsUInt32Number nGamutPCSposition,
1816
+ cmsUInt32Number InputFormat,
1817
+ cmsUInt32Number OutputFormat,
1818
+ cmsUInt32Number dwFlags);
1819
+
1820
+ CMSAPI void CMSEXPORT cmsDeleteTransform(cmsHTRANSFORM hTransform);
1821
+
1822
+ CMSAPI void CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform,
1823
+ const void * InputBuffer,
1824
+ void * OutputBuffer,
1825
+ cmsUInt32Number Size);
1826
+
1827
+ CMSAPI void CMSEXPORT cmsDoTransformStride(cmsHTRANSFORM Transform, // Deprecated
1828
+ const void * InputBuffer,
1829
+ void * OutputBuffer,
1830
+ cmsUInt32Number Size,
1831
+ cmsUInt32Number Stride);
1832
+
1833
+ CMSAPI void CMSEXPORT cmsDoTransformLineStride(cmsHTRANSFORM Transform,
1834
+ const void* InputBuffer,
1835
+ void* OutputBuffer,
1836
+ cmsUInt32Number PixelsPerLine,
1837
+ cmsUInt32Number LineCount,
1838
+ cmsUInt32Number BytesPerLineIn,
1839
+ cmsUInt32Number BytesPerLineOut,
1840
+ cmsUInt32Number BytesPerPlaneIn,
1841
+ cmsUInt32Number BytesPerPlaneOut);
1842
+
1843
+
1844
+ CMSAPI void CMSEXPORT cmsSetAlarmCodes(const cmsUInt16Number NewAlarm[cmsMAXCHANNELS]);
1845
+ CMSAPI void CMSEXPORT cmsGetAlarmCodes(cmsUInt16Number NewAlarm[cmsMAXCHANNELS]);
1846
+
1847
+
1848
+ CMSAPI void CMSEXPORT cmsSetAlarmCodesTHR(cmsContext ContextID,
1849
+ const cmsUInt16Number AlarmCodes[cmsMAXCHANNELS]);
1850
+ CMSAPI void CMSEXPORT cmsGetAlarmCodesTHR(cmsContext ContextID,
1851
+ cmsUInt16Number AlarmCodes[cmsMAXCHANNELS]);
1852
+
1853
+
1854
+
1855
+ // Adaptation state for absolute colorimetric intent
1856
+ CMSAPI cmsFloat64Number CMSEXPORT cmsSetAdaptationState(cmsFloat64Number d);
1857
+ CMSAPI cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d);
1858
+
1859
+
1860
+
1861
+ // Grab the ContextID from an open transform. Returns NULL if a NULL transform is passed
1862
+ CMSAPI cmsContext CMSEXPORT cmsGetTransformContextID(cmsHTRANSFORM hTransform);
1863
+
1864
+ // Grab the input/output formats
1865
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform);
1866
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform);
1867
+
1868
+ // For backwards compatibility
1869
+ CMSAPI cmsBool CMSEXPORT cmsChangeBuffersFormat(cmsHTRANSFORM hTransform,
1870
+ cmsUInt32Number InputFormat,
1871
+ cmsUInt32Number OutputFormat);
1872
+
1873
+
1874
+
1875
+ // PostScript ColorRenderingDictionary and ColorSpaceArray ----------------------------------------------------
1876
+
1877
+ typedef enum { cmsPS_RESOURCE_CSA, cmsPS_RESOURCE_CRD } cmsPSResourceType;
1878
+
1879
+ // lcms2 unified method to access postscript color resources
1880
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptColorResource(cmsContext ContextID,
1881
+ cmsPSResourceType Type,
1882
+ cmsHPROFILE hProfile,
1883
+ cmsUInt32Number Intent,
1884
+ cmsUInt32Number dwFlags,
1885
+ cmsIOHANDLER* io);
1886
+
1887
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptCSA(cmsContext ContextID, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags, void* Buffer, cmsUInt32Number dwBufferLen);
1888
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetPostScriptCRD(cmsContext ContextID, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags, void* Buffer, cmsUInt32Number dwBufferLen);
1889
+
1890
+
1891
+ // IT8.7 / CGATS.17-200x handling -----------------------------------------------------------------------------
1892
+
1893
+ CMSAPI cmsHANDLE CMSEXPORT cmsIT8Alloc(cmsContext ContextID);
1894
+ CMSAPI void CMSEXPORT cmsIT8Free(cmsHANDLE hIT8);
1895
+
1896
+ // Tables
1897
+ CMSAPI cmsUInt32Number CMSEXPORT cmsIT8TableCount(cmsHANDLE hIT8);
1898
+ CMSAPI cmsInt32Number CMSEXPORT cmsIT8SetTable(cmsHANDLE hIT8, cmsUInt32Number nTable);
1899
+
1900
+ // Persistence
1901
+ CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(cmsContext ContextID, const char* cFileName);
1902
+ CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromMem(cmsContext ContextID, const void *Ptr, cmsUInt32Number len);
1903
+ // CMSAPI cmsHANDLE CMSEXPORT cmsIT8LoadFromIOhandler(cmsContext ContextID, cmsIOHANDLER* io);
1904
+
1905
+ CMSAPI cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHANDLE hIT8, const char* cFileName);
1906
+ CMSAPI cmsBool CMSEXPORT cmsIT8SaveToMem(cmsHANDLE hIT8, void *MemPtr, cmsUInt32Number* BytesNeeded);
1907
+
1908
+ // Properties
1909
+ CMSAPI const char* CMSEXPORT cmsIT8GetSheetType(cmsHANDLE hIT8);
1910
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetSheetType(cmsHANDLE hIT8, const char* Type);
1911
+
1912
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetComment(cmsHANDLE hIT8, const char* cComment);
1913
+
1914
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyStr(cmsHANDLE hIT8, const char* cProp, const char *Str);
1915
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyDbl(cmsHANDLE hIT8, const char* cProp, cmsFloat64Number Val);
1916
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyHex(cmsHANDLE hIT8, const char* cProp, cmsUInt32Number Val);
1917
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char* SubKey, const char *Buffer);
1918
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetPropertyUncooked(cmsHANDLE hIT8, const char* Key, const char* Buffer);
1919
+
1920
+
1921
+ CMSAPI const char* CMSEXPORT cmsIT8GetProperty(cmsHANDLE hIT8, const char* cProp);
1922
+ CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetPropertyDbl(cmsHANDLE hIT8, const char* cProp);
1923
+ CMSAPI const char* CMSEXPORT cmsIT8GetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char *SubKey);
1924
+ CMSAPI cmsUInt32Number CMSEXPORT cmsIT8EnumProperties(cmsHANDLE hIT8, char ***PropertyNames);
1925
+ CMSAPI cmsUInt32Number CMSEXPORT cmsIT8EnumPropertyMulti(cmsHANDLE hIT8, const char* cProp, const char ***SubpropertyNames);
1926
+
1927
+ // Datasets
1928
+ CMSAPI const char* CMSEXPORT cmsIT8GetDataRowCol(cmsHANDLE hIT8, int row, int col);
1929
+ CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetDataRowColDbl(cmsHANDLE hIT8, int row, int col);
1930
+
1931
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetDataRowCol(cmsHANDLE hIT8, int row, int col,
1932
+ const char* Val);
1933
+
1934
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetDataRowColDbl(cmsHANDLE hIT8, int row, int col,
1935
+ cmsFloat64Number Val);
1936
+
1937
+ CMSAPI const char* CMSEXPORT cmsIT8GetData(cmsHANDLE hIT8, const char* cPatch, const char* cSample);
1938
+
1939
+
1940
+ CMSAPI cmsFloat64Number CMSEXPORT cmsIT8GetDataDbl(cmsHANDLE hIT8, const char* cPatch, const char* cSample);
1941
+
1942
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetData(cmsHANDLE hIT8, const char* cPatch,
1943
+ const char* cSample,
1944
+ const char *Val);
1945
+
1946
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetDataDbl(cmsHANDLE hIT8, const char* cPatch,
1947
+ const char* cSample,
1948
+ cmsFloat64Number Val);
1949
+
1950
+ CMSAPI int CMSEXPORT cmsIT8FindDataFormat(cmsHANDLE hIT8, const char* cSample);
1951
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetDataFormat(cmsHANDLE hIT8, int n, const char *Sample);
1952
+ CMSAPI int CMSEXPORT cmsIT8EnumDataFormat(cmsHANDLE hIT8, char ***SampleNames);
1953
+
1954
+ CMSAPI const char* CMSEXPORT cmsIT8GetPatchName(cmsHANDLE hIT8, int nPatch, char* buffer);
1955
+ CMSAPI int CMSEXPORT cmsIT8GetPatchByName(cmsHANDLE hIT8, const char *cPatch);
1956
+
1957
+ // The LABEL extension
1958
+ CMSAPI int CMSEXPORT cmsIT8SetTableByLabel(cmsHANDLE hIT8, const char* cSet, const char* cField, const char* ExpectedType);
1959
+
1960
+ CMSAPI cmsBool CMSEXPORT cmsIT8SetIndexColumn(cmsHANDLE hIT8, const char* cSample);
1961
+
1962
+ // Formatter for double
1963
+ CMSAPI void CMSEXPORT cmsIT8DefineDblFormat(cmsHANDLE hIT8, const char* Formatter);
1964
+
1965
+ // Gamut boundary description routines ------------------------------------------------------------------------------
1966
+
1967
+ CMSAPI cmsHANDLE CMSEXPORT cmsGBDAlloc(cmsContext ContextID);
1968
+ CMSAPI void CMSEXPORT cmsGBDFree(cmsHANDLE hGBD);
1969
+ CMSAPI cmsBool CMSEXPORT cmsGDBAddPoint(cmsHANDLE hGBD, const cmsCIELab* Lab);
1970
+ CMSAPI cmsBool CMSEXPORT cmsGDBCompute(cmsHANDLE hGDB, cmsUInt32Number dwFlags);
1971
+ CMSAPI cmsBool CMSEXPORT cmsGDBCheckPoint(cmsHANDLE hGBD, const cmsCIELab* Lab);
1972
+
1973
+ // Feature detection ----------------------------------------------------------------------------------------------
1974
+
1975
+ // Estimate the black point
1976
+ CMSAPI cmsBool CMSEXPORT cmsDetectBlackPoint(cmsCIEXYZ* BlackPoint, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags);
1977
+ CMSAPI cmsBool CMSEXPORT cmsDetectDestinationBlackPoint(cmsCIEXYZ* BlackPoint, cmsHPROFILE hProfile, cmsUInt32Number Intent, cmsUInt32Number dwFlags);
1978
+
1979
+ // Estimate total area coverage
1980
+ CMSAPI cmsFloat64Number CMSEXPORT cmsDetectTAC(cmsHPROFILE hProfile);
1981
+
1982
+ // Estimate gamma space, always positive. Returns -1 on error.
1983
+ CMSAPI cmsFloat64Number CMSEXPORT cmsDetectRGBProfileGamma(cmsHPROFILE hProfile, cmsFloat64Number threshold);
1984
+
1985
+ // Poor man's gamut mapping
1986
+ CMSAPI cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab,
1987
+ double amax, double amin,
1988
+ double bmax, double bmin);
1989
+
1990
+ #ifndef CMS_USE_CPP_API
1991
+ # ifdef __cplusplus
1992
+ }
1993
+ # endif
1994
+ #endif
1995
+
1996
+ #define _lcms2_H
1997
+ #endif