[Hdrflow-svn] SF.net SVN: hdrflow: [417] trunk/lib/extras/src/imf/mfn/mfn.cpp
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2008-02-21 21:18:51
|
Revision: 417 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=417&view=rev Author: glslang Date: 2008-02-21 13:18:48 -0800 (Thu, 21 Feb 2008) Log Message: ----------- + removes unused code Modified Paths: -------------- trunk/lib/extras/src/imf/mfn/mfn.cpp Modified: trunk/lib/extras/src/imf/mfn/mfn.cpp =================================================================== --- trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-21 00:44:11 UTC (rev 416) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-21 21:18:48 UTC (rev 417) @@ -92,57 +92,6 @@ } return MS::kSuccess; -/* - typedef pl::discovery<query_traits> discovery; - - discovery plugins( query_traits( pl::to_wstring( pathname.asChar( ) ) ) ); - if( plugins.empty( ) ) return MS::kFailure; - - for( discovery::const_iterator i = plugins.begin( ); i != plugins.end( ); ++i ) - { - il::openimagelib_plugin_ptr plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) ); - if( plug ) - { -#ifndef NDEBUG - MGlobal::displayInfo( "HDRFlow: plugin found ..." ); -#endif - im_ = plug->load( pathname.asChar( ) ); - if( im_ ) - { -#ifndef NDEBUG - MGlobal::displayInfo( "HDRFlow: image opened." ); -#endif - if( info ) - { - info->width( im_->width( ) ); - info->height( im_->height( ) ); - info->channels( 4 ); // always assumes alpha/matte exists - info->numberOfImages( 1 ); - info->pixelType( MImage::kFloat ); // convert everything to float by default - } - - return MS::kSuccess; - } -#ifndef NDEBUG - else - { - MGlobal::displayInfo( "HDRFlow: image is null." ); - } -#endif - } -#ifndef NDEBUG - else - { - MGlobal::displayInfo( "HDRFlow: plugin is null." ); - } -#endif - } - -#ifndef NDEBUG - MGlobal::displayInfo( "HDRFlow: failed to open." ); -#endif - - return MS::kFailure;*/ } MStatus image_reader::load( MImage& image, unsigned int idx ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |