#pragma once #include #include "vfxpreopenexr-errors-private.h" #include #include inline Imf_3_0::PixelType const & Imf_PixelType_to_cpp_ref( Imf_PixelType const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PixelType & Imf_PixelType_to_cpp_ref( Imf_PixelType * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PixelType const * Imf_PixelType_to_cpp( Imf_PixelType const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::PixelType * Imf_PixelType_to_cpp( Imf_PixelType * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_PixelType const * * lhs , Imf_3_0::PixelType const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PixelType const * * lhs , Imf_3_0::PixelType const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_PixelType * * lhs , Imf_3_0::PixelType & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PixelType * * lhs , Imf_3_0::PixelType * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c_copy( Imf_PixelType * lhs , Imf_3_0::PixelType const & rhs) { memcpy(lhs, &(rhs), sizeof(*(lhs))); }