[FFmpeg-devel] [PATCH] Fast half-float to float conversion

Jimmy Christensen jimmy
Tue Jun 30 07:33:43 CEST 2009


I'm almost done with my OpenEXR decoder, but since it can work in a 
half-float format I wanted a fast half-float to float conversion. I 
found one in the FOX toolkit which uses a table lookup. I didn't want 
the table lookup in the OpenEXR decoder only, since a few other formats 
can use half-floats aswell. So instead I submit the half-float to float 
first as a libavutil header.

The code is derivative work from the FOX toolkit, but I have already 
asked permission to include it in the ffmpeg project, granted that I 
stated origin and a link to the paper describing the table lookup. The 
paper can be seen here :


I have tested the code with the before mentioned OpenEXR decoder and it 
works as expected with half floats.

Best Regards
Jimmy Christensen
Ghost A/S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavutil-half.diff
Type: text/x-patch
Size: 27130 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090630/4a8de51b/attachment.bin>

More information about the ffmpeg-devel mailing list