Am 04.04.11, 16:26 +0100 schrieb Robin Watts: > Gents, > > I have recently started the process of modifying Ghostscript to be > able to use lcms v2 rather than v1 as is currently the case. > > In so doing, I have found a couple of things I've had to tweak within > the library. I plan to start to feed these back in the hopes that > either they will be adopted within the release versions of the > library, or that you can inform me how to get the same effects > without such modifications.
Hello Robin, your suggested patch appears very small. In the past the input and output data structure members of the colour transforms where not part of a suggestedly stable public API. lcms had many non so stable APIs marked with a underscore. At least to me this appeared always clear. And I avoid as good as possible these APIs. One other alternative way to provide the functionality as in your patch is to add a wrapper around lcms' cmsHTRANSFORM, like struct lcms_wrapper { objectType type; cmsHTRANSFORM xform; cmsHPROFILE profile_array[]; int profile_count; int intent; int intent_proofing; int flags; ... /* more as you like and need */ }; kind regards Kai-Uwe Behrmann -- developing for colour management www.behrmann.name + www.oyranos.org ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user