In lcms.h, ToFixedDomain() is defined like this:

LCMS_INLINE Fixed32 ToFixedDomain(int a) { return a + ((a + 0x7fff) / 0xffff); }

But, I can't understand the exact meaning of this function.--;;
I basically understand the conversion between 32-bit fixed point (15.16) number and
32-bit integer by simple shift operation, but I'm not sure about what this ToFixedDomain()
function is for.

Since this function is so frequently called throught the entire source codes, I cannot go forward
understanding the structure of lcms core functions.

Please enlighten me on this issue !

Regards,
Jaewoo Ahn.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to