I'm currently looking to move from LCMS 1 to LCMS 2 however the significant changes regarding "advanced" usage are making it a bit difficult. As such I'm wondering if there's an LCMS 1 to LCMS 2 transition guide, particularly regarding advanced usage. I've looked through the docs and mailing list archives and really can't find much on how to move from LCMS 1 to 2 for advanced uses. Does there exist such a guide? If so please point me to it. ;-)
As I can't find such a guide I'll just start asking questions. Although things do appear to have changed significantly it does look like a lot of functionality can still be done with the new API, however there also seems to be a lot of omissions (ex: the matrix & vector functions but those are available via lcms2_plugin.h). Here's a list of some LCMS 1 functions that I can't find equivalents for in LCMS 2 as well as a few functions and what I understand to be their equivalents in LCMS 2 - please correct me if I'm wrong: LCMS1: cmsTakeIluminant(LPcmsCIEXYZ Dest, cmsHPROFILE hProfile); cmsBuildRGB2XYZtransferMatrix(LPMAT3 r, LPcmsCIExyY WhitePoint, LPcmsCIExyYTRIPLE Primaries); LCMS2: Unknown LCMS1: cmsTakeColorants(LPcmsCIEXYZTRIPLE Dest, cmsHPROFILE hProfile); LCMS2: cmsCIEXYZ cRed, cGrn, cBlu; cRed = *(cmsCIEXYZ *)cmsReadTag( hProfile, cmsSigRedColorantTag ); cGrn = *(cmsCIEXYZ *)cmsReadTag( hProfile, cmsSigGreenColorantTag ); cBlu = *(cmsCIEXYZ *)cmsReadTag( hProfile, cmsSigBlueColorantTag ); LCMS1: cmsCIEXYZ whitePoint; cmsTakeMediaWhitePoint( &whitePoint, hProfile ); LCMS2: cmsCIEXYZ whitePoint = *(cmsCIEXYZ *)cmsReadTag( hProfile, cmsSigMediaWhitePointTag ); I see that there is a _cmsBuildRGB2XYZtransferMatrix in lcms2_internal.h - why isn't this included in the public interface? 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. Cheers -- Dave Thorup Senior Software Engineer http://bibblelabs.com ------------------------------------------------------------------------------ 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