[Lcms-user] 16-bit pixel range

2014-05-21 Thread Terence Tay
Hi, When doing a color transform, LCMS seems to assume that the input (and output) images occupy the full range of the pixel type. For example, if the type is TYPE_RGBA_8, then the pixel value range is 0..255. If the type is TYPE_RGBA_16, then the pixel value range is 0..65535. I am working with

Re: [Lcms-user] 16-bit pixel range

2014-05-21 Thread Marti . maria
Hi, Quoting Terence Tay terence...@gmail.com: Is it possible to tell LCMS to work in the range of 0..32768 directly without requiring a conversion? Yes, but you have to write some code. Take a look on the formatters Plug-in, on the plug-in API documentation. Basically you have to write

Re: [Lcms-user] 16-bit pixel range

2014-05-21 Thread Terence Tay
Hi Marti, Thanks for your reply. Will this method be more efficient than the manual conversion that I am already doing before and after calling cmsDoTransform()? On May 21, 2014, at 6:42 PM, marti.ma...@littlecms.com wrote: Hi, Quoting Terence Tay terence...@gmail.com: Is it