Re: [Lcms-user] float types

2012-06-03 Thread Kai-Uwe Behrmann
Bob Friesenhahn bfrie...@simple.dallas.tx.us schrieb: Likewise, GraphicsMagick includes work by Richard Nolde which knows how to handle 16 and 24 bit floats. He actually wrote a full conversion suite between 16, 24, 32, and 64-bit floats. I only incorporated the specific functions that

Re: [Lcms-user] float types

2012-06-03 Thread James Cloos
mm == marti maria marti.ma...@littlecms.com writes: mm Thanks everybody for your contribution. I'm right now working with mm Bob's approach because: I don't have time right now for anything lengthy, but having been reminded that lcms and gm are both mit, I agree that the code used in gm is the

Re: [Lcms-user] float types

2012-06-02 Thread James Cloos
The ieeehalfprecision.c file from the matlab package covers all possible half values quickly and efficiently, using only type punning to integers, bit comparisons ( and the like) and bit shifts. The licence is BSD and the api is super simple: int singles2halfp(void *target, void *source, int

Re: [Lcms-user] float types

2012-06-02 Thread Bob Friesenhahn
Likewise, GraphicsMagick includes work by Richard Nolde which knows how to handle 16 and 24 bit floats. He actually wrote a full conversion suite between 16, 24, 32, and 64-bit floats. I only incorporated the specific functions that GraphicsMagick needs. This code has been in GraphicsMagick

Re: [Lcms-user] float types

2012-05-31 Thread Boudewijn Rempt
On Sunday 15 August 2010 Aug, marti.ma...@littlecms.com wrote: Quoting Kai-Uwe Behrmann k...@gmx.de: Grepping the sources did not show a cmsFloat16Number type. Am I right in that Half is currently not supported by lcms? Right, still not supported but there are plans to provide formatters

Re: [Lcms-user] float types

2012-05-31 Thread Kai-Uwe Behrmann
Am 31.05.12, 12:16 +0200 schrieb Boudewijn Rempt: On Sunday 15 August 2010 Aug, marti.ma...@littlecms.com wrote: Quoting Kai-Uwe Behrmann k...@gmx.de: Grepping the sources did not show a cmsFloat16Number type. Am I right in that Half is currently not supported by lcms? Right, still not

Re: [Lcms-user] float types

2012-05-31 Thread marti . maria
Hi Boudewijn, It would be certainly easy to support that by writting a plug-in. Regards Marti Boudewijn Rempt b...@valdyas.org escribió: On Sunday 15 August 2010 Aug, marti.ma...@littlecms.com wrote: Quoting Kai-Uwe Behrmann k...@gmx.de: Grepping the sources did not show a

Re: [Lcms-user] float types

2012-05-31 Thread Robin Watts
On 31/05/2012 15:02, Bob Friesenhahn wrote: The challenge with Half is finding portable C code to convert to and from Half. There is contributed code in GraphicsMagick for this (and also 24-bit floats) but it may not be entirely error-free or suitably fast. I forwarded this link to Marti

Re: [Lcms-user] float types

2012-05-31 Thread marti . maria
Thanks Robin, I have an implementation based on tables I did time ago. It is based on a paper from a conference I attendend time ago...I don't remember exactly. Sorry, I have to double check the origin. But the file you suggest seems also very good. In fact the conversion seems simple if

Re: [Lcms-user] float types

2012-05-31 Thread Kai-Uwe Behrmann
Am 31.05.12, 21:24 +0200 schrieb marti.ma...@littlecms.com: Ok, the table-based implementation is neat but takes some memory, 2048 32bit words for mantissa table and there are other additional tables as well. I can include that in the lcms foundation, or pack it as a plug-in. The plug-in

Re: [Lcms-user] float types

2012-05-31 Thread Boudewijn Rempt
On Thursday 31 May 2012 May, marti.ma...@littlecms.com wrote: Thanks Robin, I have an implementation based on tables I did time ago. It is based on a paper from a conference I attendend time ago...I don't remember exactly. Sorry, I have to double check the origin. But the file you

Re: [Lcms-user] float types

2012-05-31 Thread Bob Friesenhahn
On Thu, 31 May 2012, Boudewijn Rempt wrote: As an application developer, I'm totally fine with the packaged plugin approach, if distributions will package it. I can live both with the extra call and the extra memory requirement -- and I totally understand not wanting to burden every user

Re: [Lcms-user] float types

2010-08-15 Thread Bob Friesenhahn
On Sun, 15 Aug 2010, Kai-Uwe Behrmann wrote: Grepping the sources did not show a cmsFloat16Number type. Am I right in that Half is currently not supported by lcms? Half support is quite challenging since there very little free sofware which supports converting to and from Half. OpenEXR is