>Now, would I be right in saying that the pre-cooked md5 of the profile
>should be returned using the cmsGetHeaderProfileID?

Right. It takes almost no time. A profile ID of zero is also valid. 
See what the spec says:


"7.2.18 Profile ID field (Bytes 84 to 99)
This field should be used to record a checksum value which, if used, shall
be generated using the MD5 fingerprinting method as defined in Internet RFC
1321. The entire profile, based on the size field in the header, shall be
used to calculate the ID after the values in the Profile Flags field (bytes
44 to 47 - see 7.2.11),Rendering intent field (Bytes 64 to 67 - see 7.2.15)
and Profile ID field (Bytes 84 to 99 - see 7.2.18 ) in the profile header
have been temporarily replaced with zeros. If a profile ID has not been
calculated the value of the field shall be set to zero."


>Would it be
>sane to open the profiles on this embedded box, calculate the md5
>using cmsMD5computeID, resave the profiles in the same location and
>then the problem would go away.

I think that should work fine. 

Regards
Marti

Original Message:
-----------------
From: Richard Hughes hughsi...@gmail.com
Date: Thu, 7 Apr 2011 19:00:00 +0100
To: lcms-user@lists.sourceforge.net
Subject: [Lcms-user] colord startup time;why does cmsGetHeaderProfileID
return zero?


I've had a bug report opened that says that colord takes up more than
5% of the total time to boot on an embedded system. After doing some
analysis with sysprof, colord spends the majority of it's time just
generating the MD5 of the system profiles before it pushes the
information on the bus.

Now, would I be right in saying that the pre-cooked md5 of the profile
should be returned using the cmsGetHeaderProfileID? All the profiles
on my system seem to return a profile ID of zero. Using iccdump, it
looks like none of the profiles have any data for the profile id.

Is this expected? If I remember correctly, the ProfileID was a ICC
version 4 specification addition, and is also optional. Would it be
sane to open the profiles on this embedded box, calculate the md5
using cmsMD5computeID, resave the profiles in the same location and
then the problem would go away. The other alternative is to ship a
smaller set of color profiles for this slow system. Ideas welcome.

Thanks,

Richard.

----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


--------------------------------------------------------------------
mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to