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 you don't care about signed zeros, subnormal NaN...  
unfortunately we should deal with all that cases.

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 approach would need an extra call to initialize it, but then,
only the clients using half float encoding will pay the extra tables overhead.

Any preferences? I'm open to suggestions
Regards
Marti


Robin Watts <robin.wa...@artifex.com> escribió:

> 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 earlier, but here it is again for the
> list as a whole:
>
>    http://www.mathworks.com/matlabcentral/fileexchange/23173
>
> That includes ieeehalfprecision.c - a lump of BSD licensed C code that
> converts 16bit floats to and from normal IEEE floats.
>
> Hopefully this will help whoever decides to try this.
>
> Robin
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to