Thanks for the pointers, I actually got it all pretty much working by the time 
of your post. The only things that I haven't been able to find equivalents for 
are the cmsTakeIluminant(...) & cmsBuildRGB2XYZtransferMatrix(...). In place of 
cmsTakeIluminant(...) I'm just using cmsD50_XYZ() as the docs from LCMS 1 state:

-----------------
 Notes: ICC states that profile illuminants MUST be D50. However,
 in real world, each manufacturer uses an illuminant value that
 differs slightly of D50. lcms takes this variation in account
 and does the necessary scaling.
-----------------

So it would be nice to get the Illuminant from the profile but I don't see how 
that's possible in LCMS 2.

As for cmsBuildRGB2XYZtransferMatrix(...), I'm currently just including 
<lcms2_internal.h> where needed and using the now private 
_cmsBuildRGB2XYZtransferMatrix(...). Yeah, I know, we shouldn't be using the 
private API but it wasn't private before. ;-) Any reason why that's no longer 
exported? 

Thanks
--
Dave Thorup
Senior Software Engineer
http://bibblelabs.com


On Apr 29, 2011, at 12:21 AM, Kai-Uwe Behrmann wrote:

> Am 28.04.11, 14:30 -0500 schrieb Dave Thorup:
>> The only other significant change that's causing troubles is the move from 
>> GAMMATABLEs to cmsToneCurve, but that looks like it should be fairly 
>> straightforward.
> 
> I can only suggest some public working code for figuring out yourself.
> Oyranos has two modules for lcms for lcms1 and lcms2 which are maintained. 
> You might look at the lcm[s,2]GamutCheckAbstract() functions. They shall 
> provide the according functionality in eigther way. Of course lcms2 is more 
> capable in regards to float processing.
> 
> http://oyranos.org/scm?p=oyranos.git;a=blob;f=modules/oyranos_cmm_lcm2.c;h=04d0b9ba77a275f18fb3b031047885c02406f5cf;hb=HEAD#l1066
> http://oyranos.org/scm?p=oyranos.git;a=blob;f=modules/oyranos_cmm_lcms.c;h=3b3aebe4537bd90a979f46f80ebf7c47b34b338c;hb=HEAD#l995
> 
> kind regards
> Kai-Uwe Behrmann
> -- 
> developing for colour management www.behrmann.name + www.oyranos.org
> 


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to