Typically when creating profiles you have a transfer function set up like this:

transfer[0] = cmsBuildGamma (NULL, 2.2);
transfer[1] = transfer[0];
transfer[2] = transfer[0];

and then do something like cmsCreateRGBProfile(transfer). I don't
think LCMS notices this, and embeds 3 copies of the parametric curve
into the profile. Using the attached patch means if we use the same
curve for all channels then this is only embedded once and we instead
link to the same data area in the profile header. The patch is lightly
tested, and probably needs a sanity test case in the check program.
Using this patch makes the generated profiles smaller.

Comments welcome, thanks.

Richard

Attachment: lcms-link-trc.patch
Description: Binary data

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to