Re: [Lcms-user] Use cmsLinkTag when TransferFunction[1-2] is NULL
An ICC-based CMM for color management
Brought to you by:
mm2
|
From: Marti M. <mar...@li...> - 2012-12-24 17:01:12
|
El 21/12/2012 22:33, Richard Hughes escribió: > 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. Looks great, I will incorporate it to the master sources after Christmas, as actually I've no access to the computer where I do the qualification. Thanks for the contribution! Regards & merry xmas Marti |