Re: [Lcms-user] cmsBuildTabulatedToneCurve16
An ICC-based CMM for color management
Brought to you by:
mm2
|
From: Pascal de B. <pmj...@gm...> - 2012-10-14 16:53:12
|
On Sat, Oct 13, 2012 at 5:47 PM, Marti Maria <mar...@li...> wrote:
>
> Try this one I'm sending, you have to fill the copyright and description but
> all remaining tags are ok
Thanks, that's very helpful. There is just one thing left, which is
that some of our 'desc' tags have ScriptCode and some don't:
tag 0:
sig 'desc'
type 'desc'
offset 264
size 116
TextDescription:
ASCII data, length 8 chars:
0x0000: sRGB\000\000\000
No Unicode data
ScriptCode Data, Code 0x0, length 9 chars
0x0000: 00 73 00 52 00 47 00 42 00
tag 1:
sig 'dmnd'
type 'desc'
offset 380
size 128
TextDescription:
ASCII data, length 12 chars:
0x0000: Darktable\000\000
No Unicode data
No ScriptCode data
tag 2:
sig 'dmdd'
type 'desc'
offset 508
size 116
TextDescription:
ASCII data, length 8 chars:
0x0000: sRGB\000\000\000
No Unicode data
ScriptCode Data, Code 0x0, length 9 chars
0x0000: 00 73 00 52 00 47 00 42 00
All these tags are added in the same way:
cmsMLU *mlu0 = cmsMLUalloc(NULL, 1);
cmsMLUsetASCII(mlu0, "en", "US", "sRGB");
cmsMLU *mlu1 = cmsMLUalloc(NULL, 1);
cmsMLUsetASCII(mlu1, "en", "US", "Darktable");
cmsMLU *mlu2 = cmsMLUalloc(NULL, 1);
cmsMLUsetASCII(mlu2, "en", "US", "sRGB");
cmsWriteTag(hsRGB, cmsSigProfileDescriptionTag, mlu0);
cmsWriteTag(hsRGB, cmsSigDeviceMfgDescTag, mlu1);
cmsWriteTag(hsRGB, cmsSigDeviceModelDescTag, mlu2);
cmsMLUfree(mlu0);
cmsMLUfree(mlu1);
cmsMLUfree(mlu2);
Do you have any clue why they would end up differently in the ICC
(I've attached the ICC in question)?
I'm not particularly clear on what ScriptCode is, glancing over the
ICCv2 spec didn't clear anything up either...
Regards,
Pascal de Bruijn
|