Hi,
Using lcms 2.0, the following sample code crashes:
---
cmsFloat64Number V4ToV2[] = {65280.0/65535.0,0,0, 0,65280.0/65535.0,0,
0,0,65280.0/65535.0};
cmsPipelineInsertStage(pl,cmsAT_END,cmsStageAllocMatrix(0,3,3,V4ToV2,NULL);
.
.
cmsCloseProfile(hOut);
---
The error happens at the point where the profile is saved.
In 'cmstypes.c', function 'WriteMatrix()':
if (!_cmsWrite15Fixed16Number(io, m -> Offset[0])) return FALSE;
does returns false, because Offset is still NULL.
I think it is probably easy to fix.
For the moment I just workaround the (minor) problem by specifying the
offset at cmsStageAllocMatrix and not using NULL.
Best regards,
Auke
Greetings,
Auke Nauta
--
Everyone knew it was impossible.
Then an idiot came along who didnt know...
[original: Marcel Pagnol]
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user