Thread: [Hdrflow-svn] SF.net SVN: hdrflow: [326] trunk/lib/extras/src/imf/mfn/mfn.cpp
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-09-30 14:55:36
|
Revision: 326 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=326&view=rev Author: glslang Date: 2007-09-30 07:55:34 -0700 (Sun, 30 Sep 2007) Log Message: ----------- + build fixes 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 2007-09-30 14:33:59 UTC (rev 325) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-09-30 14:55:34 UTC (rev 326) @@ -62,6 +62,7 @@ virtual MStatus close( ); private: + pl::string pathname_; il::image_type_ptr im_; }; @@ -89,7 +90,7 @@ #ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: plugin found ..." ); #endif - im_ = plug->load( pl::make_stream( pathname.asChar( ), std::ios::in ) ); + im_ = plug->load( pathname.asChar( ) ); if( im_ ) { #ifndef NDEBUG @@ -170,6 +171,10 @@ MStatus image_reader::close( ) { +#ifndef NDEBUG + MGlobal::displayInfo( "HDRFlow: closing..." ); +#endif + im_.reset( ); return MS::kSuccess; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-09-30 16:07:10
|
Revision: 329 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=329&view=rev Author: glslang Date: 2007-09-30 09:07:07 -0700 (Sun, 30 Sep 2007) Log Message: ----------- + add dpx to maya plugin 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 2007-09-30 15:15:05 UTC (rev 328) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-09-30 16:07:07 UTC (rev 329) @@ -192,12 +192,13 @@ extensions.append( "tif" ); extensions.append( "cr2" ); extensions.append( "raw" ); + extensions.append( "dpx" ); CHECK_MSTATUS( plugin.registerImageFile( "HDRFlow", hdrflow::extras::mfn::image_reader::creator, extensions ) ); pl::init( ); #ifndef NDEBUG - MGlobal::displayInfo( "HDRFlow: initialised ..." ); + MGlobal::displayInfo( "HDRFlow: initialised. Please contact su...@cr... for support." ); #endif return MS::kSuccess; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-02-19 21:30:15
|
Revision: 414 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=414&view=rev Author: glslang Date: 2008-02-19 13:30:13 -0800 (Tue, 19 Feb 2008) Log Message: ----------- + minor tweaks 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-18 20:54:44 UTC (rev 413) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-19 21:30:13 UTC (rev 414) @@ -220,13 +220,12 @@ extensions.append( "cr2" ); extensions.append( "raw" ); extensions.append( "dpx" ); + extensions.append( "avi" ); CHECK_MSTATUS( plugin.registerImageFile( "HDRFlow", hdrflow::extras::mfn::image_reader::creator, extensions ) ); pl::init( ); -#ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: initialised. Please contact su...@cr... for support." ); -#endif return MS::kSuccess; } @@ -236,9 +235,7 @@ MFnPlugin plugin( obj ); CHECK_MSTATUS( plugin.deregisterImageFile( "HDRFlow" ) ); -#ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: uninitialised ..." ); -#endif return MS::kSuccess; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <gl...@us...> - 2008-02-23 14:09:26
|
Revision: 418 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=418&view=rev Author: glslang Date: 2008-02-23 06:09:24 -0800 (Sat, 23 Feb 2008) Log Message: ----------- + include some diagnostics in the release version 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 21:18:48 UTC (rev 417) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-23 14:09:24 UTC (rev 418) @@ -111,9 +111,8 @@ im = il::convert( il::convert( frame->get_image( ), L"b8g8r8a8" ), L"r32g32b32a32f" ); if( !im ) { -#ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: Internal Error: conversion to floating point format failed. Please report to su...@cr...." ); -#endif + return MS::kFailure; } } @@ -147,9 +146,7 @@ MStatus image_reader::close( ) { -#ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: closing..." ); -#endif input_.reset( ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |