#pragma once #include #include "vfxpreopenexr-errors-private.h" #include #include inline Imf_3_0::PreviewRgba const & to_cpp_ref( Imf_PreviewRgba_t const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PreviewRgba & to_cpp_ref( Imf_PreviewRgba_t * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PreviewRgba const * to_cpp( Imf_PreviewRgba_t const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::PreviewRgba * to_cpp( Imf_PreviewRgba_t * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_PreviewRgba_t const * * lhs , Imf_3_0::PreviewRgba const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PreviewRgba_t const * * lhs , Imf_3_0::PreviewRgba const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_PreviewRgba_t * * lhs , Imf_3_0::PreviewRgba & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PreviewRgba_t * * lhs , Imf_3_0::PreviewRgba * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c_copy( Imf_PreviewRgba_t * lhs , Imf_3_0::PreviewRgba const & rhs) { memcpy(lhs, &(rhs), sizeof(*(lhs))); } inline Imf_3_0::PreviewImage const & to_cpp_ref( Imf_PreviewImage_t const * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PreviewImage & to_cpp_ref( Imf_PreviewImage_t * rhs) { return *(reinterpret_cast(rhs)); } inline Imf_3_0::PreviewImage const * to_cpp( Imf_PreviewImage_t const * rhs) { return reinterpret_cast(rhs); } inline Imf_3_0::PreviewImage * to_cpp( Imf_PreviewImage_t * rhs) { return reinterpret_cast(rhs); } inline void to_c( Imf_PreviewImage_t const * * lhs , Imf_3_0::PreviewImage const & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PreviewImage_t const * * lhs , Imf_3_0::PreviewImage const * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c( Imf_PreviewImage_t * * lhs , Imf_3_0::PreviewImage & rhs) { *(lhs) = reinterpret_cast(&(rhs)); } inline void to_c( Imf_PreviewImage_t * * lhs , Imf_3_0::PreviewImage * rhs) { *(lhs) = reinterpret_cast(rhs); } inline void to_c_copy( Imf_PreviewImage_t * * lhs , Imf_3_0::PreviewImage const & rhs) { Imf_3_0__PreviewImage_copy(lhs, reinterpret_cast(&(rhs))); }