Hi,

today have ported the lcms 1.16/1.17 Python bindings through ctypes mostly to 
the lcms 2.0 preview. Some things are different, and I had to skip some other 
things, but in general it worked quite well.

Some things that I have noticed, in no particular order of importance:

 * I had to modify my unit tests quite a bit with regards to test colour
   conversions. lcms2 produced often significantly different colour conversion
   results than lcms1. These were particularly obvious in the extreme values,
   which could be considered out of gamut. But especially those corner values
   are important for unit testing, that's why I have used them, and kept them.
   Is this anticipated, that these have changed so significantly due to a
   different algorithm for the colour conversion?

 * lcms2_plugin.h: Why does the struct _cms_interp_struc also have the name
   cmsInterpParams? To me one would be less confusing ...

 * lcms2_plugin.h: _cms_interp_struc contains a reference to
   cmsInterpFunction. cmsInterpFunction contains references to _cmsInterpFn16
   and _cmsInterpFnFloat. The last two (_cmsInterpFn16 and _cmsInterpFnFloat)
   contain references back to _cms_interp_struc forming a ring. Is this
   intended? Under the current architecture for Python ctypes I cannot map
   such dependency rings.

 * I can map the before mentioned only by breaking the ring and (most
   sensibly) not mapping the contents of cmsInterpFunction, therefore
   not exposing the possible interpolation functions for 16 bit and floats.

 * How is the access to ICC (header) information handled in lcms2? That is the
   former cmsTakeProduct*() functions (e. g. cmsTakeProductName()).


Some observations of functions that seem to be gone missing or not implemented 
(yet). I don't worry much about them, but I couldn't find anything from the 
lcms1 samples to make them work on lcms2.

 * I couldn't find any equivalent to the cmsClampLab() function anymore.

 * Support for CIECAM97 seems to be dropped.

 * The function cmsEstimateGamma() seems to be gone.

Any comments or opinions?

Guy

-- 
Guy K. Kloss
Institute of Information and Mathematical Sciences
Te Kura Pūtaiao o Mōhiohio me Pāngarau
Room 2.63, Quad Block A Building
Massey University, Auckland, Albany
Private Bag 102 904, North Shore Mail Centre
voice: +64 9 414-0800 ext. 9585   fax: +64 9 441-8181
eMail: g.kl...@massey.ac.nz  http://iims.massey.ac.nz


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to