[Hdrflow-svn] SF.net SVN: hdrflow: [354] trunk
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-10-12 20:53:26
|
Revision: 354 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=354&view=rev Author: glslang Date: 2007-10-12 13:53:22 -0700 (Fri, 12 Oct 2007) Log Message: ----------- + maya bundle package maker Modified Paths: -------------- trunk/HDRFlowMaya.pmproj trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp Added Paths: ----------- trunk/HDRFlowMayaBundle.pmproj Modified: trunk/HDRFlowMaya.pmproj =================================================================== (Binary files differ) Added: trunk/HDRFlowMayaBundle.pmproj =================================================================== (Binary files differ) Property changes on: trunk/HDRFlowMayaBundle.pmproj ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp 2007-10-10 21:22:34 UTC (rev 353) +++ trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp 2007-10-12 20:53:22 UTC (rev 354) @@ -5,8 +5,9 @@ // Released under the LGPL. // For more information, see http://www.openlibraries.org. -#include <ImfRgbaFile.h> -#include <ImfCRgbaFile.h> +//#include <ImfRgbaFile.h> +#include <ImfInputFile.h> +//#include <ImfOutputFile.h> #include <ImfArray.h> #include <openimagelib/il/openimagelib_plugin.hpp> @@ -22,9 +23,15 @@ { delete im; } il::image_type_ptr load_exr( const pl::string& uri ) - { - Imf::RgbaInputFile file( uri.c_str( ) ); - + {printf("EXR IMAGE FILE %s\n", uri.c_str()); + try + { + Imf::InputFile file( uri.c_str( ) ); + } + catch( ... ) + { + } +/* Imath::Box2i dw = file.header( ).dataWindow( ); int width = dw.max.x - dw.min.x + 1; int height = dw.max.y - dw.min.y + 1; @@ -52,7 +59,8 @@ texels += ( im->pitch( ) - im->linesize( ) ) * sizeof( float ); } - return im; + return im;*/ + return il::image_type_ptr( ); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |