Hi,

This hardly depends on the encoding used by the profile.
Anyway, for these rare formats not supported directly by lcms, 
you have cmsSetUserFormatters() function. See cmmpack.c
for samples on how to build these formatters. 

At the end, the "native" range is 0...0xFFFF since lcms always
operates internally at 16 bits.

Regards,
Marti.


----- Original Message ----- 
From: "Daniel Rogers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 5:21 AM
Subject: [Lcms-user] determining the normalized range


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi-
> 
> Is there a way to use lcms to determine the min and max normalized
> double values of a color component?  In otherwords, suppose I want to
> use a pixel representation not supported by lcms, and I want to use
> doubles as a fallback representation.  How do I determine how to
> normalize my representation so that lcms can correctly convert the data
> as doubles?
> 
> An slightly useless example would be, suppose lcms could only convert
> doubles, and I wanted to convert 8 bit RBG data.  In order to pass the
> data into lcms, I would need to divide each sample by 255 in order to
> get a value between 0.0 and 1.0, otherwise lcms would not be correctly
> converting the data.
> 
> - --
> Daniel S. Rogers
> [EMAIL PROTECTED]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQE/Tsayad4P1+ZAZk0RAgRuAJwOgXG5kiIXy7AKpRoGLQFVkMHwnACfXtQm
> 196LDvI61fJtKZ+/UOdTQAY=
> =ZXYC
> -----END PGP SIGNATURE-----
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Lcms-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lcms-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to