static int vips_foreign_load_openexr_load( VipsForeignLoad *load ) { VipsForeignLoadOpenexr *openexr = (VipsForeignLoadOpenexr *) load; if( vips__openexr_read( openexr->filename, load->real ) ) return( -1 ); return( 0 ); }
int im_exr2vips( const char *filename, IMAGE *out ) { #ifdef HAVE_OPENEXR return( vips__openexr_read( filename, out ) ); #else vips_error( "im_exr2vips", _( "no OpenEXR support in your libvips" ) ); return( -1 ); #endif /*HAVE_OPENEXR*/ }