openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] "Half" support in C?


From: Derek Gerstmann
Subject: Re: [Openexr-devel] "Half" support in C?
Date: Wed, 02 Mar 2005 10:43:15 -0800
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Bob Friesenhahn wrote:

Is an implementation (in plain old C) available for Half support to support simple translation between float and Half? Hopefully with a simple MIT-style license?

With some effort, the Half library from OpenEXR can be used, but this limits portability, and requires a C++ compiler. Even if OpenEXR libraries are linked in, if the dependent application is primarily a C application (as is mine) there is a penalty (non-inlined function call) from calling into C++.

Currently, we've been using the Half class from OpenEXR and compiling
our C code as C++, which has limited the adoption of Half support
to simple standalone modules that are linked dynamically.

It would be *really* nice if a native C implementation were available,
with a similar license as OpenEXR.

-[dg]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]