OpenVDB  12.0.0
Classes | Typedefs | Functions
openvdb::v12_0::math::internal Namespace Reference

Classes

class  half
 
union  imath_half_uif
 a type for both C-only programs and C++ to use the same utilities More...
 

Typedefs

typedef union openvdb::v12_0::math::internal::imath_half_uif imath_half_uif_t
 a type for both C-only programs and C++ to use the same utilities More...
 
typedef uint16_t imath_half_bits_t
 a type for both C-only programs and C++ to use the same utilities More...
 
typedef imath_half_bits_t half
 if we're in a C-only context, alias the half bits type to half More...
 

Functions

static float imath_half_to_float (imath_half_bits_t h)
 
static imath_half_bits_t imath_float_to_half (float f)
 
OPENVDB_API void printBits (std::ostream &os, half h)
 
OPENVDB_API void printBits (std::ostream &os, float f)
 
OPENVDB_API void printBits (char c[19], half h)
 
OPENVDB_API void printBits (char c[35], float f)
 
OPENVDB_API std::ostream & operator<< (std::ostream &os, half h)
 Output h to os, formatted as a float. More...
 
OPENVDB_API std::istream & operator>> (std::istream &is, half &h)
 Input h from is. More...
 

Typedef Documentation

if we're in a C-only context, alias the half bits type to half

typedef uint16_t imath_half_bits_t

a type for both C-only programs and C++ to use the same utilities

a type for both C-only programs and C++ to use the same utilities

Function Documentation

static imath_half_bits_t openvdb::v12_0::math::internal::imath_float_to_half ( float  f)
inlinestatic

Convert half to float

Note: This only supports the "round to even" rounding mode, which was the only mode supported by the original OpenEXR library

static float openvdb::v12_0::math::internal::imath_half_to_float ( imath_half_bits_t  h)
inlinestatic

Convert half to float

OPENVDB_API std::ostream& openvdb::v12_0::math::internal::operator<< ( std::ostream &  os,
half  h 
)

Output h to os, formatted as a float.

OPENVDB_API std::istream& openvdb::v12_0::math::internal::operator>> ( std::istream &  is,
half h 
)

Input h from is.

OPENVDB_API void openvdb::v12_0::math::internal::printBits ( std::ostream &  os,
half  h 
)
OPENVDB_API void openvdb::v12_0::math::internal::printBits ( std::ostream &  os,
float  f 
)
OPENVDB_API void openvdb::v12_0::math::internal::printBits ( char  c[19],
half  h 
)
OPENVDB_API void openvdb::v12_0::math::internal::printBits ( char  c[35],
float  f 
)