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: Drew Hess
Subject: Re: [Openexr-devel] "Half" support in C?
Date: Wed, 02 Mar 2005 11:24:36 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux)

It wouldn't be hard to wrap the Half class with C functions.  You'd
still need a C++ compiler to build the wrapper, but then you could use
half from pure C code.

Volunteers welcome :)

d


Derek Gerstmann <address@hidden> writes:

> 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]
>
>
> _______________________________________________
> Openexr-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/openexr-devel

Attachment: pgpf18V8glOGU.pgp
Description: PGP signature


reply via email to

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