[Openicc] alpha channels and 16-8 bit rgb transforms

Boudewijn Rempt boud at valdyas.org
Thu Aug 25 20:52:52 EST 2005


Is it possible to have lcms copy the alpha channel values when doing a 
transform? Or should that happen automatically?

And, perhaps related, if I do something like this:

// Or any other rgb profile, problem is the same
cmsHPROFILE hProfile = cmsCreate_sRGBProfile(); 

cmsHTRANSFORM tf = cmsCreateTransform(hProfile,
                                      TYPE_BGRA_16,
                                      hProfile,
                                      TYPE_BGRA_8,
                                      INTENT_PERCEPTUAL,
                                      0);

cmsDoTransform(tf, rgb16data, rgb8data, numPixels);

Then the result will be half apparently half-transparent.
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/openicc/attachments/20050825/8e28e219/attachment.pgp


More information about the openicc mailing list