Thread: [Hdrflow-svn] SF.net SVN: hdrflow: [168] trunk/lib
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-07-03 23:03:12
|
Revision: 168 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=168&view=rev Author: glslang Date: 2007-07-03 16:02:52 -0700 (Tue, 03 Jul 2007) Log Message: ----------- + generic stream abstraction Modified Paths: -------------- trunk/lib/extras/src/raw/raw.cpp trunk/lib/openlibraries/installer/openlibraries_sdk.nsi trunk/lib/openlibraries/src/openassetlib/al/al.cpp trunk/lib/openlibraries/src/openimagelib/il/openimagelib_plugin.hpp trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/png/png_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_plugin.cpp trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_plugin.cpp trunk/lib/openlibraries/src/openimagelib/py/il.cpp trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp trunk/lib/openlibraries/src/openobjectlib/sg/appearance.cpp trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.cpp trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.hpp trunk/lib/openlibraries/src/openpluginlib/pl/Makefile.am trunk/lib/openlibraries/src/openpluginlib/pl/stream.cpp trunk/lib/openlibraries/src/openpluginlib/pl/stream.hpp trunk/lib/openlibraries/test/openimagelib/GL/_2D/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D/_2D.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed/_2D_compressed.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed_cubemap/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed_cubemap/_2D_compressed_cubemap.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop/_2D_crop.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop2/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop2/_2D_crop2.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_exr/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_exr/_2D_exr.cpp trunk/lib/openlibraries/test/openimagelib/GL/_2D_sgi/Makefile.am trunk/lib/openlibraries/test/openimagelib/GL/_2D_sgi/_2D_sgi.cpp Modified: trunk/lib/extras/src/raw/raw.cpp =================================================================== --- trunk/lib/extras/src/raw/raw.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/extras/src/raw/raw.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -11,11 +11,10 @@ #include <windows.h> #endif -#include <openmedialib/ml/openmedialib_plugin.hpp> +#include <openmedialib/il/openimagelib_plugin.hpp> namespace pl = olib::openpluginlib; namespace il = olib::openimagelib::il; -namespace ml = olib::openmedialib::ml; namespace fs = boost::filesystem; namespace pcos = olib::openpluginlib::pcos; @@ -23,12 +22,16 @@ namespace { + bool dcraw( property_container properties ) + { + return true; + } } -class raw_input : public ml::input_type +class raw_plugin : public il::openimagelib_plugin { public: - explicit raw_input( const pl::wstring& resource ) + explicit raw_plugin( ) : verbose_( pcos::key::from_string( "verbose" ) ) , thumbnail_( pcos::key::from_string( "thumbnail" ) ) , camera_white_balance_( pcos::key::from_string( "camera_white_balance" ) ) @@ -51,6 +54,12 @@ , tiff_output_( pcos::key::from_string( "tiff_output" ) ) { } + virtual il::image_type_ptr load( const fs::path& path ) + { return il::image_type_ptr( ); } + + virtual bool store( const fs::path&, const il::image_type_ptr& ) + { return false; } + private: pcos::property verbose_; pcos::property thumbnail_; @@ -74,13 +83,6 @@ pcos::property tiff_output_; }; -class raw_plugin : public ml::openmedialib_plugin -{ -public: - explicit raw_plugin( ) - { } -}; - } } } extern "C" Modified: trunk/lib/openlibraries/installer/openlibraries_sdk.nsi =================================================================== --- trunk/lib/openlibraries/installer/openlibraries_sdk.nsi 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/installer/openlibraries_sdk.nsi 2007-07-03 23:02:52 UTC (rev 168) @@ -101,6 +101,7 @@ File ..\src\openpluginlib\pl\shader_manager.hpp File ..\src\openpluginlib\pl\simplestringstorage.h File ..\src\openpluginlib\pl\smallstringopt.h + File ..\src\openpluginlib\pl\stream.hpp File ..\src\openpluginlib\pl\string.hpp File ..\src\openpluginlib\pl\timer.hpp File ..\src\openpluginlib\pl\utf8_utils.hpp Modified: trunk/lib/openlibraries/src/openassetlib/al/al.cpp =================================================================== --- trunk/lib/openlibraries/src/openassetlib/al/al.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openassetlib/al/al.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -630,7 +630,7 @@ if(!plugin) continue; - oil::il::image_type_ptr image = boost::shared_dynamic_cast<oil::il::openimagelib_plugin>(plugin)->load(fs::path( filepath.c_str( ), fs::native )); + oil::il::image_type_ptr image = boost::shared_dynamic_cast<oil::il::openimagelib_plugin>(plugin)->load( opl::make_stream( filepath, std::ios::in )); if(image) { asset->set("width", image->width()); Modified: trunk/lib/openlibraries/src/openimagelib/il/openimagelib_plugin.hpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/openimagelib_plugin.hpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/il/openimagelib_plugin.hpp 2007-07-03 23:02:52 UTC (rev 168) @@ -10,16 +10,17 @@ #include <boost/filesystem/path.hpp> +#include <openpluginlib/pl/openpluginlib.hpp> +#include <openpluginlib/pl/stream.hpp> + #include <openimagelib/il/il.hpp> -#include <openpluginlib/pl/openpluginlib.hpp> - namespace olib { namespace openimagelib { namespace il { struct IL_DECLSPEC openimagelib_plugin : public olib::openpluginlib::openplugin { - virtual image_type_ptr load( const boost::filesystem::path& path ) = 0; - virtual bool store( const boost::filesystem::path& path, const image_type_ptr& image ) = 0; + virtual image_type_ptr load( openpluginlib::stream_ptr stream ) = 0; + virtual bool store( openpluginlib::stream_ptr stream, const image_type_ptr& image ) = 0; }; typedef boost::shared_ptr<openimagelib_plugin> openimagelib_plugin_ptr; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -10,7 +10,6 @@ #include <openimagelib/il/openimagelib_plugin.hpp> -namespace fs = boost::filesystem; namespace il = olib::openimagelib::il; namespace pl = olib::openpluginlib; @@ -21,6 +20,7 @@ void destroy( il::image_type* im ) { delete im; } +/* bool discover_lightmap_size( const boost::filesystem::path& path, int& radius ) { typedef boost::tokenizer< boost::char_separator<char> > tokenizer; @@ -81,15 +81,16 @@ return im; } +*/ } class lightmap3D_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const boost::filesystem::path& path ) - { return generate_lightmap( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return il::image_type_ptr( ); } - virtual bool store( const boost::filesystem::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr stream, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -8,7 +8,6 @@ #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -19,10 +18,10 @@ struct bmp_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const boost::filesystem::path& ) + virtual il::image_type_ptr load( pl::stream_ptr ) { return il::image_type_ptr( ); } - virtual bool store( const boost::filesystem::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -6,16 +6,12 @@ // For more information, see http://www.openlibraries.org. #include <cstdlib> -#include <iostream> #include <vector> #include <string> -#include <boost/filesystem/fstream.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -96,17 +92,6 @@ bool is_dds_header( const std::string& magic ) { return magic == std::string( "DDS " ); } - bool Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) - { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif // _MSC_VER >= 1400 - - return !file.fail( ); - } - il::image_type_ptr ddsd_pixelformat_to_image_type( DDSURFACEDESC2 ddsd ) { # ifndef MAKEFOURCC @@ -186,21 +171,20 @@ #undef DDSCAPS2_CUBEMAP } - il::image_type_ptr load_dds( const fs::path& path ) + il::image_type_ptr load_dds( pl::stream_ptr stream ) { - typedef il::image_type::size_type size_type; + typedef il::image_type::size_type size_type; - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) + if( stream->is_null( ) ) return il::image_type_ptr( ); char magic[ 4 ]; - Read_s( file, magic, 4, 4 ); + stream->read( magic, 4 ); if( !is_dds_header( std::string( magic, 4 ) ) ) return il::image_type_ptr( ); DDSURFACEDESC2 ddsd; - Read_s( file, reinterpret_cast<char*>( &ddsd ), sizeof( DDSURFACEDESC2 ), 124 ); + stream->read( reinterpret_cast<char*>( &ddsd ), sizeof( DDSURFACEDESC2 ) ); #ifdef __BIG_ENDIAN__ swap_surface_desc( ddsd ); @@ -210,7 +194,7 @@ if( !im ) return il::image_type_ptr( ); - Read_s( file, reinterpret_cast<char*>( im->data( ) ), std::streamsize( im->size( ) ), std::streamsize( im->size( ) ) ); + stream->read( reinterpret_cast<char*>( im->data( ) ), std::streamsize( im->size( ) ) ); return im; } @@ -218,10 +202,10 @@ struct dds_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const boost::filesystem::path& path ) - { return load_dds( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_dds( stream ); } - virtual bool store( const boost::filesystem::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -7,12 +7,9 @@ #include <sstream> -#include <boost/filesystem/fstream.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -342,22 +339,6 @@ return 0; } - bool Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) - { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif - - return !file.fail( ); - } - - bool Write_s( fs::ofstream& file, char* s, std::streamsize size ) - { - return !file.write( s, size ).fail( ); - } - std::wstring generate_image_pf( const image_information_header& im_header ) { std::wostringstream str; @@ -590,33 +571,32 @@ } } - il::image_type_ptr load_dpx( const fs::path& path ) + il::image_type_ptr load_dpx( pl::stream_ptr stream ) { - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) + if( stream->is_null( ) ) return il::image_type_ptr( ); file_information_header header; - if( !Read_s( file, ( char* ) &header, sizeof( header ), sizeof( header ) ) ) + if( !stream->read( ( char* ) &header, sizeof( header ) ) ) return il::image_type_ptr( ); if( header.magic != 0x58504453 && header.magic != 0x53445058 ) return il::image_type_ptr( ); image_information_header image_info_header; - if( !Read_s( file, ( char* ) &image_info_header, sizeof( image_info_header ), sizeof( image_info_header ) ) ) + if( !stream->read( ( char* ) &image_info_header, sizeof( image_info_header ) ) ) return il::image_type_ptr( ); image_orientation_information_header image_orientation_info_header; - if( !Read_s( file, ( char* ) &image_orientation_info_header, sizeof( image_orientation_info_header ), sizeof( image_orientation_info_header ) ) ) + if( !stream->read( ( char* ) &image_orientation_info_header, sizeof( image_orientation_info_header ) ) ) return il::image_type_ptr( ); motion_picture_film_information_header motion_info_header; - if( !Read_s( file, ( char* ) &motion_info_header, sizeof( motion_info_header ), sizeof( motion_info_header ) ) ) + if( !stream->read( ( char* ) &motion_info_header, sizeof( motion_info_header ) ) ) return il::image_type_ptr( ); television_information_header tv_info_header; - if( !Read_s( file, ( char* ) &tv_info_header, sizeof( tv_info_header ), sizeof( tv_info_header ) ) ) + if( !stream->read( ( char* ) &tv_info_header, sizeof( tv_info_header ) ) ) return il::image_type_ptr( ); bool swab = header.magic == 0x58504453 ? true : false; @@ -638,7 +618,7 @@ for( int i = 0; i < image_info_header.image_elements; ++i ) { - file.rdbuf( )->pubseekoff( image_info_header.element[ i ].offset, std::ios::beg ); + stream->seek( image_info_header.element[ i ].offset, std::ios::beg ); int bitdepth = image_info_header.element[ i ].bitdepth; int packing = image_info_header.element[ i ].packing; @@ -654,7 +634,7 @@ for( unsigned int j = 0; j < image_info_header.lines_per_element; ++j ) { - Read_s( file, reinterpret_cast<char*>( &data[ 0 ] ), linesize, linesize ); + stream->read( reinterpret_cast<char*>( &data[ 0 ] ), linesize ); data += im->pitch( i ); } } @@ -665,7 +645,7 @@ std::vector<unsigned char> image_data( linesize ); for( unsigned int j = 0; j < image_info_header.lines_per_element; ++j ) { - Read_s( file, reinterpret_cast<char*>( &image_data[ 0 ] ), linesize, linesize ); + stream->read( reinterpret_cast<char*>( &image_data[ 0 ] ), linesize ); memcpy( &data[ 0 ], &image_data[ 0 ], linesize ); data += im->pitch( i ); } @@ -680,7 +660,7 @@ else if( bitdepth == 10 || ( bitdepth == 12 || !packing ) ) { std::vector<unsigned char> image_data( linesize * image_info_header.lines_per_element ); - Read_s( file, reinterpret_cast<char*>( &image_data[ 0 ] ), linesize * image_info_header.lines_per_element, linesize * image_info_header.lines_per_element ); + stream->read( reinterpret_cast<char*>( &image_data[ 0 ] ), linesize * image_info_header.lines_per_element ); if( packing == 0 ) { @@ -757,10 +737,9 @@ return false; } - bool store_dpx( const fs::path& path, const il::image_type_ptr& im ) + bool store_dpx( pl::stream_ptr stream, const il::image_type_ptr& im ) { - fs::ofstream file( path, std::ios::out | std::ios::binary ); - if( !file.is_open( ) ) return false; + if( stream->is_null( ) ) return false; il::image_type::size_type width = im->width( ); il::image_type::size_type height = im->height( ); @@ -817,12 +796,12 @@ user_defined_data_header user_defined_header; memset( &user_defined_header, 0, sizeof( user_defined_header ) ); - if( !( Write_s( file, ( char* ) &header, sizeof( header ) ) && - Write_s( file, ( char* ) &image_info_header, sizeof( image_info_header ) ) && - Write_s( file, ( char* ) &image_orientation_info_header, sizeof( image_orientation_info_header ) ) && - Write_s( file, ( char* ) &motion_info_header, sizeof( motion_info_header ) ) && - Write_s( file, ( char* ) &tv_info_header, sizeof( tv_info_header ) ) && - Write_s( file, ( char* ) &user_defined_header, sizeof( user_defined_header ) ) ) ) + if( !( stream->write( ( char* ) &header, sizeof( header ) ) && + stream->write( ( char* ) &image_info_header, sizeof( image_info_header ) ) && + stream->write( ( char* ) &image_orientation_info_header, sizeof( image_orientation_info_header ) ) && + stream->write( ( char* ) &motion_info_header, sizeof( motion_info_header ) ) && + stream->write( ( char* ) &tv_info_header, sizeof( tv_info_header ) ) && + stream->write( ( char* ) &user_defined_header, sizeof( user_defined_header ) ) ) ) return false; for( int i = 0; i < image_info_header.image_elements; ++i ) @@ -832,7 +811,7 @@ il::image_type::const_pointer data = im->data( i ); for( int j = 0; j < height; ++j ) { - if( !Write_s( file, ( char* ) data, im->pitch( i ) ) ) + if( !stream->write( ( char* ) data, im->pitch( i ) ) ) return false; data += im->pitch( i ); @@ -843,7 +822,7 @@ unsigned short* data = ( unsigned short* ) im->data( i ); for( int j = 0; j < height; ++j ) { - if( !Write_s( file, ( char* ) data, im->linesize( i ) * sizeof( unsigned short ) ) ) + if( !stream->write( ( char* ) data, im->linesize( i ) * sizeof( unsigned short ) ) ) return false; data += im->pitch( i ); @@ -857,11 +836,11 @@ struct dpx_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const boost::filesystem::path& path ) - { return load_dpx( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_dpx( stream ); } - virtual bool store( const boost::filesystem::path& path, const il::image_type_ptr& im ) - { return store_dpx( path, im ); } + virtual bool store( pl::stream_ptr stream, const il::image_type_ptr& im ) + { return store_dpx( stream, im ); } }; } } } Modified: trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -11,7 +11,6 @@ #include <openimagelib/il/openimagelib_plugin.hpp> -namespace fs = boost::filesystem; namespace il = olib::openimagelib::il; namespace pl = olib::openpluginlib; @@ -22,9 +21,9 @@ void destroy( il::image_type* im ) { delete im; } - il::image_type_ptr load_exr( const fs::path& path ) + il::image_type_ptr load_exr( pl::stream_ptr stream ) { - Imf::RgbaInputFile file( path.native_file_string( ).c_str( ) ); + Imf::RgbaInputFile file( stream->path( ).c_str( ) ); Imath::Box2i dw = file.header( ).dataWindow( ); int width = dw.max.x - dw.min.x + 1; @@ -59,10 +58,10 @@ struct exr_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const fs::path& path ) - { return load_exr( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_exr( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -20,7 +20,6 @@ #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -80,9 +79,9 @@ } } - il::image_type_ptr load_image( const fs::path& path ) + il::image_type_ptr load_image( pl::stream_ptr stream ) { - Gdiplus::Bitmap bitmap( ( pl::to_wstring( path.native_directory_string( ) ) ).c_str( ) ); + Gdiplus::Bitmap bitmap( ( pl::to_wstring( stream->path( ) ) ).c_str( ) ); Gdiplus::BitmapData bitmapData; Gdiplus::Rect rect( 0, 0, bitmap.GetWidth( ), bitmap.GetHeight( ) ); @@ -113,7 +112,7 @@ bitmap.UnlockBits( &bitmapData ); - return il::image_type_ptr( image ); + return image; } /* bool store_png( const fs::path& path, const image_type_ptr& image ) @@ -148,10 +147,10 @@ class gdi_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_image( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_image( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -12,13 +12,11 @@ #include <cmath> #include <limits> #include <vector> +#include <sstream> -#include <boost/filesystem/fstream.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -38,23 +36,12 @@ char format[ 16 ]; }; - bool Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) + bool read_rgbe_pixels_raw( pl::stream_ptr stream, unsigned char* data, int width, int height ) { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif - - return !file.fail( ); - } - - bool read_rgbe_pixels_raw( fs::ifstream& file, unsigned char* data, int width, int height ) - { int numpixels = width * height; while( numpixels-- ) { - if( !Read_s( file, ( char* ) data, 4, 4 ) ) + if( !stream->read( ( char* ) data, 4 ) ) return false; data += 4; @@ -63,12 +50,12 @@ return true; } - bool read_rgbe_pixels( fs::ifstream& file, il::image_type_ptr im, int width, int height ) + bool read_rgbe_pixels( pl::stream_ptr stream, il::image_type_ptr im, int width, int height ) { il::image_type::pointer data = im->data( ); if( width < 8 || width > 0x7FFF ) - return read_rgbe_pixels_raw( file, data, width, height ); + return read_rgbe_pixels_raw( stream, data, width, height ); std::vector<unsigned char> line; line.resize( width * 4 * 4 ); @@ -76,7 +63,7 @@ unsigned char rgbe[ 4 ]; for( int i = 0; i < height; ++i ) { - if( !Read_s( file, ( char* ) rgbe, sizeof( rgbe ), sizeof( rgbe ) ) ) + if( !stream->read( ( char* ) rgbe, sizeof( rgbe ) ) ) return false; if( ( rgbe[ 0 ] != 2 ) || ( rgbe[ 1 ] != 2 ) || ( rgbe[ 2 ] & 0x80 ) ) @@ -88,7 +75,7 @@ data += 4; - return read_rgbe_pixels_raw( file, data, width, height ); + return read_rgbe_pixels_raw( stream, data, width, height ); } if( ( ( ( int ) rgbe[ 2 ] ) << 8 | rgbe[ 3 ] ) != width ) @@ -106,7 +93,7 @@ while( I < J ) { unsigned char buf[ 2 ]; - if( !Read_s( file, ( char* ) buf, 2, 2 ) ) + if( !stream->read( ( char* ) buf, 2 ) ) return false; if( buf[ 0 ] > 128 ) @@ -126,7 +113,7 @@ *I++ = buf[ 1 ]; if( --count > 0 ) { - if( !Read_s( file, ( char* ) I, count, count ) ) + if( !stream->read( ( char* ) I, count ) ) return false; } @@ -151,7 +138,7 @@ return true; } - bool read_hdr_header( fs::ifstream& file, RgbeInfo& info, int& width, int& height ) + bool read_hdr_header( pl::stream_ptr stream, RgbeInfo& info, int& width, int& height ) { info.valid = 0; memset( info.program_type, 0, sizeof( info.program_type ) ); @@ -161,8 +148,7 @@ char buffer[ 128 ]; - file.getline( buffer, 128 ); - if( file.fail( ) ) + if( !stream->getline( buffer, 128 ) ) return false; if( buffer[ 0 ] != '#' || buffer[ 1 ] != '?' ) @@ -177,8 +163,7 @@ info.program_type[ i ] = buffer[ i + 2 ]; } - file.getline( buffer, 128 ); - if( file.fail( ) ) + if( !stream->getline( buffer, 128 ) ) return false; for( ;; ) @@ -208,13 +193,12 @@ info.valid |= RGBE_VALID_EXPOSURE; } - file.getline( buffer, 128 ); + stream->getline( buffer, 128 ); if( !strlen( buffer ) ) break; } - file.getline( buffer, 128 ); - if( file.fail( ) ) + if( !stream->getline( buffer, 128 ) ) return false; #if _MSC_VER >= 1400 @@ -227,32 +211,30 @@ return true; } - il::image_type_ptr load_hdr( const fs::path& path ) + il::image_type_ptr load_hdr( pl::stream_ptr stream ) { - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) + if( stream->is_null( ) ) return il::image_type_ptr( ); int width, height; RgbeInfo rgbe_info; - if( !read_hdr_header( file, rgbe_info, width, height ) ) + if( !read_hdr_header( stream, rgbe_info, width, height ) ) return il::image_type_ptr( ); il::image_type_ptr image = il::allocate( L"rgbe", width, height ); if( !image ) return il::image_type_ptr( ); - if( !read_rgbe_pixels( file, image, width, height ) ) + if( !read_rgbe_pixels( stream, image, width, height ) ) return il::image_type_ptr( ); return image; } - bool store_hdr( const fs::path& path, const il::image_type_ptr& im ) + bool store_hdr( pl::stream_ptr stream, const il::image_type_ptr& im ) { - fs::ofstream file( path, std::ios::out | std::ios::binary ); - if( !file.is_open( ) ) + if( stream->is_null( ) ) return false; il::image_type_ptr dst = il::convert( im, L"rgbe" ); @@ -262,15 +244,20 @@ il::image_type::size_type height = dst->height( ); // write header. - file << "#?RGBE\nGAMMA=1.0\nEXPOSURE=1.0\nFORMAT=32-bit_rle_rgbe\n\n"; - file << "-Y " << height << "+X " << width << "\n"; + std::ostringstream buf; + buf << "#?RGBE\nGAMMA=1.0\nEXPOSURE=1.0\nFORMAT=32-bit_rle_rgbe\n\n"; + stream->write( buf.str( ).c_str( ), buf.str( ).size( ) ); + buf.clear( ); + buf << "-Y " << height << "+X " << width << "\n"; + stream->write( buf.str( ).c_str( ), buf.str( ).size( ) ); + il::image_type::const_pointer data = dst->data( ); il::image_type::size_type pitch = dst->pitch( ); while( height-- ) { - file.write( ( char* ) data, dst->linesize( ) ); + stream->write( ( char* ) data, dst->linesize( ) ); data += pitch; } } @@ -281,11 +268,11 @@ struct hdr_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const boost::filesystem::path& path ) - { return load_hdr( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_hdr( stream ); } - virtual bool store( const boost::filesystem::path& path, const il::image_type_ptr& im ) - { return store_hdr( path, im ); } + virtual bool store( pl::stream_ptr stream, const il::image_type_ptr& im ) + { return store_hdr( stream, im ); } }; } } } Modified: trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -15,7 +15,7 @@ #include <openimagelib/il/openimagelib_plugin.hpp> -extern "C" { +extern "C" { #include <jpeglib.h> } @@ -25,24 +25,126 @@ #endif namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { namespace { - FILE* Fopen_s( const pl::string& path, const char* mode ) + struct olib_jpeg_source_mgr { -#if _MSC_VER >= 1400 - FILE* file; - fopen_s( &file, path.c_str( ), mode ); - return file; -#else - return fopen( path.c_str( ), mode ); -#endif + struct jpeg_source_mgr pub; + + pl::stream_ptr stream; + JOCTET* buffer; + boolean start_of_file; + }; + + typedef olib_jpeg_source_mgr* olib_jpeg_source_mgr_ptr; + + extern "C" void init_source( j_decompress_ptr cinfo ) + { + olib_jpeg_source_mgr_ptr src = ( olib_jpeg_source_mgr_ptr ) cinfo->src; + src->start_of_file = TRUE; } + + extern "C" boolean fill_input_buffer( j_decompress_ptr cinfo ) + { + olib_jpeg_source_mgr_ptr src = ( olib_jpeg_source_mgr_ptr ) cinfo->src; + + src->pub.next_input_byte = ( JOCTET* ) src->stream->data( ); + src->pub.bytes_in_buffer = src->stream->max_size( ); + src->start_of_file = FALSE; + + return TRUE; + } + + extern "C" void skip_input_data( j_decompress_ptr cinfo, long num_bytes ) + { + olib_jpeg_source_mgr_ptr src = ( olib_jpeg_source_mgr_ptr ) cinfo->src; + + src->pub.next_input_byte += static_cast<std::size_t>( num_bytes ); + src->pub.bytes_in_buffer -= static_cast<std::size_t>( num_bytes ); + } + + extern "C" void term_source( j_decompress_ptr ) + { + } + void jpeg_oil_stream_src( j_decompress_ptr cinfo, pl::stream_ptr stream ) + { + olib_jpeg_source_mgr_ptr src = 0; + + if( cinfo->src == NULL ) + { + cinfo->src = ( jpeg_source_mgr* ) ( *cinfo->mem->alloc_small )( ( j_common_ptr ) cinfo, JPOOL_PERMANENT, sizeof( olib_jpeg_source_mgr ) ); + memset( cinfo->src, 0, sizeof( olib_jpeg_source_mgr ) ); + } + + src = ( olib_jpeg_source_mgr_ptr ) cinfo->src; + src->stream = stream; + src->buffer = ( JOCTET* ) stream->data( ); + src->pub.init_source = init_source; + src->pub.fill_input_buffer = fill_input_buffer; + src->pub.skip_input_data = skip_input_data; + src->pub.resync_to_restart = jpeg_resync_to_restart; + src->pub.term_source = term_source; + src->pub.bytes_in_buffer = 0; + src->pub.next_input_byte = NULL; + } + + struct olib_jpeg_destination_mgr + { + struct jpeg_destination_mgr pub; + + pl::stream_ptr stream; + JOCTET* buffer; + }; + + typedef olib_jpeg_destination_mgr* olib_jpeg_destination_mgr_ptr; + + extern "C" void init_destination( j_compress_ptr cinfo ) + { + olib_jpeg_destination_mgr_ptr dest = ( olib_jpeg_destination_mgr_ptr ) cinfo->dest; + + dest->buffer = ( JOCTET* ) ( *cinfo->mem->alloc_small )( ( j_common_ptr ) cinfo, JPOOL_IMAGE, dest->stream->max_size( ) ); + dest->pub.next_output_byte = dest->buffer; + dest->pub.free_in_buffer = dest->stream->max_size( ); + } + + extern "C" boolean empty_output_buffer( j_compress_ptr cinfo ) + { + olib_jpeg_destination_mgr_ptr dest = ( olib_jpeg_destination_mgr_ptr ) cinfo->dest; + + dest->stream->write( ( pl::stream::const_pointer ) dest->buffer, dest->pub.free_in_buffer ); + + dest->pub.next_output_byte = dest->buffer; + dest->pub.free_in_buffer = dest->stream->max_size( ); + + return TRUE; + } + + extern "C" void term_destination( j_compress_ptr ) + { + } + + void jpeg_oil_stream_dest( j_compress_ptr cinfo, pl::stream_ptr stream ) + { + olib_jpeg_destination_mgr_ptr dest = 0; + + if( cinfo->dest == NULL ) + { + cinfo->dest = ( jpeg_destination_mgr* ) ( *cinfo->mem->alloc_small )( ( j_common_ptr ) cinfo, JPOOL_PERMANENT, sizeof( olib_jpeg_destination_mgr ) ); + memset( cinfo->dest, 0, sizeof( olib_jpeg_destination_mgr ) ); + } + + dest = ( olib_jpeg_destination_mgr_ptr ) cinfo->dest; + dest->pub.init_destination = init_destination; + dest->pub.empty_output_buffer = empty_output_buffer; + dest->pub.term_destination = term_destination; + dest->stream = stream; + } + void destroy( il::image_type* im ) { delete im; } @@ -84,10 +186,9 @@ } #endif - il::image_type_ptr load_jpg( const boost::filesystem::path& path ) + il::image_type_ptr load_jpg( pl::stream_ptr stream ) { - FILE* infile = Fopen_s( path.native_directory_string( ), "rb" ); - if( infile == NULL ) return il::image_type_ptr( ); + if( stream->is_null( ) ) return il::image_type_ptr( ); // TODO: some proper exception handling is needed. can't really be bothered // with that setjmp thingie... @@ -107,7 +208,7 @@ #ifdef HAVE_JPEGHDR jpeghdr_create_decompress( &info ); - jpeg_stdio_src( &info.cinfo, infile ); + jpeg_oil_stream_src( &info.cinfo, stream ); switch( jpeghdr_read_header( &info ) ) { @@ -125,7 +226,7 @@ } #else jpeg_create_decompress( &info ); - jpeg_stdio_src( &info, infile ); + jpeg_oil_stream_src( &info.cinfo, stream ); jpeg_read_header( &info, TRUE ); jpeg_start_decompress( &info ); #endif @@ -152,27 +253,23 @@ read_jpeg( &info, pixels, image->pitch( ) ); #endif - fclose( infile ); - return image; } - bool store_jpg( const boost::filesystem::path& path, il::image_type_ptr img ) + bool store_jpg( pl::stream_ptr stream, il::image_type_ptr img ) { struct jpeg_compress_struct cinfo; struct jpeg_error_mgr jerr; - FILE *out = Fopen_s( path.native_directory_string( ), "wb" ); - il::image_type_ptr image = il::convert( img, L"r8g8b8" ); image = il::conform( image, 0 ); - if ( out != NULL ) + if ( !stream->is_null( ) ) { il::image_type::pointer line = image->data( ); cinfo.err = jpeg_std_error( &jerr ); jpeg_create_compress( &cinfo ); - jpeg_stdio_dest( &cinfo, out ); + jpeg_oil_stream_dest( &cinfo, stream ); cinfo.image_width = image->width( ); cinfo.image_height = image->height( ); cinfo.input_components = 3; @@ -184,7 +281,6 @@ for ( int i = 0 ; i < image->height( ); i ++, line += image->pitch( ) ) jpeg_write_scanlines( &cinfo, &line, 1 ); jpeg_finish_compress( &cinfo ); - fclose( out ); jpeg_destroy_compress( &cinfo ); return true; } @@ -196,11 +292,11 @@ class jpg_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_jpg( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_jpg( stream ); } - virtual bool store( const fs::path& path, const il::image_type_ptr& im ) - { return store_jpg( path, im ); } + virtual bool store( pl::stream_ptr stream, const il::image_type_ptr& im ) + { return store_jpg( stream, im ); } }; } } } Modified: trunk/lib/openlibraries/src/openimagelib/plugins/png/png_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/png/png_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/png/png_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -16,7 +16,6 @@ namespace pl = olib::openpluginlib; namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace olib { namespace openimagelib { namespace il { @@ -40,10 +39,10 @@ } } - il::image_type_ptr load_png( const fs::path& path ) + il::image_type_ptr load_png( pl::stream_ptr stream ) { // TODO: some proper exception handling is needed. - FILE* infile = fopen( path.native_directory_string( ).c_str( ), "rb" ); + FILE* infile = fopen( stream->path( ).c_str( ), "rb" ); if( infile == NULL ) return il::image_type_ptr( ); png_byte sig[ 8 ]; @@ -100,10 +99,10 @@ struct png_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const fs::path& path ) - { return load_png( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_png( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -9,13 +9,10 @@ #include <vector> #include <string> -#include <boost/filesystem/fstream.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> namespace pl = olib::openpluginlib; namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace olib { namespace openimagelib { namespace il { @@ -26,17 +23,6 @@ bool is_psd_header( const std::string& magic ) { return magic == std::string( "8BPS" ); } - - void Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) - { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif // _MSC_VER >= 1400 - - assert( !file.fail( ) && L"PSD_image_loader::Read_s" ); - } } template<typename T> @@ -47,7 +33,7 @@ long psd_long( T s[ 4 ] ) { return ( s[ 0 ] << 24 ) + ( s[ 1 ] << 16 ) + ( s[ 2 ] << 8 ) + s[ 3 ]; } -il::image_type_ptr load_psd( const fs::path& path ) +il::image_type_ptr load_psd( pl::stream_ptr stream ) { #ifdef WIN32 # pragma pack( push, 1 ) @@ -73,12 +59,11 @@ // TODO: do the equivalent on Linux... #endif // WIN32 - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) + if( stream->is_null( ) ) return il::image_type_ptr( ); PhotoshopHeader head; - Read_s( file, reinterpret_cast<char*>( &head ), sizeof( head ), sizeof( head ) ); + stream->read( reinterpret_cast<char*>( &head ), sizeof( head ) ); if( !is_psd_header( std::string( head.signature, 4 ) ) ) return il::image_type_ptr( ); @@ -88,10 +73,10 @@ class psd_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_psd( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_psd( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -14,14 +14,12 @@ #include <QuickTime/QuickTimeComponents.h> #endif -#include <boost/filesystem/fstream.hpp> #include <boost/thread/recursive_mutex.hpp> #include <openpluginlib/pl/utf8_utils.hpp> #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; -namespace fs = boost::filesystem; namespace pl = olib::openpluginlib; namespace olib { namespace openimagelib { namespace il { @@ -31,13 +29,13 @@ void destroy( il::image_type* im ) { delete im; } - il::image_type_ptr load_quicktime( const fs::path& path ) + il::image_type_ptr load_quicktime( pl::stream_ptr stream ) { OSStatus err; FSSpec fsspec; #ifdef WIN32 - err = NativePathNameToFSSpec( const_cast<char*>( path.native_file_string( ).c_str( ) ), &fsspec, kErrorIfFileNotFound ); + err = NativePathNameToFSSpec( const_cast<char*>( stream->path( ).c_str( ) ), &fsspec, kErrorIfFileNotFound ); #else FSRef ref; err = FSPathMakeRef( ( const UInt8* ) ( path.native_file_string( ) ).c_str( ), &ref, 0 ); @@ -117,10 +115,10 @@ struct qt_plugin : public il::openimagelib_plugin { - virtual il::image_type_ptr load( const fs::path& path ) - { return load_quicktime( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_quicktime( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr stream, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -9,13 +9,10 @@ #include <vector> #include <string> -#include <boost/filesystem/fstream.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; namespace pl = olib::openpluginlib; -namespace fs = boost::filesystem; namespace olib { namespace openimagelib { namespace il { @@ -44,7 +41,7 @@ unsigned int t1 = *ptr++; unsigned int t2 = *ptr++; - *array++ = ( t1 << 8 ) | t2; + *array++ = static_cast<unsigned short>( ( t1 << 8 ) | t2 ); } } @@ -63,17 +60,6 @@ } } - bool Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) - { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif // _MSC_VER >= 1400 - - return !file.fail( ); - } - il::image_type_ptr sgi_image_type_to_image_type( int /*dimension*/, int channels, int width, int height ) { typedef il::image<unsigned char, il::r8g8b8> r8g8b8_image_type; @@ -102,15 +88,15 @@ return il::image_type_ptr( ); } - bool read_row( fs::ifstream& file, SGI_image& di, unsigned char* buf, int y, int z ) + bool read_row( pl::stream_ptr stream, SGI_image& di, unsigned char* buf, int y, int z ) { if( ( di.type & 0xFF00 ) == 0x0100 ) { std::vector<unsigned char> tmp; tmp.resize( di.row_size[ y + z * di.ysize ] ); - file.rdbuf( )->pubseekoff( di.row_start[ y + z * di.ysize ], std::ios::beg ); - if( !Read_s( file, reinterpret_cast<char*>( &tmp[ 0 ] ), di.row_size[ y + z * di.ysize ], di.row_size[ y + z * di.ysize ] ) ) return false; + stream->seek( di.row_start[ y + z * di.ysize ], std::ios::beg ); + stream->read( reinterpret_cast<char*>( &tmp[ 0 ] ), di.row_size[ y + z * di.ysize ] ); unsigned char* s = &tmp[ 0 ]; unsigned char* t = buf; @@ -135,14 +121,14 @@ } else { - file.rdbuf( )->pubseekoff( 512 + ( y * di.xsize ) + ( z * di.xsize * di.ysize ), std::ios::beg ); - if( !Read_s( file, reinterpret_cast<char*>( buf ), di.xsize, di.xsize ) ) return false; + stream->seek( 512 + ( y * di.xsize ) + ( z * di.xsize * di.ysize ), std::ios::beg ); + stream->read( reinterpret_cast<char*>( buf ), di.xsize ); } return true; } - il::image_type_ptr load_sgi( const fs::path& path ) + il::image_type_ptr load_sgi( pl::stream_ptr stream ) { SGI_image di; @@ -150,10 +136,9 @@ big_endian_test.i = 1; bool is_big_endian = big_endian_test.c[ 0 ] == 1; - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) return il::image_type_ptr( ); + if( stream->is_null( ) ) return il::image_type_ptr( ); - if( !Read_s( file, reinterpret_cast<char*>( &di ), 12, 12 ) ) + if( !stream->read( reinterpret_cast<char*>( &di ), 12 ) ) return il::image_type_ptr( ); if( is_big_endian ) @@ -173,12 +158,10 @@ di.rle_end = 512 + ( 2 * size ); - file.rdbuf( )->pubseekoff( 512, std::ios::beg ); + stream->seek( 512, std::ios::beg ); - if( !Read_s( file, reinterpret_cast<char*>( &di.row_start[ 0 ] ), size, size ) ) - return il::image_type_ptr( ); - if( !Read_s( file, reinterpret_cast<char*>( &di.row_size[ 0 ] ), size, size ) ) - return il::image_type_ptr( ); + stream->read( reinterpret_cast<char*>( &di.row_start[ 0 ] ), size ); + stream->read( reinterpret_cast<char*>( &di.row_size[ 0 ] ), size ); if( is_big_endian ) { @@ -199,10 +182,10 @@ { if( di.zsize >= 4 ) { - if( !read_row( file, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &g[ 0 ], y, 1 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &b[ 0 ], y, 2 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &a[ 0 ], y, 3 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &g[ 0 ], y, 1 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &b[ 0 ], y, 2 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &a[ 0 ], y, 3 ) ) return il::image_type_ptr( ); unsigned char* rptr = &r[ 0 ]; unsigned char* gptr = &g[ 0 ]; @@ -222,9 +205,9 @@ } else if( di.zsize == 3 ) { - if( !read_row( file, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &g[ 0 ], y, 1 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &b[ 0 ], y, 2 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &g[ 0 ], y, 1 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &b[ 0 ], y, 2 ) ) return il::image_type_ptr( ); unsigned char* rptr = &r[ 0 ]; unsigned char* gptr = &g[ 0 ]; @@ -242,8 +225,8 @@ } else if( di.zsize == 2 ) { - if( !read_row( file, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); - if( !read_row( file, di, &a[ 0 ], y, 1 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &a[ 0 ], y, 1 ) ) return il::image_type_ptr( ); unsigned char* rptr = &r[ 0 ]; unsigned char* aptr = &a[ 0 ]; @@ -259,7 +242,7 @@ } else { - if( !read_row( file, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); + if( !read_row( stream, di, &r[ 0 ], y, 0 ) ) return il::image_type_ptr( ); unsigned char* rptr = &r[ 0 ]; long n = di.xsize; @@ -281,10 +264,10 @@ class sgi_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_sgi( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_sgi( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -12,12 +12,8 @@ #include <vector> #include <string> -#include <boost/filesystem/fstream.hpp> -#include <boost/filesystem/path.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> -namespace fs = boost::filesystem; namespace il = olib::openimagelib::il; namespace pl = olib::openpluginlib; @@ -28,17 +24,6 @@ void destroy( il::image_type* im ) { delete im; } - bool Read_s( fs::ifstream& file, char* s, std::streamsize size, std::streamsize max ) - { -#if _MSC_VER >= 1400 - file._Read_s( s, size, max ); -#else - file.read( s, size ); -#endif // _MSC_VER >= 1400 - - return !file.fail( ); - } - il::image_type_ptr tga_image_type_to_image_type( unsigned char type, unsigned char bpp, int width, int height ) { typedef il::image<unsigned char, il::b8g8r8> b8g8r8_image_type; @@ -65,7 +50,7 @@ } } - il::image_type_ptr load_tga( const fs::path& path ) + il::image_type_ptr load_tga( pl::stream_ptr stream ) { #ifdef WIN32 #pragma pack( push, 1 ) @@ -110,20 +95,8 @@ // TODO: do the equivalent on Linux... #endif // WIN32 - fs::ifstream file( path, std::ios::in | std::ios::binary ); - if( !file.is_open( ) ) - return il::image_type_ptr( ); + const char* data = stream->data( ); - std::ios::pos_type beg = file.rdbuf( )->pubseekoff( 0, std::ios::beg ); - std::ios::pos_type end = file.rdbuf( )->pubseekoff( 0, std::ios::end ); - file.rdbuf( )->pubseekoff( 0, std::ios::beg ); - - std::vector<char> stream_data; - stream_data.resize( end - beg ); - Read_s( file, &stream_data[ 0 ], end - beg, end - beg ); - - const char* data = &stream_data[ 0 ]; - TgaHeader head; head = *( ( TgaHeader* ) data ); data += sizeof( TgaHeader ); @@ -249,10 +222,10 @@ class tga_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_tga( path ); } - - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_tga( stream ); } + + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -10,12 +10,8 @@ #include <tiffio.h> -#include <boost/filesystem/fstream.hpp> -#include <boost/filesystem/path.hpp> - #include <openimagelib/il/openimagelib_plugin.hpp> -namespace fs = boost::filesystem; namespace il = olib::openimagelib::il; namespace pl = olib::openpluginlib; @@ -33,9 +29,9 @@ return il::image_type_ptr( ); } - il::image_type_ptr load_tiff( const fs::path& path ) + il::image_type_ptr load_tiff( pl::stream_ptr stream ) { - struct tiff* tif = TIFFOpen( path.native_file_string( ).c_str( ), "r" ); + struct tiff* tif = TIFFOpen( stream->path( ).c_str( ), "r" ); if( tif == NULL ) return il::image_type_ptr( ); @@ -125,10 +121,10 @@ class tiff_plugin : public il::openimagelib_plugin { public: - virtual il::image_type_ptr load( const fs::path& path ) - { return load_tiff( path ); } + virtual il::image_type_ptr load( pl::stream_ptr stream ) + { return load_tiff( stream ); } - virtual bool store( const fs::path&, const il::image_type_ptr& ) + virtual bool store( pl::stream_ptr, const il::image_type_ptr& ) { return false; } }; Modified: trunk/lib/openlibraries/src/openimagelib/py/il.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/py/il.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openimagelib/py/il.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -22,7 +22,7 @@ if( !plug ) return il::image_type_ptr( ); - il::image_type_ptr image = plug->load( fs::path( path, fs::native ) ); + il::image_type_ptr image = plug->load( opl::make_stream( path, std::ios::in ) ); if( !image ) return il::image_type_ptr( ); Modified: trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -328,7 +328,7 @@ if ( full != last_image_name_ ) { last_image_name_ = full; - last_image_ = plug_->load( fs::path( full.c_str( ), fs::native ) ); + last_image_ = plug_->load( pl::make_stream( full, std::ios::in ) ); if ( last_image_ ) last_image_->set_writable( false ); } @@ -338,7 +338,7 @@ { if ( bucket_[ index ] == image_type_ptr( ) ) { - image_type_ptr image = plug_->load( fs::path( full.c_str( ), fs::native ) ); + image_type_ptr image = plug_->load( pl::make_stream( full, std::ios::in) ); if ( image ) { bucket_[ index ] = image; @@ -473,9 +473,9 @@ discovery plugins( query ); if ( plugins.size( ) == 0 ) return false; discovery::const_iterator i = plugins.begin( ); - boost::shared_ptr<il::openimagelib_plugin>plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) ); + il::openimagelib_plugin_ptr plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) ); if ( plug == 0 ) return false; - return plug->store( out.str( ), image ); + return plug->store( pl::make_stream( out, std::ios::out ), image ); } private: Modified: trunk/lib/openlibraries/src/openobjectlib/sg/appearance.cpp =================================================================== --- trunk/lib/openlibraries/src/openobjectlib/sg/appearance.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openobjectlib/sg/appearance.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -144,7 +144,7 @@ il::openimagelib_plugin_ptr plug = boost::shared_dynamic_cast<il::openimagelib_plugin>( i->create_plugin( "" ) ); if( !plug ) return false; - im_ = plug->load( path ); + im_ = plug->load( opl::make_stream( path.native_file_string( ), std::ios::in ) ); if( !im_ ) return false; if( !opl::is_compressed_format( im_->pf( ).c_str( ) ) && im_->count( ) == 1 && im_->depth( ) == 1 ) Modified: trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.cpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -130,30 +130,4 @@ return false; } -bool proxy_texture_target( size_t width, size_t height, GLenum& target, bool force_2_0_targets ) -{ - if( ( ( GLEW_VERSION_2_0 || GLEW_ARB_texture_non_power_of_two ) && force_2_0_targets ) || ( !( width & ( width - 1 ) ) ) && ( !( height & ( height - 1 ) ) ) ) - { - target = GL_PROXY_TEXTURE_2D; - return true; - } - else if( GLEW_ARB_texture_rectangle ) - { - target = GL_PROXY_TEXTURE_RECTANGLE_ARB; - return true; - } - else if( GLEW_EXT_texture_rectangle ) - { - target = GL_PROXY_TEXTURE_RECTANGLE_EXT; - return true; - } - else if( GLEW_NV_texture_rectangle ) - { - target = GL_PROXY_TEXTURE_RECTANGLE_NV; - return true; - } - - return false; -} - } } Modified: trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.hpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.hpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openpluginlib/pl/GL_utility.hpp 2007-07-03 23:02:52 UTC (rev 168) @@ -21,7 +21,6 @@ OPENPLUGINLIB_DECLSPEC bool is_compressed_format( const wstring& pf ); OPENPLUGINLIB_DECLSPEC bool is_yuv_format( const wstring& pf ); OPENPLUGINLIB_DECLSPEC bool texture_target( size_t width, size_t height, GLenum& target, float& tex_w, float& tex_h, bool force_2_0_targets = false ); -OPENPLUGINLIB_DECLSPEC bool proxy_texture_target( size_t width, size_t height, GLenum& target, bool force_2_0_targets = false ); } } Modified: trunk/lib/openlibraries/src/openpluginlib/pl/Makefile.am =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/Makefile.am 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openpluginlib/pl/Makefile.am 2007-07-03 23:02:52 UTC (rev 168) @@ -44,10 +44,11 @@ flex_string_shell.h \ simplestringstorage.h \ smallstringopt.h \ + stream.hpp \ + stream.cpp \ vectorstringstorage.h \ GL_utility.hpp \ GL_utility.cpp \ - string.hpp \ cg.hpp \ cg.cpp \ pcos/key.hpp \ @@ -106,18 +107,11 @@ string.hpp \ timer.hpp \ shader_manager.hpp \ - allocatorstringstorage.h \ - cowstringopt.h \ - flex_string_details.h \ - flex_string.h \ - flex_string_shell.h \ - simplestringstorage.h \ - smallstringopt.h \ - vectorstringstorage.h \ geometry.hpp \ cg.hpp \ GL_utility.hpp \ string.hpp \ + stream.hpp \ pcos/key.hpp \ pcos/observer.hpp \ pcos/iproperty_container.hpp \ Modified: trunk/lib/openlibraries/src/openpluginlib/pl/stream.cpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/stream.cpp 2007-06-30 16:50:29 UTC (rev 167) +++ trunk/lib/openlibraries/src/openpluginlib/pl/stream.cpp 2007-07-03 23:02:52 UTC (rev 168) @@ -3,15 +3,121 @@ // Copyright (C) 2007 Goncalo Nuno M. de Carvalho // Released under the LGPL. -// For more information, see http://www.openlibraries.org. +// For more information, see http://www.cryogenicgraphics.com/hdrflow. +#include <boost/filesystem/operations.hpp> + +#include <openpluginlib/pl/utf8_utils.hpp> #include <openpluginlib/pl/stream.hpp> +namespace fs = boost::filesystem; + namespace olib { namespace openpluginlib { -stream_ptr make_stream( const string&, int ) +stream::stream( const string& path, std::ios::openmode flags, std::size_t max_size ) + : data_( 0 ) + , offset_( 0 ) + , max_size_( max_size ) + , flags_( flags ) + , path_( path ) { - return stream_ptr( ); + fs::path fs_path( path.c_str( ), fs::native ); + if( fs::exists( fs_path ) ) + { + mapped_.open( fs_path.native_file_string( ), flags ); + if( mapped_.is_open( ) ) + { + if( ( flags_ && std::ios::out ) != 0 )data_ = const_cast<char*>( mapped_.const_data( ) ); + else data_ = mapped_.data( ); + + max_size_ = mapped_.size( ); + } + } } +stream::~stream( ) +{ + if( mapped_.is_open( ) ) + { + data_ = 0; + offset_ = 0; + flags_ = 0; + mapped_.close( ); + } +} + +std::size_t stream::read( stream::pointer data, std::size_t bytes ) +{ + bytes = actual_bytes( bytes ); + + memcpy( data, data_ + offset_, bytes ); + offset_ += bytes; + + return bytes; +} + +std::size_t stream::write( stream::const_pointer data, std::size_t bytes ) +{ + bytes = actual_bytes( bytes ); + + memcpy( data_ + offset_, data, bytes ); + offset_ += bytes; + + return bytes; +} + +void stream::seek( std::size_t bytes, std::ios::seekdir flags ) +{ + if( flags == std::ios::beg ) + offset_ = bytes; + else if( flags == std::ios::cur ) + offset_ += bytes; + else if( flags == std::ios::end ) + offset_ = max_size_ - bytes; +} + +std::size_t stream::getline( pointer data, std::size_t bytes ) +{ + bytes = actual_bytes( bytes ); + + std::size_t i = 0; + for( ; *( data_ + i ) != '\n' && i < bytes; ++i ) + *data++ = *( data_ + i ); + + if( *( data_ + i ) == '\n' ) + ++i; +... [truncated message content] |
From: <gl...@us...> - 2007-09-19 20:20:34
|
Revision: 307 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=307&view=rev Author: glslang Date: 2007-09-19 13:20:16 -0700 (Wed, 19 Sep 2007) Log Message: ----------- + build fixes Modified Paths: -------------- trunk/lib/extras/extras_vc8.sln trunk/lib/extras/src/panoramic/panoramic.cpp trunk/lib/extras/src/ppm/ppm_plugin.cpp trunk/lib/extras/src/raw/raw.cpp trunk/lib/openlibraries/src/openpluginlib/pl/openplugin.hpp Modified: trunk/lib/extras/extras_vc8.sln =================================================================== --- trunk/lib/extras/extras_vc8.sln 2007-09-16 17:48:14 UTC (rev 306) +++ trunk/lib/extras/extras_vc8.sln 2007-09-19 20:20:16 UTC (rev 307) @@ -22,28 +22,56 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ppm", "src\ppm\ppm_vc8.vcproj", "{95CD0C43-860C-467B-9995-E6A4E0F8519B}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "noise", "src\noise\noise_vc8.vcproj", "{927446CD-3483-4CCF-B581-F0896DD4A550}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 Multi-threaded Debug DLL|Win32 = Multi-threaded Debug DLL|Win32 Multi-threaded Release DLL|Win32 = Multi-threaded Release DLL|Win32 + Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32 {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {B4CCC2D9-D505-4B08-B908-B2A38105ABC8}.Release|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32 {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {C8F73831-1355-45C9-BD1B-C7AAB4CDE373}.Release|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32 {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {9A2197B4-ABC1-4047-A81B-15E9D228C108}.Release|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32 {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {95CD0C43-860C-467B-9995-E6A4E0F8519B}.Release|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Debug|Win32.ActiveCfg = Debug|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Debug|Win32.Build.0 = Debug|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Debug DLL|Win32.ActiveCfg = Debug|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Debug DLL|Win32.Build.0 = Debug|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Release DLL|Win32.ActiveCfg = Release|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Release DLL|Win32.Build.0 = Release|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Release|Win32.ActiveCfg = Release|Win32 + {927446CD-3483-4CCF-B581-F0896DD4A550}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -55,6 +83,7 @@ {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {B4CCC2D9-D505-4B08-B908-B2A38105ABC8} = {675FBBBA-6681-49E3-AAC6-FE371310DA63} + {927446CD-3483-4CCF-B581-F0896DD4A550} = {E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9} {C8F73831-1355-45C9-BD1B-C7AAB4CDE373} = {D133B05E-F174-4CDA-8FF4-C45C139CFACD} {9A2197B4-ABC1-4047-A81B-15E9D228C108} = {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} {95CD0C43-860C-467B-9995-E6A4E0F8519B} = {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} Modified: trunk/lib/extras/src/panoramic/panoramic.cpp =================================================================== --- trunk/lib/extras/src/panoramic/panoramic.cpp 2007-09-16 17:48:14 UTC (rev 306) +++ trunk/lib/extras/src/panoramic/panoramic.cpp 2007-09-19 20:20:16 UTC (rev 307) @@ -2,7 +2,7 @@ // panoramic - Panoramic transformations plugin. // Copyright (C) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifdef WIN32 @@ -11,6 +11,12 @@ #include <windows.h> #endif +#ifdef WIN32 +# define PANORAMIC_DECLSPEC __declspec( dllexport ) +#else +# define PANORAMIC_DECLSPEC __attribute__( ( visibility( "default" ) ) ) +#endif + #include <ofxImageEffect.h> #include <openmedialib/ml/openmedialib_plugin.hpp> @@ -95,7 +101,7 @@ }; } -struct panoramic_plugin : public ml::openmedialib_plugin +struct PANORAMIC_DECLSPEC panoramic_plugin : public ml::openmedialib_plugin { virtual ml::filter_type_ptr filter( const pl::wstring& ) { return ml::filter_type_ptr( new panoramic_filter ); } }; @@ -104,28 +110,28 @@ extern "C" { - bool openplugin_init( void ) + PANORAMIC_DECLSPEC bool openplugin_init( void ) { return true; } - bool openplugin_uninit( void ) + PANORAMIC_DECLSPEC bool openplugin_uninit( void ) { return true; } - bool openplugin_create_plugin( const char*, pl::openplugin** plug ) + PANORAMIC_DECLSPEC bool openplugin_create_plugin( const char*, pl::openplugin** plug ) { *plug = new hdrflow::extras::pan::panoramic_plugin; return true; } - void openplugin_destroy_plugin( pl::openplugin* plug ) + PANORAMIC_DECLSPEC void openplugin_destroy_plugin( pl::openplugin* plug ) { delete static_cast<hdrflow::extras::pan::panoramic_plugin*>( plug ); } - OfxPlugin* OfxGetPlugin( int nth ) + PANORAMIC_DECLSPEC OfxPlugin* OfxGetPlugin( int nth ) { if( nth == 0 ) return &hdrflow::extras::pan::panoramic_ofx_plugin; @@ -133,7 +139,7 @@ return 0; } - int OfxGetNumberOfPlugins( ) + PANORAMIC_DECLSPEC int OfxGetNumberOfPlugins( ) { return 1; } Modified: trunk/lib/extras/src/ppm/ppm_plugin.cpp =================================================================== --- trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-09-16 17:48:14 UTC (rev 306) +++ trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-09-19 20:20:16 UTC (rev 307) @@ -2,7 +2,7 @@ // ppm - A PPM reader/writer plugin. // Copyright (C) 2007 Goncalo N. M. de Carvalho -// Released under the GPL. +// Released under the GPLv3 or later. // For more information, see http://www.hdrflow.com. #ifdef WIN32 Modified: trunk/lib/extras/src/raw/raw.cpp =================================================================== --- trunk/lib/extras/src/raw/raw.cpp 2007-09-16 17:48:14 UTC (rev 306) +++ trunk/lib/extras/src/raw/raw.cpp 2007-09-19 20:20:16 UTC (rev 307) @@ -26,10 +26,10 @@ namespace il = olib::openimagelib::il; namespace pcos = olib::openpluginlib::pcos; +extern "C" int dcraw_( int argc, char** argv ); + namespace hdrflow { namespace extras { namespace raw { -extern "C" int dcraw_( int argc, char** argv ); - namespace { struct query_traits Modified: trunk/lib/openlibraries/src/openpluginlib/pl/openplugin.hpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/openplugin.hpp 2007-09-16 17:48:14 UTC (rev 306) +++ trunk/lib/openlibraries/src/openpluginlib/pl/openplugin.hpp 2007-09-19 20:20:16 UTC (rev 307) @@ -24,7 +24,7 @@ namespace olib { namespace openpluginlib { -class openplugin; +struct openplugin; extern "C" { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-09-24 21:36:13
|
Revision: 315 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=315&view=rev Author: glslang Date: 2007-09-24 14:36:11 -0700 (Mon, 24 Sep 2007) Log Message: ----------- + updates boost to 1_34_1 on windows Modified Paths: -------------- trunk/lib/extras/src/noise/noise_vc8.vcproj trunk/lib/extras/src/panoramic/panoramic_vc8.vcproj trunk/lib/extras/src/ppm/ppm_vc8.vcproj trunk/lib/extras/src/raw/raw_vc8.vcproj trunk/lib/openlibraries/src/openassetlib/al/al_vc8.vcproj trunk/lib/openlibraries/src/openassetlib/plugins/sqlite/sqlite_vc8.vcproj trunk/lib/openlibraries/src/openassetlib/py/py_vc8.vcproj trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/png/png_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_vc8.vcproj trunk/lib/openlibraries/src/openimagelib/py/py_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/ml/ml_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/glew/glew_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/openal/openal_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/plugins/template/template_vc8.vcproj trunk/lib/openlibraries/src/openmedialib/py/py_vc8.vcproj trunk/lib/openlibraries/src/openobjectlib/plugins/X3D/X3D_vc8.vcproj trunk/lib/openlibraries/src/openobjectlib/plugins/obj/obj_vc8.vcproj trunk/lib/openlibraries/src/openobjectlib/sg/sg_vc8.vcproj trunk/lib/openlibraries/src/openpluginlib/pl/pl_vc8.vcproj trunk/lib/openlibraries/src/openpluginlib/py/py_vc8.vcproj trunk/lib/openlibraries/test/openassetlib/unittest_filesystem_storage_plugin/unittest_filesystem_storage_plugin.vcproj trunk/lib/openlibraries/test/openassetlib/unittest_sqlite3_metadata_plugin/unittest_sqlite3_metadata_plugin.vcproj trunk/lib/openlibraries/test/openeffectslib/rescaler_bench/rescaler_bench_vc8.vcproj trunk/lib/openlibraries/test/openeffectslib/tm_bench/tm_bench_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D/_2D_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed/_2D_compressed_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_compressed_cubemap/_2D_compressed_cubemap_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop/_2D_crop_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_crop2/_2D_crop2_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_exr/_2D_exr_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_2D_sgi/_2D_sgi_vc8.vcproj trunk/lib/openlibraries/test/openimagelib/GL/_3D_lightmap/_3D_lightmap_vc8.vcproj trunk/lib/openlibraries/test/openmedialib/player/player_vc8.vcproj trunk/lib/openlibraries/test/openmedialib/store/store_vc8.vcproj trunk/lib/openlibraries/test/openobjectlib/GL/multipass_draw/multipass_draw_vc8.vcproj trunk/lib/openlibraries/test/openobjectlib/GL/noise_volume/noise_volume_vc8.vcproj trunk/lib/openlibraries/test/openobjectlib/GL/obj_draw/obj_draw_vc8.vcproj trunk/lib/openlibraries/test/openobjectlib/GL/texture_draw/texture_draw_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/discovery/discovery_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/enumerate/enumerate_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/gpu_timer_query/gpu_timer_query_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/initialization/initialization_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/pcos/key/key_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/pcos/property/property_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/pcos/property_container/property_container_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/pcos/subject-observer/subject-observer_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/rdtsc/rdtsc_vc8.vcproj trunk/lib/openlibraries/test/openpluginlib/sleep/sleep_vc8.vcproj Modified: trunk/lib/extras/src/noise/noise_vc8.vcproj =================================================================== --- trunk/lib/extras/src/noise/noise_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/extras/src/noise/noise_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;NOISE_EXPORTS;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -121,7 +121,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;NOISE_EXPORTS;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/extras/src/panoramic/panoramic_vc8.vcproj =================================================================== --- trunk/lib/extras/src/panoramic/panoramic_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/extras/src/panoramic/panoramic_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PANORAMIC_EXPORTS;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -122,7 +122,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PANORAMIC_EXPORTS;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/extras/src/ppm/ppm_vc8.vcproj =================================================================== --- trunk/lib/extras/src/ppm/ppm_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/extras/src/ppm/ppm_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PPM_EXPORTS;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -120,7 +120,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PPM_EXPORTS;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/extras/src/raw/raw_vc8.vcproj =================================================================== --- trunk/lib/extras/src/raw/raw_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/extras/src/raw/raw_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;RAW_EXPORTS;HAVE_FLEX_STRING;_CRT_SECURE_NO_WARNINGS;NO_JPEG;NO_LCMS" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;RAW_EXPORTS;HAVE_FLEX_STRING;_CRT_SECURE_NO_WARNINGS;NO_JPEG;NO_LCMS" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openassetlib/al/al_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openassetlib/al/al_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openassetlib/al/al_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories="C:\Boost\include\boost-1_34;$(SolutionDir)\src" + AdditionalIncludeDirectories="C:\Boost\include\boost-1_34_1;$(SolutionDir)\src" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;AL_EXPORTS;OPENASSETLIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories="C:\Boost\include\boost-1_34;$(SolutionDir)\src" + AdditionalIncludeDirectories="C:\Boost\include\boost-1_34_1;$(SolutionDir)\src" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;AL_EXPORTS;OPENASSETLIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openassetlib/plugins/sqlite/sqlite_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openassetlib/plugins/sqlite/sqlite_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openassetlib/plugins/sqlite/sqlite_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories="$(SolutionDir)src;C:\Boost\include\boost-1_34" + AdditionalIncludeDirectories="$(SolutionDir)src;C:\Boost\include\boost-1_34_1" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_EXPORTS;HAVE_FLEX_STRING;OPENASSETLIB_BUILD" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories="$(SolutionDir)src;C:\Boost\include\boost-1_34" + AdditionalIncludeDirectories="$(SolutionDir)src;C:\Boost\include\boost-1_34_1" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_EXPORTS;HAVE_FLEX_STRING;OPENASSETLIB_BUILD" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openassetlib/py/py_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openassetlib/py/py_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openassetlib/py/py_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;AL_EXPORTS;OPENASSETLIB_BUILD;HAVE_FLEX_STRING;HAVE_BOOST_FILESYSTEM;PYTHON_BINDING" MinimalRebuild="true" ExceptionHandling="2" @@ -66,7 +66,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-gd-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-gd-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowAsset.pyd" LinkIncremental="2" AdditionalLibraryDirectories="C:\Boost\lib;C:\Python25\Libs;$(SolutionDir)src\openpluginlib\pl\$(ConfigurationName);$(SolutionDir)src\openassetlib\al\$(ConfigurationName);$(SolutionDir)src\openimagelib\il\$(ConfigurationName);$(SolutionDir)src\openmedialib\ml\$(ConfigurationName);$(SolutionDir)src\openobjectlib\sg\$(ConfigurationName)" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;AL_EXPORTS;OPENASSETLIB_BUILD;HAVE_FLEX_STRING;HAVE_BOOST_FILESYSTEM;PYTHON_BINDING" ExceptionHandling="2" RuntimeLibrary="2" @@ -149,7 +149,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowAsset.pyd" LinkIncremental="1" AdditionalLibraryDirectories="C:\Boost\lib;C:\Python25\Libs;$(SolutionDir)src\openpluginlib\pl\$(ConfigurationName);$(SolutionDir)src\openassetlib\al\$(ConfigurationName);$(SolutionDir)src\openimagelib\il\$(ConfigurationName);$(SolutionDir)src\openmedialib\ml\$(ConfigurationName);$(SolutionDir)src\openobjectlib\sg\$(ConfigurationName)" Modified: trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";;"C:\openexr-1.4.0-vs2005\include\OpenEXR"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";;"C:\openexr-1.4.0-vs2005\include\OpenEXR"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TONEMAP_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL;HAVE_OPENEXR" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";;"C:\openexr-1.4.0-vs2005\include\OpenEXR"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";;"C:\openexr-1.4.0-vs2005\include\OpenEXR"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TONEMAP_EXPORTS;;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL;HAVE_OPENEXR" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34";"$(SolutionDir)\src"" + AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34_1";"$(SolutionDir)\src"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL;HAVE_OPENEXR" MinimalRebuild="true" ExceptionHandling="2" @@ -132,7 +132,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34";"$(SolutionDir)\src"" + AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34_1";"$(SolutionDir)\src"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL;HAVE_OPENEXR;OPENEXR_DLL" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/3D_lightmap/3D_lightmap_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/bmp/bmp_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -130,7 +130,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/dds/dds_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -126,7 +126,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";C:\Boost\include\boost-1_34;"C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";C:\Boost\include\boost-1_34_1;"C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/dpx/dpx_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -123,7 +123,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/exr/exr_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\openexr-1.4.0-vs2005\include\OpenEXR"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\openexr-1.4.0-vs2005\include\OpenEXR"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\openexr-1.4.0-vs2005\include\OpenEXR"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\openexr-1.4.0-vs2005\include\OpenEXR"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;OPENEXR_DLL" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/gdi+/gdi+_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/hdr/hdr_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -128,7 +128,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/jpg/jpg_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\HDR\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\HDR\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;HAVE_JPEGHDR" MinimalRebuild="true" ExceptionHandling="2" @@ -131,7 +131,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\HDR\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\HDR\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING;HAVE_JPEGHDR" ExceptionHandling="2" RuntimeLibrary="0" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/png/png_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/png/png_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/png/png_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\libpng\include;C:\zlib\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\libpng\include;C:\zlib\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -126,7 +126,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\libpng\include;C:\zlib\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\libpng\include;C:\zlib\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/psd/psd_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" BasicRuntimeChecks="3" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" RuntimeLibrary="2" BufferSecurityCheck="false" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/quicktime/quicktime_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\QuickTime SDK\CIncludes"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\QuickTime SDK\CIncludes"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -126,7 +126,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\QuickTime SDK\CIncludes"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\QuickTime SDK\CIncludes"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/sgi/sgi_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" BasicRuntimeChecks="3" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" RuntimeLibrary="2" BufferSecurityCheck="false" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/tga/tga_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -126,7 +126,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/plugins/tiff/tiff_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\libtiff\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\libtiff\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\libtiff\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\libtiff\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IL_EXPORTS;OPENIMAGELIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openimagelib/py/py_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/py/py_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openimagelib/py/py_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -40,7 +40,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -65,7 +65,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-gd-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-gd-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowImage.pyd" LinkIncremental="2" AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName)";C:\Python25\Libs" @@ -123,7 +123,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" @@ -148,7 +148,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowImage.pyd" LinkIncremental="1" AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName)";C:\Python25\Libs" Modified: trunk/lib/openlibraries/src/openmedialib/ml/ml_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/ml/ml_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/ml/ml_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;ML_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;ML_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\FFmpeg\include\ffmpeg"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\FFmpeg\include\ffmpeg"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;AVFORMAT_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\FFmpeg\include\\ffmpeg"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\FFmpeg\include\\ffmpeg"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;AVFORMAT_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="false" ExceptionHandling="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GENSYS_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GENSYS_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/glew/glew_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/glew/glew_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/glew/glew_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GLEW_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GLEW_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OFX_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -123,7 +123,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\OFX" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\OFX" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OFX_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OIL_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OIL_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/openal/openal_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/openal/openal_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/openal/openal_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\OpenAL 1.1 SDK\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\OpenAL 1.1 SDK\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OPENAL_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\OpenAL 1.1 SDK\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\OpenAL 1.1 SDK\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OPENAL_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\QuickTime SDK\CIncludes"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\QuickTime SDK\CIncludes"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;QUICKTIME_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -125,7 +125,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\QuickTime SDK\CIncludes"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\QuickTime SDK\CIncludes"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;QUICKTIME_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/plugins/template/template_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/template/template_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/plugins/template/template_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TEMPLATE_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -124,7 +124,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TEMPLATE_EXPORTS;ML_PLUGIN_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openmedialib/py/py_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/py/py_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openmedialib/py/py_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" MinimalRebuild="true" ExceptionHandling="2" @@ -67,7 +67,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-gd-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-gd-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowMedia.pyd" LinkIncremental="2" AdditionalLibraryDirectories="C:\Boost\lib;C:\Python25\Libs;$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName);$(SolutionDir)\src\openimagelib\il\$(ConfigurationName)" @@ -125,7 +125,7 @@ /> <Tool Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";C:\Python25\include" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";C:\Python25\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PY_EXPORTS;OPENMEDIALIB_BUILD;HAVE_FLEX_STRING" ExceptionHandling="2" RuntimeLibrary="2" @@ -151,7 +151,7 @@ Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions="/LARGEADDRESSAWARE" - AdditionalDependencies="boost_python-vc80-mt-1_34.lib" + AdditionalDependencies="boost_python-vc80-mt-1_34_1.lib" OutputFile="$(OutDir)\HDRFlowMedia.pyd" LinkIncremental="1" AdditionalLibraryDirectories="C:\Boost\lib;C:\Python25\Libs;$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName);$(SolutionDir)\src\openimagelib\il\$(ConfigurationName)" Modified: trunk/lib/openlibraries/src/openobjectlib/plugins/X3D/X3D_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openobjectlib/plugins/X3D/X3D_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openobjectlib/plugins/X3D/X3D_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;X3D_EXPORTS;HAVE_FLEX_STRING;HAVE_OPENIMAGELIB;HAVE_CG_RUNTIME;HAVE_BOOST_FILESYSTEM;OPENOBJECTLIB_BUILD" StringPooling="false" MinimalRebuild="true" @@ -131,7 +131,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;X3D_EXPORTS;HAVE_FLEX_STRING;HAVE_OPENIMAGELIB;HAVE_CG_RUNTIME;HAVE_BOOST_FILESYSTEM;OPENOBJECTLIB_BUILD" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openobjectlib/plugins/obj/obj_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openobjectlib/plugins/obj/obj_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openobjectlib/plugins/obj/obj_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34";"$(SolutionDir)\src";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34_1";"$(SolutionDir)\src";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OBJ_EXPORTS;HAVE_FLEX_STRING;HAVE_OPENIMAGELIB;HAVE_BOOST_FILESYSTEM;HAVE_CG_RUNTIME;OPENOBJECTLIB_BUILD" MinimalRebuild="true" ExceptionHandling="2" @@ -128,7 +128,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34";"$(SolutionDir)\src";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""C:\Boost\include\boost-1_34_1";"$(SolutionDir)\src";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJ_EXPORTS;HAVE_FLEX_STRING;HAVE_OPENIMAGELIB;HAVE_BOOST_FILESYSTEM;HAVE_CG_RUNTIME;OPENOBJECTLIB_BUILD" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openobjectlib/sg/sg_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openobjectlib/sg/sg_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openobjectlib/sg/sg_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SG_EXPORTS;HAVE_FLEX_STRING;HAVE_OPENIMAGELIB;HAVE_CG_RUNTIME;HAVE_BOOST_FILESYSTEM;OPENOBJECTLIB_BUILD" StringPooling="false" MinimalRebuild="true" @@ -133,7 +133,7 @@ <Tool Name="VCCLCompilerTool" Optimization="3" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SG_EXPORTS;HAVE_FLEX_STRING;HAVE_CG_RUNTIME;HAVE_OPENIMAGELIB;HAVE_BOOST_FILESYSTEM;OPENOBJECTLIB_BUILD" ExceptionHandling="2" RuntimeLibrary="2" Modified: trunk/lib/openlibraries/src/openpluginlib/pl/pl_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/pl/pl_vc8.vcproj 2007-09-23 17:01:10 UTC (rev 314) +++ trunk/lib/openlibraries/src/openpluginlib/pl/pl_vc8.vcproj 2007-09-24 21:36:11 UTC (rev 315) @@ -41,7 +41,7 @@ <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;OPENPLUGINLIB_EXPORTS;OPENPLUGINLIB_BUILD;HAVE_FLEX_STRING;HAVE_CG_RUNTIME;HAVE_BOOST_FILESYSTEM;HAVE_FAST_MATH" MinimalRebuild="true" ExceptionHandling="2" @@ -128,7 +128,7 @@ <Tool Name="VCCLCompilerTool" Optimization="2" - AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34";"C:\Program Files\NVIDIA Corporation\Cg\include"" + AdditionalIncludeDirectories=""$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\NVIDIA Corporation\Cg\include"" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OPENPLUGINLIB_EXPORTS;OPENPLUGINLIB_BUILD;HAVE_FLEX_STRING;HAVE_CG_RUNTIME;HAVE_BOOST_FILESYSTEM;HAVE_FAST_MATH" Ex... [truncated message content] |
From: <gl...@us...> - 2007-09-30 17:50:39
|
Revision: 331 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=331&view=rev Author: glslang Date: 2007-09-30 10:50:37 -0700 (Sun, 30 Sep 2007) Log Message: ----------- + encode to float by normalising to [0.0-1.0]. Workaround for maya plugin release Modified Paths: -------------- trunk/lib/extras/src/imf/mfn/mfn.cpp trunk/lib/extras/src/ppm/ppm_plugin.cpp trunk/lib/openlibraries/src/openimagelib/il/utility.cpp Modified: trunk/lib/extras/src/imf/mfn/mfn.cpp =================================================================== --- trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-09-30 16:10:39 UTC (rev 330) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-09-30 17:50:37 UTC (rev 331) @@ -135,28 +135,32 @@ MGlobal::displayInfo( "HDRFlow: loading image..." ); #endif - im_ = il::convert( im_, L"r32g32b32a32f" ); - if( !im_ ) + il::image_type_ptr im = il::convert( im_, L"r32g32b32a32f" ); + if( !im ) { + im = il::convert( il::convert( im_, L"b8g8r8a8" ), L"r32g32b32a32f" ); + if( !im ) + { #ifndef NDEBUG - MGlobal::displayInfo( "HDRFlow: Internal Error: conversion to floating point format failed. Please report to su...@cr...." ); + MGlobal::displayInfo( "HDRFlow: Internal Error: conversion to floating point format failed. Please report to su...@cr...." ); #endif - return MS::kFailure; + return MS::kFailure; + } } - int width = im_->width( ); - int height = im_->height( ); - int pitch = im_->pitch( ); - int linesize = im_->linesize( ); + int width = im->width( ); + int height = im->height( ); + int pitch = im->pitch( ); + int linesize = im->linesize( ); - image.create( im_->width( ), im_->height( ), 4, MImage::kFloat ); + image.create( im->width( ), im->height( ), 4, MImage::kFloat ); - const float* src = reinterpret_cast<const float*>( im_->data( ) ); + const float* src = reinterpret_cast<const float*>( im->data( ) ); float* dst = image.floatPixels( ); for( int i = 0; i < height; ++i ) { - memcpy( dst, src, im_->linesize( ) * sizeof( float ) ); + memcpy( dst, src, im->linesize( ) * sizeof( float ) ); src += pitch; dst += width * 4; Modified: trunk/lib/extras/src/ppm/ppm_plugin.cpp =================================================================== --- trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-09-30 16:10:39 UTC (rev 330) +++ trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-09-30 17:50:37 UTC (rev 331) @@ -46,14 +46,16 @@ const unsigned short* data = reinterpret_cast<const unsigned short*>( stream->data( ) ); il::image_type::pointer texels = im->data( ); - + + float one_over_65535 = 1.0f / 65535.0f; + for( int i = 0; i < height; ++i ) { for( int j = 0; j < width; ++j ) { - ( ( float* ) texels )[ 0 ] = *data++; - ( ( float* ) texels )[ 1 ] = *data++; - ( ( float* ) texels )[ 2 ] = *data++; + ( ( float* ) texels )[ 0 ] = *data++ * one_over_65535; + ( ( float* ) texels )[ 1 ] = *data++ * one_over_65535; + ( ( float* ) texels )[ 2 ] = *data++ * one_over_65535; ( ( float* ) texels )[ 3 ] = 1.0f; texels += 4 * sizeof( float ); Modified: trunk/lib/openlibraries/src/openimagelib/il/utility.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/utility.cpp 2007-09-30 16:10:39 UTC (rev 330) +++ trunk/lib/openlibraries/src/openimagelib/il/utility.cpp 2007-09-30 17:50:37 UTC (rev 331) @@ -1695,14 +1695,16 @@ size_type orig_width = width; + float one_over_255 = 1.0f / 255.0f; + while( height-- ) { while( width-- ) { - *dst++ = *( src + 2 ); - *dst++ = *( src + 1 ); - *dst++ = *( src + 0 ); - *dst++ = *( src + 3 ); + *dst++ = *( src + 2 ) * one_over_255; + *dst++ = *( src + 1 ) * one_over_255; + *dst++ = *( src + 0 ) * one_over_255; + *dst++ = *( src + 3 ) * one_over_255; src += 4; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-12-29 15:34:39
|
Revision: 387 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=387&view=rev Author: glslang Date: 2007-12-29 07:34:35 -0800 (Sat, 29 Dec 2007) Log Message: ----------- + port maya plugin to win + build fixes to account for FFMpeg from SVN Modified Paths: -------------- trunk/lib/extras/extras_vc8.sln trunk/lib/extras/src/imf/mfn/mfn.cpp trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj Added Paths: ----------- trunk/lib/extras/src/imf/hdr/readers_vc8.vcproj trunk/lib/extras/src/imf/mfn/config.hpp trunk/lib/extras/src/imf/mfn/readers_vc8.vcproj Modified: trunk/lib/extras/extras_vc8.sln =================================================================== --- trunk/lib/extras/extras_vc8.sln 2007-12-22 20:01:12 UTC (rev 386) +++ trunk/lib/extras/extras_vc8.sln 2007-12-29 15:34:35 UTC (rev 387) @@ -24,6 +24,10 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "noise", "src\noise\noise_vc8.vcproj", "{927446CD-3483-4CCF-B581-F0896DD4A550}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Maya 2008", "Maya 2008", "{0CED7D48-905C-4C67-96B9-668B7728ED10}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readers", "src\imf\mfn\readers_vc8.vcproj", "{061A3FF5-B3C6-4CDC-A018-5B985C234CD6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Multi-threaded Debug DLL|Win32 = Multi-threaded Debug DLL|Win32 @@ -50,6 +54,10 @@ {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {927446CD-3483-4CCF-B581-F0896DD4A550}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 + {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 + {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -60,10 +68,12 @@ {D133B05E-F174-4CDA-8FF4-C45C139CFACD} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} + {0CED7D48-905C-4C67-96B9-668B7728ED10} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {B4CCC2D9-D505-4B08-B908-B2A38105ABC8} = {675FBBBA-6681-49E3-AAC6-FE371310DA63} {927446CD-3483-4CCF-B581-F0896DD4A550} = {E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9} {C8F73831-1355-45C9-BD1B-C7AAB4CDE373} = {D133B05E-F174-4CDA-8FF4-C45C139CFACD} {9A2197B4-ABC1-4047-A81B-15E9D228C108} = {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} {95CD0C43-860C-467B-9995-E6A4E0F8519B} = {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} + {061A3FF5-B3C6-4CDC-A018-5B985C234CD6} = {0CED7D48-905C-4C67-96B9-668B7728ED10} EndGlobalSection EndGlobal Added: trunk/lib/extras/src/imf/hdr/readers_vc8.vcproj =================================================================== --- trunk/lib/extras/src/imf/hdr/readers_vc8.vcproj (rev 0) +++ trunk/lib/extras/src/imf/hdr/readers_vc8.vcproj 2007-12-29 15:34:35 UTC (rev 387) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="readers" + ProjectGUID="{061A3FF5-B3C6-4CDC-A018-5B985C234CD6}" + RootNamespace="readers" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Multi-threaded Debug DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;READERS_EXPORTS;HAVE_FLEX_STRING" + MinimalRebuild="true" + ExceptionHandling="2" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)\hdrflow_extras_maya_readers-vc80-d-0_1_0.dll" + LinkIncremental="2" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)"" + GenerateDebugInformation="true" + SubSystem="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Multi-threaded Release DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;READERS_EXPORTS;HAVE_FLEX_STRING" + ExceptionHandling="2" + RuntimeLibrary="2" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)\hdrflow_extras_maya_readers-vc80-r-0_1_0.dll" + LinkIncremental="1" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)"" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Property changes on: trunk/lib/extras/src/imf/hdr/readers_vc8.vcproj ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/lib/extras/src/imf/mfn/config.hpp =================================================================== --- trunk/lib/extras/src/imf/mfn/config.hpp (rev 0) +++ trunk/lib/extras/src/imf/mfn/config.hpp 2007-12-29 15:34:35 UTC (rev 387) @@ -0,0 +1,25 @@ + +// mfn - Autodesk's Maya import/export image plugin + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#ifndef READERS_CONFIG_INC_ +#define READERS_CONFIG_INC_ + +#ifdef WIN32 +# ifdef READERS_EXPORTS +# define READERS_DECLSPEC __declspec( dllexport ) +# else +# define READERS_DECLSPEC __declspec( dllimport ) +# endif +#else +# ifdef READERS_EXPORTS +# define READERS_DECLSPEC __attribute__( ( visibility( "default" ) ) ) +# else +# define READERS_DECLSPEC __attribute__( ( visibility( "default" ) ) ) +# endif +#endif + +#endif Property changes on: trunk/lib/extras/src/imf/mfn/config.hpp ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/lib/extras/src/imf/mfn/mfn.cpp =================================================================== --- trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-12-22 20:01:12 UTC (rev 386) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2007-12-29 15:34:35 UTC (rev 387) @@ -23,6 +23,8 @@ #include <openimagelib/il/openimagelib_plugin.hpp> +#include <imf/mfn/config.hpp> + namespace pl = olib::openpluginlib; namespace il = olib::openimagelib::il; @@ -188,7 +190,7 @@ } } } -extern "C" MStatus initializePlugin( MObject obj ) +extern "C" READERS_DECLSPEC MStatus initializePlugin( MObject obj ) { MFnPlugin plugin( obj, "com.cryogenicgraphics", "8.0", "Any" ); MStringArray extensions; @@ -210,7 +212,7 @@ return MS::kSuccess; } -extern "C" MStatus uninitializePlugin( MObject obj ) +extern "C" READERS_DECLSPEC MStatus uninitializePlugin( MObject obj ) { MFnPlugin plugin( obj ); CHECK_MSTATUS( plugin.deregisterImageFile( "HDRFlow" ) ); Added: trunk/lib/extras/src/imf/mfn/readers_vc8.vcproj =================================================================== --- trunk/lib/extras/src/imf/mfn/readers_vc8.vcproj (rev 0) +++ trunk/lib/extras/src/imf/mfn/readers_vc8.vcproj 2007-12-29 15:34:35 UTC (rev 387) @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="readers" + ProjectGUID="{061A3FF5-B3C6-4CDC-A018-5B985C234CD6}" + RootNamespace="readers" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Multi-threaded Debug DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\Autodesk\Maya2008\include"" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;READERS_EXPORTS;HAVE_FLEX_STRING;_BOOL;REQUIRE_IOSTREAM" + MinimalRebuild="true" + ExceptionHandling="2" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + AdditionalDependencies="OpenMaya.lib Foundation.lib" + OutputFile="$(OutDir)\HDRFlowMaya.mll" + LinkIncremental="2" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)";"C:\Program Files\Autodesk\Maya2008\lib"" + GenerateDebugInformation="true" + SubSystem="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Multi-threaded Release DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"$(SolutionDir)\src";"C:\Boost\include\boost-1_34_1";"C:\Program Files\Autodesk\Maya2008\include"" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;READERS_EXPORTS;HAVE_FLEX_STRING;_BOOL;REQUIRE_IOSTREAM" + ExceptionHandling="2" + RuntimeLibrary="2" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + AdditionalDependencies="OpenMaya.lib Foundation.lib" + OutputFile="$(OutDir)\HDRFlowMaya.mll" + LinkIncremental="1" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)";"C:\Program Files\Autodesk\Maya2008\lib"" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\mfn.cpp" + > + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + <File + RelativePath=".\config.hpp" + > + </File> + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Property changes on: trunk/lib/extras/src/imf/mfn/readers_vc8.vcproj ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj 2007-12-22 20:01:12 UTC (rev 386) +++ trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_vc8.vcproj 2007-12-29 15:34:35 UTC (rev 387) @@ -67,7 +67,7 @@ <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" - AdditionalDependencies="avcodec-51.lib avformat-51.lib avutil-49.lib" + AdditionalDependencies="avcodec.lib avformat.lib avutil.lib" OutputFile="$(OutDir)\openmedialib_avformat-vc80-d-0_5_0.dll" LinkIncremental="2" AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\src\openimagelib\il\$(ConfigurationName)";"C:\Program Files\FFmpeg\lib"" @@ -151,7 +151,7 @@ <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" - AdditionalDependencies="avcodec-51.lib avformat-51.lib avutil-49.lib" + AdditionalDependencies="avcodec.lib avformat.lib avutil.lib" OutputFile="$(OutDir)\openmedialib_avformat-vc80-r-0_5_0.dll" LinkIncremental="1" AdditionalLibraryDirectories="C:\Boost\lib;$(SolutionDir)\src\openpluginlib\pl\$(ConfigurationName);C:\Boost\lib;$(SolutionDir)\src\openimagelib\il\$(ConfigurationName);"C:\Program Files\FFmpeg\lib"" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2007-12-30 16:50:01
|
Revision: 389 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=389&view=rev Author: glslang Date: 2007-12-30 08:49:57 -0800 (Sun, 30 Dec 2007) Log Message: ----------- + removes unneeded const + some stubs for luts and hd photo Modified Paths: -------------- trunk/lib/extras/extras_vc8.sln trunk/lib/extras/src/noise/noise.cpp trunk/lib/extras/src/panoramic/panoramic.cpp trunk/lib/extras/src/ppm/ppm_plugin.cpp trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_plugin.cpp trunk/lib/openlibraries/src/openmedialib/ml/filter.hpp trunk/lib/openlibraries/src/openmedialib/ml/input.hpp trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_plugin.cpp trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_plugin.cpp trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_plugin.cpp trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_input.h trunk/lib/openlibraries/src/openmedialib/py/ml.cpp Added Paths: ----------- trunk/lib/extras/src/lut/ trunk/lib/extras/src/lut/lut.cpp trunk/lib/extras/src/lut/lut_vc8.vcproj trunk/lib/extras/src/wic/ trunk/lib/extras/src/wic/wic.cpp trunk/lib/extras/src/wic/wic_vc8.vcproj Modified: trunk/lib/extras/extras_vc8.sln =================================================================== --- trunk/lib/extras/extras_vc8.sln 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/extras/extras_vc8.sln 2007-12-30 16:49:57 UTC (rev 389) @@ -28,6 +28,14 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readers", "src\imf\mfn\readers_vc8.vcproj", "{061A3FF5-B3C6-4CDC-A018-5B985C234CD6}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LUTs", "LUTs", "{078F108D-642B-417D-99C6-F05C8266C57E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lut", "src\lut\lut_vc8.vcproj", "{80F6C766-D2FB-4744-AAAD-0DC99094DCDD}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WIC", "WIC", "{4861599B-D7E9-4C5B-83FE-2ECF7484C18E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wic", "src\wic\wic_vc8.vcproj", "{DA08A396-4003-4A9F-85DC-45A270300CD1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Multi-threaded Debug DLL|Win32 = Multi-threaded Debug DLL|Win32 @@ -58,6 +66,14 @@ {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {061A3FF5-B3C6-4CDC-A018-5B985C234CD6}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {80F6C766-D2FB-4744-AAAD-0DC99094DCDD}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 + {80F6C766-D2FB-4744-AAAD-0DC99094DCDD}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 + {80F6C766-D2FB-4744-AAAD-0DC99094DCDD}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {80F6C766-D2FB-4744-AAAD-0DC99094DCDD}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 + {DA08A396-4003-4A9F-85DC-45A270300CD1}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 + {DA08A396-4003-4A9F-85DC-45A270300CD1}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 + {DA08A396-4003-4A9F-85DC-45A270300CD1}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 + {DA08A396-4003-4A9F-85DC-45A270300CD1}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -69,11 +85,15 @@ {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {0CED7D48-905C-4C67-96B9-668B7728ED10} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} + {078F108D-642B-417D-99C6-F05C8266C57E} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} + {4861599B-D7E9-4C5B-83FE-2ECF7484C18E} = {2644DB77-2096-4A50-A23F-C57D3C011FE2} {B4CCC2D9-D505-4B08-B908-B2A38105ABC8} = {675FBBBA-6681-49E3-AAC6-FE371310DA63} {927446CD-3483-4CCF-B581-F0896DD4A550} = {E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9} {C8F73831-1355-45C9-BD1B-C7AAB4CDE373} = {D133B05E-F174-4CDA-8FF4-C45C139CFACD} {9A2197B4-ABC1-4047-A81B-15E9D228C108} = {CE7A290A-13C0-424E-A02A-96CDC6B0E6BE} {95CD0C43-860C-467B-9995-E6A4E0F8519B} = {4E0BD6BF-2B4D-4BF8-BEB7-3BFF57D627BC} {061A3FF5-B3C6-4CDC-A018-5B985C234CD6} = {0CED7D48-905C-4C67-96B9-668B7728ED10} + {80F6C766-D2FB-4744-AAAD-0DC99094DCDD} = {078F108D-642B-417D-99C6-F05C8266C57E} + {DA08A396-4003-4A9F-85DC-45A270300CD1} = {4861599B-D7E9-4C5B-83FE-2ECF7484C18E} EndGlobalSection EndGlobal Added: trunk/lib/extras/src/lut/lut.cpp =================================================================== --- trunk/lib/extras/src/lut/lut.cpp (rev 0) +++ trunk/lib/extras/src/lut/lut.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -0,0 +1,93 @@ + +// lut - LUTs image generation + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#ifdef HAVE_CONFIG_H +#include <openlibraries_global_config.hpp> +#endif + +#ifdef WIN32 +#define _USE_MATH_DEFINES +#include <cmath> +#endif + +#include <openmedialib/ml/openmedialib_plugin.hpp> + +namespace pl = olib::openpluginlib; +namespace il = olib::openimagelib::il; +namespace ml = olib::openmedialib::ml; +namespace pcos = olib::openpluginlib::pcos; + +namespace hdrflow { + +class ML_PLUGIN_DECLSPEC gamma_input : public ml::input_type +{ +public: + explicit gamma_input( ) + : prop_width_( pcos::key::from_string( "width" ) ) + , prop_height_( pcos::key::from_string( "height" ) ) + , prop_bitdepth_( pcos::key::from_string( "bitdepth" ) ) + , prop_is_float_( pcos::key::from_string( "is_float" ) ) + { } + + virtual ~gamma_input( ) { } + + virtual pl::wstring get_uri( ) const { return L"gamma:"; } + virtual pl::wstring get_mime_type( ) const { return L""; } + + + +private: + pcos::property prop_width_; + pcos::property prop_height_; + pcos::property prop_bitdepth_; + pcos::property prop_is_float_; +}; + +class ML_PLUGIN_DECLSPEC lut_plugin : public ml::openmedialib_plugin +{ +public: + virtual ml::input_type_ptr input( const pl::wstring& request ) + { + return ml::input_type_ptr( ); + } +}; + +} + +extern "C" +{ + ML_PLUGIN_DECLSPEC bool openplugin_init( void ) + { + return true; + } + + ML_PLUGIN_DECLSPEC bool openplugin_uninit( void ) + { + return true; + } + + ML_PLUGIN_DECLSPEC bool openplugin_create_plugin( const char*, pl::openplugin** plug ) + { + *plug = new hdrflow::lut_plugin; + return true; + } + + ML_PLUGIN_DECLSPEC void openplugin_destroy_plugin( pl::openplugin* plug ) + { + delete static_cast<hdrflow::lut_plugin*>( plug ); + } +} + +#ifdef WIN32 +extern "C" BOOL WINAPI DllMain( HINSTANCE hInstDLL, DWORD fdwReason, LPVOID ) +{ + if( fdwReason == DLL_PROCESS_ATTACH ) + DisableThreadLibraryCalls( hInstDLL ); + + return TRUE; +} +#endif Property changes on: trunk/lib/extras/src/lut/lut.cpp ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/lib/extras/src/lut/lut_vc8.vcproj =================================================================== --- trunk/lib/extras/src/lut/lut_vc8.vcproj (rev 0) +++ trunk/lib/extras/src/lut/lut_vc8.vcproj 2007-12-30 16:49:57 UTC (rev 389) @@ -0,0 +1,210 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="lut" + ProjectGUID="{80F6C766-D2FB-4744-AAAD-0DC99094DCDD}" + RootNamespace="lut" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Multi-threaded Debug DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;ML_PLUGIN_EXPORTS;HAVE_FLEX_STRING" + MinimalRebuild="true" + ExceptionHandling="2" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + OutputFile="$(OutDir)\hdrflow_extras_lut-vc80-d-0_1_0.dll" + LinkIncremental="2" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)"" + GenerateDebugInformation="true" + SubSystem="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Multi-threaded Release DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1"" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;ML_PLUGIN_EXPORTS;HAVE_FLEX_STRING" + ExceptionHandling="2" + RuntimeLibrary="2" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + OutputFile="$(OutDir)\hdrflow_extras_lut-vc80-r-0_1_0.dll" + LinkIncremental="1" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)"" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\lut.cpp" + > + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Property changes on: trunk/lib/extras/src/lut/lut_vc8.vcproj ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/lib/extras/src/noise/noise.cpp =================================================================== --- trunk/lib/extras/src/noise/noise.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/extras/src/noise/noise.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -66,7 +66,7 @@ { } public: - const pl::wstring get_uri( ) const { return L"panoramic:"; } + virtual pl::wstring get_uri( ) const { return L"panoramic:"; } ml::frame_type_ptr fetch( ) { Modified: trunk/lib/extras/src/panoramic/panoramic.cpp =================================================================== --- trunk/lib/extras/src/panoramic/panoramic.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/extras/src/panoramic/panoramic.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -76,7 +76,7 @@ } public: - const pl::wstring get_uri( ) const { return L"panoramic:"; } + virtual pl::wstring get_uri( ) const { return L"panoramic:"; } ml::frame_type_ptr fetch( ) { Modified: trunk/lib/extras/src/ppm/ppm_plugin.cpp =================================================================== --- trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/extras/src/ppm/ppm_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -11,6 +11,10 @@ # define PPM_DECLSPEC __attribute__( ( visibility( "default" ) ) ) #endif +#ifdef HAVE_CONFIG_H +#include <openlibraries_global_config.hpp> +#endif + #include <openimagelib/il/openimagelib_plugin.hpp> namespace il = olib::openimagelib::il; Added: trunk/lib/extras/src/wic/wic.cpp =================================================================== --- trunk/lib/extras/src/wic/wic.cpp (rev 0) +++ trunk/lib/extras/src/wic/wic.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -0,0 +1,121 @@ + +// wic - Windows Image Component plugin + +// Copyright (c) 2007 Goncalo N. M. de Carvalho +// Released under the GPL. +// For more information, see http://www.hdrflow.com. + +#ifdef WIN32 +# define WIC_DECLSPEC __declspec( dllexport ) +#else +# define WIC_DECLSPEC __attribute__( ( visibility( "default" ) ) ) +#endif + +#ifdef HAVE_CONFIG_H +#include <openlibraries_global_config.hpp> +#endif + +#include <wincodec.h> +#include <wincodecsdk.h> + +#include <openpluginlib/pl/utf8_utils.hpp> + +#include <openimagelib/il/openimagelib_plugin.hpp> + +namespace il = olib::openimagelib::il; +namespace pl = olib::openpluginlib; + +namespace hdrflow { + +namespace +{ + il::image_type_ptr GUID_to_pf( WICPixelFormatGUID guid, UINT width, UINT height ) + { + return il::image_type_ptr( ); + } + + il::image_type_ptr load_wic( const pl::string& uri ) + { +# define SAFE_RELEASE( p ) { if( p ) { p->Release( ); p = NULL; } } + + il::image_type_ptr im; + + IWICImagingFactory* wic_factory = NULL; + IWICBitmapDecoder* decoder = NULL; + IWICBitmapFrameDecode* frame = NULL; + + HRESULT hr = CoCreateInstance( CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER, IID_IWICImagingFactory, ( LPVOID* ) &wic_factory ); + if( FAILED( hr ) ) + goto error; + + hr = wic_factory->CreateDecoderFromFilename( pl::to_wstring( uri ).c_str( ), NULL, GENERIC_READ, WICDecodeMetadataCacheOnDemand, &decoder ); + if( FAILED( hr ) ) + goto error; + + hr = decoder->GetFrame( 0, &frame ); + if( FAILED( hr ) ) + goto error; + + IWICBitmapSource* source = ( IWICBitmapSource* ) frame; + UINT width; + UINT height; + WICPixelFormatGUID pixelformat; + + source->GetSize( &width, &height ); + source->GetPixelFormat( &pixelformat ); + + im = GUID_to_pf( pixelformat, width, height ); + + error: + SAFE_RELEASE( decoder ); + SAFE_RELEASE( wic_factory ); + SAFE_RELEASE( frame ); + + return im; + +# undef SAFE_RELEASE + } +} + +struct WIC_DECLSPEC wic_plugin : public il::openimagelib_plugin +{ + virtual il::image_type_ptr load( const pl::string& uri ) + { return load_wic( uri ); } + + virtual bool store( const pl::string&, il::image_type_ptr ) + { return false; } +}; + +} + +extern "C" +{ + WIC_DECLSPEC bool openplugin_init( void ) + { + return true; + } + + WIC_DECLSPEC bool openplugin_uninit( void ) + { + return true; + } + + WIC_DECLSPEC bool openplugin_create_plugin( const char*, pl::openplugin** plug ) + { + *plug = new hdrflow::wic_plugin; + return true; + } + + WIC_DECLSPEC void openplugin_destroy_plugin( pl::openplugin* plug ) + { delete static_cast<hdrflow::wic_plugin*>( plug ); } +} + +#ifdef WIN32 +extern "C" BOOL WINAPI DllMain( HINSTANCE hInstDLL, DWORD fdwReason, LPVOID ) +{ + if( fdwReason == DLL_PROCESS_ATTACH ) + DisableThreadLibraryCalls( hInstDLL ); + + return TRUE; +} +#endif Property changes on: trunk/lib/extras/src/wic/wic.cpp ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/lib/extras/src/wic/wic_vc8.vcproj =================================================================== --- trunk/lib/extras/src/wic/wic_vc8.vcproj (rev 0) +++ trunk/lib/extras/src/wic/wic_vc8.vcproj 2007-12-30 16:49:57 UTC (rev 389) @@ -0,0 +1,213 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="wic" + ProjectGUID="{DA08A396-4003-4A9F-85DC-45A270300CD1}" + RootNamespace="wic" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Multi-threaded Debug DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;WIC_EXPORTS;HAVE_FLEX_STRING" + MinimalRebuild="true" + ExceptionHandling="2" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + AdditionalDependencies="windowscodecs.lib" + OutputFile="$(OutDir)\hdrflow_extras_wic-vc80-d-0_1_0.dll" + LinkIncremental="2" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)";C:\Program Files\Microsoft SDKs\Windows\v6.0\lib" + GenerateDebugInformation="true" + SubSystem="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Multi-threaded Release DLL|Win32" + OutputDirectory="$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories=""$(SolutionDir)\..\openlibraries\src";"C:\Boost\include\boost-1_34_1";C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;WIC_EXPORTS;HAVE_FLEX_STRING" + ExceptionHandling="2" + RuntimeLibrary="2" + BufferSecurityCheck="false" + OpenMP="true" + UsePrecompiledHeader="0" + WarningLevel="4" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + IgnoreImportLibrary="true" + AdditionalDependencies="windowscodecs.lib" + OutputFile="$(OutDir)\hdrflow_extras_wic-vc80-r-0_1_0.dll" + LinkIncremental="1" + AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openmedialib\ml\$(ConfigurationName)";C:\Program Files\Microsoft SDKs\Windows\v6.0\lib" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\wic.cpp" + > + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Property changes on: trunk/lib/extras/src/wic/wic_vc8.vcproj ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openeffectslib/plugins/tonemap/tonemap_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -355,7 +355,7 @@ properties( ).append( prop_maxval_ = ( std::numeric_limits<float>::max )( ) ); } - virtual const opl::wstring get_uri( ) const { return L"tm_linear"; } + virtual opl::wstring get_uri( ) const { return L"tm_linear"; } virtual frame_type_ptr fetch( ) { @@ -392,7 +392,7 @@ properties( ).append( prop_knee_high_ = 5.0f ); } - virtual const opl::wstring get_uri( ) const { return L"tm_ilm_exr"; } + virtual opl::wstring get_uri( ) const { return L"tm_ilm_exr"; } virtual frame_type_ptr fetch( ) { @@ -428,7 +428,7 @@ properties( ).append( prop_ldmax_ = 100.0f ); } - virtual const opl::wstring get_uri( ) const { return L"tm_ferwerda"; } + virtual opl::wstring get_uri( ) const { return L"tm_ferwerda"; } virtual frame_type_ptr fetch( ) { Modified: trunk/lib/openlibraries/src/openmedialib/ml/filter.hpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/ml/filter.hpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/ml/filter.hpp 2007-12-30 16:49:57 UTC (rev 389) @@ -62,9 +62,9 @@ // implementation of these methods should be sufficient for the majority of cases. // Basic information - virtual const openpluginlib::wstring get_uri( ) const = 0; + virtual openpluginlib::wstring get_uri( ) const = 0; - virtual const openpluginlib::wstring get_mime_type( ) const + virtual openpluginlib::wstring get_mime_type( ) const { return slots_[ 0 ] ? slots_[ 0 ]->get_mime_type( ) : L""; } // Audio/Visual Modified: trunk/lib/openlibraries/src/openmedialib/ml/input.hpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/ml/input.hpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/ml/input.hpp 2007-12-30 16:49:57 UTC (rev 389) @@ -83,8 +83,8 @@ void register_callback( input_callback_ptr callback ) { callback_ = callback; } // Basic information - virtual const openpluginlib::wstring get_uri( ) const = 0; - virtual const openpluginlib::wstring get_mime_type( ) const = 0; + virtual openpluginlib::wstring get_uri( ) const = 0; + virtual openpluginlib::wstring get_mime_type( ) const = 0; // Audio/Visual virtual int get_frames( ) const = 0; Modified: trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/plugins/avformat/avformat_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -14,6 +14,10 @@ #include <windows.h> #endif // WIN32 +#ifndef INT64_C +#define INT64_C(x) x ## LL +#endif // INT64_C + #include <iostream> #include <cstdlib> #include <vector> @@ -27,7 +31,6 @@ #include <boost/thread/condition.hpp> #include <boost/thread/recursive_mutex.hpp> - extern "C" { #include <avformat.h> } @@ -1724,8 +1727,8 @@ } // Basic information - virtual const opl::wstring get_uri( ) const { return uri_; } - virtual const opl::wstring get_mime_type( ) const { return mime_type_; } + virtual opl::wstring get_uri( ) const { return uri_; } + virtual opl::wstring get_mime_type( ) const { return mime_type_; } virtual bool has_video( ) const { return prop_video_index_.value< int >( ) != -1 && video_indexes_.size( ) > 0; } virtual bool has_audio( ) const { return prop_audio_index_.value< int >( ) != -1 && audio_indexes_.size( ) > 0; } @@ -1956,7 +1959,7 @@ free(out_buffer_); } - virtual const opl::wstring get_uri( ) const { return L"resampler"; } + virtual opl::wstring get_uri( ) const { return L"resampler"; } void cache( int pos, input_type_ptr input ) { Modified: trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/plugins/gensys/gensys_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -102,8 +102,8 @@ virtual ~colour_input( ) { } // Basic information - virtual const opl::wstring get_uri( ) const { return L"colour:"; } - virtual const opl::wstring get_mime_type( ) const { return L""; } + virtual opl::wstring get_uri( ) const { return L"colour:"; } + virtual opl::wstring get_mime_type( ) const { return L""; } // Audio/Visual virtual int get_frames( ) const { return prop_out_.value< int >( ); } @@ -210,8 +210,8 @@ virtual ~pusher_input( ) { } // Basic information - virtual const opl::wstring get_uri( ) const { return L"pusher:"; } - virtual const opl::wstring get_mime_type( ) const { return L""; } + virtual opl::wstring get_uri( ) const { return L"pusher:"; } + virtual opl::wstring get_mime_type( ) const { return L""; } // Audio/Visual virtual int get_frames( ) const { return int( queue_.size( ) ); } @@ -281,7 +281,7 @@ properties( ).append( prop_v_ = 128 ); } - virtual const opl::wstring get_uri( ) const { return L"chroma"; } + virtual opl::wstring get_uri( ) const { return L"chroma"; } virtual frame_type_ptr fetch( ) { @@ -344,7 +344,7 @@ properties( ).append( prop_channels_ = 2 ); } - virtual const opl::wstring get_uri( ) const { return L"conform"; } + virtual opl::wstring get_uri( ) const { return L"conform"; } virtual frame_type_ptr fetch( ) { @@ -434,7 +434,7 @@ properties( ).append( prop_rh_ = 1.0 ); } - virtual const opl::wstring get_uri( ) const { return L"crop"; } + virtual opl::wstring get_uri( ) const { return L"crop"; } virtual frame_type_ptr fetch( ) { @@ -582,7 +582,7 @@ properties( ).append( prop_interp_ = opl::wstring( L"bilinear" ) ); } - virtual const opl::wstring get_uri( ) const { return L"composite"; } + virtual opl::wstring get_uri( ) const { return L"composite"; } virtual const size_t slot_count( ) const { return 2; } @@ -950,7 +950,7 @@ properties( ).append( prop_saturation_ = 1.0 ); } - virtual const opl::wstring get_uri( ) const { return L"correction"; } + virtual opl::wstring get_uri( ) const { return L"correction"; } virtual frame_type_ptr fetch( ) { @@ -1110,7 +1110,7 @@ prop_active_.set( 0 ); } - virtual const opl::wstring get_uri( ) const { return L"threader"; } + virtual opl::wstring get_uri( ) const { return L"threader"; } void update_active( ) { @@ -1290,7 +1290,7 @@ return map_source_to_dest( src_frames_ ); } - virtual const opl::wstring get_uri( ) const { return L"frame_rate"; } + virtual opl::wstring get_uri( ) const { return L"frame_rate"; } virtual void seek( const int position, const bool relative = false ) { @@ -1465,7 +1465,7 @@ return frames < 0 ? - frames : frames; } - virtual const opl::wstring get_uri( ) const { return L"clip"; } + virtual opl::wstring get_uri( ) const { return L"clip"; } virtual void seek( const int position, const bool relative = false ) { @@ -1565,7 +1565,7 @@ { } - virtual const opl::wstring get_uri( ) const { return L"deinterlace"; } + virtual opl::wstring get_uri( ) const { return L"deinterlace"; } virtual frame_type_ptr fetch( ) { @@ -1592,7 +1592,7 @@ { } - virtual const opl::wstring get_uri( ) const { return L"lerp"; } + virtual opl::wstring get_uri( ) const { return L"lerp"; } virtual frame_type_ptr fetch( ) { @@ -1651,7 +1651,7 @@ { public: bezier_filter( ) : lerp_filter( ) { } - virtual const opl::wstring get_uri( ) const { return L"bezier"; } + virtual opl::wstring get_uri( ) const { return L"bezier"; } protected: typedef struct @@ -1771,7 +1771,7 @@ properties( ).append( prop_colourspace_ = opl::wstring( L"r8g8b8" ) ); } - virtual const opl::wstring get_uri( ) const { return L"visualise"; } + virtual opl::wstring get_uri( ) const { return L"visualise"; } virtual frame_type_ptr fetch( ) { @@ -1955,7 +1955,7 @@ virtual const size_t slot_count( ) const { return size_t( prop_slots_.value< int >( ) ); } - virtual const opl::wstring get_uri( ) const { return L"playlist"; } + virtual opl::wstring get_uri( ) const { return L"playlist"; } virtual int get_frames( ) const { Modified: trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/plugins/ofx/ofx_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -2147,7 +2147,7 @@ plug_->mainEntry( kOfxActionUnload, 0, 0, 0 ); } - virtual const opl::wstring get_uri( ) const + virtual opl::wstring get_uri( ) const { return pl::to_wstring( plug_->pluginIdentifier ); } virtual frame_type_ptr fetch( ) Modified: trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -256,8 +256,8 @@ } // Basic information - virtual const pl::wstring get_uri( ) const { return resource_; } - virtual const pl::wstring get_mime_type( ) const { return L""; } + virtual pl::wstring get_uri( ) const { return resource_; } + virtual pl::wstring get_mime_type( ) const { return L""; } virtual bool has_video( ) const { return files_.size( ) > 0; } virtual bool has_audio( ) const { return false; } Modified: trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_input.h =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_input.h 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/plugins/quicktime/quicktime_input.h 2007-12-30 16:49:57 UTC (rev 389) @@ -123,8 +123,8 @@ virtual bool is_seekable( ) const { return true; } - virtual const opl::wstring get_uri( ) const { return uri_; } - virtual const opl::wstring get_mime_type( ) const { return mime_type_; } + virtual opl::wstring get_uri( ) const { return uri_; } + virtual opl::wstring get_mime_type( ) const { return mime_type_; } virtual double fps( ) const { Modified: trunk/lib/openlibraries/src/openmedialib/py/ml.cpp =================================================================== --- trunk/lib/openlibraries/src/openmedialib/py/ml.cpp 2007-12-30 15:25:04 UTC (rev 388) +++ trunk/lib/openlibraries/src/openmedialib/py/ml.cpp 2007-12-30 16:49:57 UTC (rev 389) @@ -30,14 +30,14 @@ if ( method ) method( ); } - virtual const openpluginlib::wstring get_uri( ) const + virtual openpluginlib::wstring get_uri( ) const { py::override method = get_override( "get_uri" ); if ( method ) return method( ); return openpluginlib::wstring( L"" ); } - virtual const openpluginlib::wstring get_mime_type( ) const + virtual openpluginlib::wstring get_mime_type( ) const { py::override method = get_override( "get_mime_type" ); if ( method ) return method( ); @@ -139,7 +139,7 @@ if ( method ) method( ); } - virtual const openpluginlib::wstring get_uri( ) const + virtual openpluginlib::wstring get_uri( ) const { py::override method = get_override( "get_uri" ); if ( method ) return method( ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-01-02 23:02:04
|
Revision: 392 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=392&view=rev Author: glslang Date: 2008-01-02 15:02:01 -0800 (Wed, 02 Jan 2008) Log Message: ----------- + adds a fixed point float format to il + more wic Modified Paths: -------------- trunk/lib/extras/src/wic/wic.cpp trunk/lib/openlibraries/openlibraries_vc8.sln trunk/lib/openlibraries/src/openimagelib/il/float_traits.hpp trunk/lib/openlibraries/src/openimagelib/il/utility.cpp Modified: trunk/lib/extras/src/wic/wic.cpp =================================================================== --- trunk/lib/extras/src/wic/wic.cpp 2008-01-01 17:55:53 UTC (rev 391) +++ trunk/lib/extras/src/wic/wic.cpp 2008-01-02 23:02:01 UTC (rev 392) @@ -30,10 +30,12 @@ namespace { - il::image_type_ptr GUID_to_pf( WICPixelFormatGUID guid, UINT width, UINT height, UINT& pitch ) + il::image_type_ptr GUID_to_pf( WICPixelFormatGUID guid, UINT width, UINT height, UINT& pitch, bool& convert ) { il::image_type_ptr im; + convert = false; + if( guid == GUID_WICPixelFormat128bppRGBAFloat ) { im = il::allocate( L"r32g32b32a32f", width, height ); @@ -41,6 +43,8 @@ } else if( guid == GUID_WICPixelFormat128bppRGBFloat ) { + im = il::allocate( L"r32g32b32f", width, height ); + pitch = im->pitch( ) * sizeof( float ); } return im; @@ -75,7 +79,8 @@ source->GetPixelFormat( &pixelformat ); UINT pitch; - im = GUID_to_pf( pixelformat, width, height, pitch ); + bool convert; + im = GUID_to_pf( pixelformat, width, height, pitch, convert ); if( !im ) return im; Modified: trunk/lib/openlibraries/openlibraries_vc8.sln =================================================================== --- trunk/lib/openlibraries/openlibraries_vc8.sln 2008-01-01 17:55:53 UTC (rev 391) +++ trunk/lib/openlibraries/openlibraries_vc8.sln 2008-01-02 23:02:01 UTC (rev 392) @@ -304,26 +304,6 @@ {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} = {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "multipass_draw", "test\openobjectlib\GL\multipass_draw\multipass_draw_vc8.vcproj", "{AB0137D5-38BE-45A5-ACE9-02BB34D02358}" - ProjectSection(ProjectDependencies) = postProject - {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} = {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "noise_volume", "test\openobjectlib\GL\noise_volume\noise_volume_vc8.vcproj", "{3780D440-9C37-4186-B9B2-861EF3833CD4}" - ProjectSection(ProjectDependencies) = postProject - {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} = {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "obj_draw", "test\openobjectlib\GL\obj_draw\obj_draw_vc8.vcproj", "{DD597B0F-DE01-4A1A-A399-F2355ABB06B0}" - ProjectSection(ProjectDependencies) = postProject - {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} = {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "texture_draw", "test\openobjectlib\GL\texture_draw\texture_draw_vc8.vcproj", "{8032E526-0866-4764-A4E9-F18C7CEE12D2}" - ProjectSection(ProjectDependencies) = postProject - {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} = {3D424B92-233E-4BA0-AFD3-0FD1D80F5DD0} - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GL", "GL", "{B972DCEB-386E-42D2-8C5E-DD2942EC7F63}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "plugins", "plugins", "{C85EDDFB-1A91-4ABD-8E86-6AFDF0C85CBA}" @@ -551,22 +531,6 @@ {E6EFFB88-1563-4AB7-9D07-5B8853CD8ECF}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {E6EFFB88-1563-4AB7-9D07-5B8853CD8ECF}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 {E6EFFB88-1563-4AB7-9D07-5B8853CD8ECF}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 - {AB0137D5-38BE-45A5-ACE9-02BB34D02358}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 - {AB0137D5-38BE-45A5-ACE9-02BB34D02358}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 - {AB0137D5-38BE-45A5-ACE9-02BB34D02358}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 - {AB0137D5-38BE-45A5-ACE9-02BB34D02358}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 - {3780D440-9C37-4186-B9B2-861EF3833CD4}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 - {3780D440-9C37-4186-B9B2-861EF3833CD4}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 - {3780D440-9C37-4186-B9B2-861EF3833CD4}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 - {3780D440-9C37-4186-B9B2-861EF3833CD4}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 - {DD597B0F-DE01-4A1A-A399-F2355ABB06B0}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 - {DD597B0F-DE01-4A1A-A399-F2355ABB06B0}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 - {DD597B0F-DE01-4A1A-A399-F2355ABB06B0}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 - {DD597B0F-DE01-4A1A-A399-F2355ABB06B0}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 - {8032E526-0866-4764-A4E9-F18C7CEE12D2}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 - {8032E526-0866-4764-A4E9-F18C7CEE12D2}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 - {8032E526-0866-4764-A4E9-F18C7CEE12D2}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 - {8032E526-0866-4764-A4E9-F18C7CEE12D2}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32 {6D618CAE-230F-4ADD-936B-6C1D3D723236}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32 {6D618CAE-230F-4ADD-936B-6C1D3D723236}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32 {6D618CAE-230F-4ADD-936B-6C1D3D723236}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32 @@ -670,10 +634,6 @@ {4CC2C554-1EB4-4E53-A73F-38F0A1862F49} = {C2EBF114-BFF6-4520-BC11-EB54565B92D6} {F30DAA25-794E-44F6-BF01-867A72BE385B} = {C2EBF114-BFF6-4520-BC11-EB54565B92D6} {DBF9F309-3C1F-4563-AA2B-69FA27C2CBF7} = {C2EBF114-BFF6-4520-BC11-EB54565B92D6} - {3780D440-9C37-4186-B9B2-861EF3833CD4} = {B972DCEB-386E-42D2-8C5E-DD2942EC7F63} - {DD597B0F-DE01-4A1A-A399-F2355ABB06B0} = {B972DCEB-386E-42D2-8C5E-DD2942EC7F63} - {8032E526-0866-4764-A4E9-F18C7CEE12D2} = {B972DCEB-386E-42D2-8C5E-DD2942EC7F63} - {AB0137D5-38BE-45A5-ACE9-02BB34D02358} = {B972DCEB-386E-42D2-8C5E-DD2942EC7F63} {6D618CAE-230F-4ADD-936B-6C1D3D723236} = {C85EDDFB-1A91-4ABD-8E86-6AFDF0C85CBA} EndGlobalSection EndGlobal Modified: trunk/lib/openlibraries/src/openimagelib/il/float_traits.hpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/float_traits.hpp 2008-01-01 17:55:53 UTC (rev 391) +++ trunk/lib/openlibraries/src/openimagelib/il/float_traits.hpp 2008-01-02 23:02:01 UTC (rev 392) @@ -268,6 +268,49 @@ { flop_scan_line_( p, ( float* ) dst, ( const float* ) src, w ); } }; +template<typename T = float, class storage = default_storage<T> > +class r16g16b16fixed : public surface_format<T, storage> +{ +public: + typedef typename storage::const_pointer const_pointer; + typedef typename storage::pointer pointer; + typedef typename surface_format<T, storage>::size_type size_type; + +private: + static const size_type bs = 3; + +public: + explicit r16g16b16fixed( size_type width, + size_type height, + size_type depth, + size_type count = 1, + bool cubemap = false ) + : surface_format<T, storage>( bs, width, height, depth, count, cubemap, L"r16g16b16fixed" ) + { surface_format<T, storage>::allocate( ); } + + r16g16b16fixed( const r16g16b16fixed& other, size_type w, size_type h ) + : surface_format<T, storage>( other.bs, w, h, other.depth( ), other.count( ), other.is_cubemap( ), L"r16g16b16fixed" ) + { surface_format<T, storage>::allocate( ); } + + ~r16g16b16fixed( ) + { } + +public: + virtual size_type allocsize( size_type width, size_type height, size_type depth ) const + { return sizeof( unsigned short ) * detail::rgb_Allocate_size<T>( )( bs, width, height, depth ); } + + virtual size_type bitdepth( ) const + { return 16; } + + virtual bool is_float( ) const { return true; } + + virtual r16g16b16fixed* clone( size_type w, size_type h ) + { return new r16g16b16fixed( *this, w, h ); } + + virtual void flop_scan_line( size_t p, pointer dst, const_pointer src, size_type w ) const + { flop_scan_line_( p, ( short* ) dst, ( const unsigned short* ) src, w ); } +}; + } } } #endif Modified: trunk/lib/openlibraries/src/openimagelib/il/utility.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/utility.cpp 2008-01-01 17:55:53 UTC (rev 391) +++ trunk/lib/openlibraries/src/openimagelib/il/utility.cpp 2008-01-02 23:02:01 UTC (rev 392) @@ -154,6 +154,7 @@ typedef image< unsigned char, r16g16b16a16log > r16g16b16a16log_image_type; typedef image< unsigned char, r32g32b32f > r32g32b32f_image_type; typedef image< unsigned char, r32g32b32a32f > r32g32b32a32f_image_type; +typedef image< unsigned char, r16g16b16fixed > r16g16b16fixed_image_type; typedef image< unsigned char, rgbe > rgbe_image_type; typedef image< unsigned char, yuv444p > yuv444p_image_type; typedef image< unsigned char, yuv444 > yuv444_image_type; @@ -235,6 +236,8 @@ dst_img = image_type_ptr( new image_type( r32g32b32f_image_type( width, height, 1 ) ) ); else if( pf == L"r32g32b32a32f" ) dst_img = image_type_ptr( new image_type( r32g32b32a32f_image_type( width, height, 1 ) ) ); + else if( pf == L"r16g16b16fixed" ) + dst_img = image_type_ptr( new image_type( r16g16b16fixed_image_type( width, height, 1 ) ) ); else if( pf == L"rgbe" ) dst_img = image_type_ptr( new image_type( rgbe_image_type( width, height, 1 ) ) ); else if ( pf == L"yuv444p" ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-01-05 21:00:53
|
Revision: 394 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=394&view=rev Author: glslang Date: 2008-01-05 13:00:49 -0800 (Sat, 05 Jan 2008) Log Message: ----------- + some more lut related code Modified Paths: -------------- trunk/lib/extras/src/lut/lut.cpp trunk/lib/openlibraries/src/openimagelib/il/Makefile.am trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj Added Paths: ----------- trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp Modified: trunk/lib/extras/src/lut/lut.cpp =================================================================== --- trunk/lib/extras/src/lut/lut.cpp 2008-01-03 21:35:22 UTC (rev 393) +++ trunk/lib/extras/src/lut/lut.cpp 2008-01-05 21:00:49 UTC (rev 394) @@ -23,34 +23,90 @@ namespace hdrflow { -class ML_PLUGIN_DECLSPEC gamma_input : public ml::input_type +class ML_PLUGIN_DECLSPEC lut_input : public ml::input_type { public: - explicit gamma_input( ) + explicit lut_input( ) : prop_colourspace_( pcos::key::from_string( "colourspace" ) ) , prop_width_( pcos::key::from_string( "width" ) ) , prop_height_( pcos::key::from_string( "height" ) ) + , prop_fps_num_( pcos::key::from_string( "fps_num" ) ) + , prop_fps_den_( pcos::key::from_string( "fps_den" ) ) + , prop_sar_num_( pcos::key::from_string( "sar_num" ) ) + , prop_sar_den_( pcos::key::from_string( "sar_den" ) ) + , prop_out_( pcos::key::from_string( "out" ) ) { - + properties( ).append( prop_colourspace_ = pl::wstring( L"r32g32b32f" ) ); + properties( ).append( prop_width_ = 512 ); + properties( ).append( prop_height_ = 512 ); + properties( ).append( prop_fps_num_ = 24 ); + properties( ).append( prop_fps_den_ = 1 ); + properties( ).append( prop_sar_num_ = 1 ); + properties( ).append( prop_sar_den_ = 1 ); + properties( ).append( prop_out_ = 24 ); } - virtual ~gamma_input( ) { } + virtual ~lut_input( ) { } - virtual pl::wstring get_uri( ) const { return L"gamma:"; } + virtual pl::wstring get_uri( ) const { return L"lut:"; } virtual pl::wstring get_mime_type( ) const { return L""; } + + virtual int get_frames( ) const { return prop_out_.value<int>( ); } + virtual bool is_seekable( ) const { return true; } + + virtual void get_fps( int& num, int& den ) const + { + num = prop_sar_num_.value<int>( ); + den = prop_sar_den_.value<int>( ); + } + virtual double fps( ) const + { + int num, den; + get_fps( num, den ); + return den != 0 ? double( num ) / double( den ) : 1; + } + + virtual void get_sar( int &num, int &den ) const + { + num = prop_sar_num_.value<int>( ); + den = prop_sar_den_.value<int>( ); + } + + virtual int get_video_streams( ) const { return 1; } + + virtual int get_width( ) const { return prop_width_.value<int>( ); } + virtual int get_height( ) const { return prop_height_.value<int>( ); } + + virtual int get_audio_streams( ) const { return 0; } + + virtual ml::frame_type_ptr fetch( ) + { + return ml::frame_type_ptr( ); + } + private: + void fill( il::image_type_ptr im ) + { + } + +private: pcos::property prop_colourspace_; pcos::property prop_width_; pcos::property prop_height_; + pcos::property prop_fps_num_; + pcos::property prop_fps_den_; + pcos::property prop_sar_num_; + pcos::property prop_sar_den_; + pcos::property prop_out_; }; class ML_PLUGIN_DECLSPEC lut_plugin : public ml::openmedialib_plugin { public: - virtual ml::input_type_ptr input( const pl::wstring& request ) + virtual ml::input_type_ptr input( const pl::wstring& ) { - return ml::input_type_ptr( ); + return ml::input_type_ptr( new lut_input( ) ); } }; Modified: trunk/lib/openlibraries/src/openimagelib/il/Makefile.am =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/Makefile.am 2008-01-03 21:35:22 UTC (rev 393) +++ trunk/lib/openlibraries/src/openimagelib/il/Makefile.am 2008-01-05 21:00:49 UTC (rev 394) @@ -14,6 +14,9 @@ float_traits.hpp \ il.hpp \ il.cpp \ + lut_converter.hpp \ + lut_functions.cpp \ + lut_functions.hpp \ openimagelib_plugin.hpp \ rgb_traits.hpp \ traits.hpp \ Modified: trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj 2008-01-03 21:35:22 UTC (rev 393) +++ trunk/lib/openlibraries/src/openimagelib/il/il_vc8.vcproj 2008-01-05 21:00:49 UTC (rev 394) @@ -231,6 +231,10 @@ > </File> <File + RelativePath=".\lut_functions.hpp" + > + </File> + <File RelativePath=".\openimagelib_plugin.hpp" > </File> @@ -267,6 +271,10 @@ > </File> <File + RelativePath=".\lut_functions.cpp" + > + </File> + <File RelativePath=".\utility.cpp" > </File> Added: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp (rev 0) +++ trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp 2008-01-05 21:00:49 UTC (rev 394) @@ -0,0 +1,25 @@ + +// il - An image library representation. + +// Copyright (C) 2007 Goncalo Nuno M. de Carvalho +// Released under the LGPL. +// For more information, see http://www.hdrflow.com. + +#ifdef WIN32 +#define _USE_MATH_DEFINES +#include <cmath> +#endif + +#include <openimagelib/il/lut_functions.hpp> + +namespace olib { namespace openimagelib { namespace il { + +float to_sRGB( float v ) +{ + if( v < ( 0.04045f / 12.92f ) ) + return v * 12.92f; + else + return 1.055f * powf( v, 1.0f / 2.4f ) - 0.055f; +} + +} } } Property changes on: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp (rev 0) +++ trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp 2008-01-05 21:00:49 UTC (rev 394) @@ -0,0 +1,17 @@ + +// il - An image library representation. + +// Copyright (C) 2007 Goncalo Nuno M. de Carvalho +// Released under the LGPL. +// For more information, see http://www.hdrflow.com. + +#ifndef LUT_FUNCTIONS_INC_ +#define LUT_FUNCTIONS_INC_ + +namespace olib { namespace openimagelib { namespace il { + +float to_sRGB( float v ); + +} } } + +#endif Property changes on: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-01-05 21:44:00
|
Revision: 395 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=395&view=rev Author: glslang Date: 2008-01-05 13:43:59 -0800 (Sat, 05 Jan 2008) Log Message: ----------- + sRGB lut Modified Paths: -------------- trunk/lib/extras/src/lut/lut.cpp trunk/lib/openlibraries/src/openimagelib/il/il.hpp trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp Modified: trunk/lib/extras/src/lut/lut.cpp =================================================================== --- trunk/lib/extras/src/lut/lut.cpp 2008-01-05 21:00:49 UTC (rev 394) +++ trunk/lib/extras/src/lut/lut.cpp 2008-01-05 21:43:59 UTC (rev 395) @@ -9,11 +9,6 @@ #include <openlibraries_global_config.hpp> #endif -#ifdef WIN32 -#define _USE_MATH_DEFINES -#include <cmath> -#endif - #include <openmedialib/ml/openmedialib_plugin.hpp> namespace pl = olib::openpluginlib; @@ -28,8 +23,10 @@ public: explicit lut_input( ) : prop_colourspace_( pcos::key::from_string( "colourspace" ) ) + , prop_function_( pcos::key::from_string( "function" ) ) , prop_width_( pcos::key::from_string( "width" ) ) , prop_height_( pcos::key::from_string( "height" ) ) + , prop_depth_( pcos::key::from_string( "depth" ) ) , prop_fps_num_( pcos::key::from_string( "fps_num" ) ) , prop_fps_den_( pcos::key::from_string( "fps_den" ) ) , prop_sar_num_( pcos::key::from_string( "sar_num" ) ) @@ -37,8 +34,10 @@ , prop_out_( pcos::key::from_string( "out" ) ) { properties( ).append( prop_colourspace_ = pl::wstring( L"r32g32b32f" ) ); + properties( ).append( prop_function_ = pl::wstring( L"sRGB" ) ); properties( ).append( prop_width_ = 512 ); - properties( ).append( prop_height_ = 512 ); + properties( ).append( prop_height_ = 1 ); + properties( ).append( prop_depth_ = 1 ); properties( ).append( prop_fps_num_ = 24 ); properties( ).append( prop_fps_den_ = 1 ); properties( ).append( prop_sar_num_ = 1 ); @@ -82,18 +81,67 @@ virtual ml::frame_type_ptr fetch( ) { - return ml::frame_type_ptr( ); + acquire_values( ); + + il::image_type_ptr image = il::allocate( prop_colourspace_.value<pl::wstring>( ).c_str(), get_width( ), get_height( ) ); + if( image ) + fill( image ); + + ml::frame_type_ptr frame( new ml::frame_type( ) ); + frame->set_sar( prop_sar_num_.value<int>( ), prop_sar_den_.value<int>( ) ); + frame->set_fps( prop_fps_num_.value<int>( ), prop_fps_den_.value<int>( ) ); + frame->set_pts( get_position( ) * 1.0 / fps( ) ); + frame->set_duration( 1.0 / fps( ) ); + frame->set_position( get_position( ) ); + + frame->set_image( image ); + + return frame; } private: void fill( il::image_type_ptr im ) { + pl::wstring pf = prop_colourspace_.value<pl::wstring>( ); + pl::wstring fn = prop_function_.value<pl::wstring>( ); + + int width = im->width( ); + int height = im->height( ); + int depth = im->depth( ); + int pitch = im->pitch( ); + + const float sx = 1.0f / ( width - 1.0f ); + + if( fn == L"sRGB" ) + { + if( pf == L"r32g32b32f" ) + { + float* src = reinterpret_cast<float*>( im->data( ) ); + + for( int i = 0; i < depth; ++i ) + { + for( int j = 0; j < height; ++j ) + { + for( int k = 0; k < width; ++k ) + { + src[ k + 0 ] = il::to_sRGB( k * sx ); + src[ k + 1 ] = il::to_sRGB( k * sx ); + src[ k + 2 ] = il::to_sRGB( k * sx ); + } + + src += pitch; + } + } + } + } } private: pcos::property prop_colourspace_; + pcos::property prop_function_; pcos::property prop_width_; pcos::property prop_height_; + pcos::property prop_depth_; pcos::property prop_fps_num_; pcos::property prop_fps_den_; pcos::property prop_sar_num_; Modified: trunk/lib/openlibraries/src/openimagelib/il/il.hpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/il.hpp 2008-01-05 21:00:49 UTC (rev 394) +++ trunk/lib/openlibraries/src/openimagelib/il/il.hpp 2008-01-05 21:43:59 UTC (rev 395) @@ -14,6 +14,7 @@ #include <openimagelib/il/basic_image.hpp> #include <openimagelib/il/traits.hpp> #include <openimagelib/il/utility.hpp> +#include <openimagelib/il/lut_functions.hpp> namespace olib { namespace openimagelib { Modified: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp 2008-01-05 21:00:49 UTC (rev 394) +++ trunk/lib/openlibraries/src/openimagelib/il/lut_functions.cpp 2008-01-05 21:43:59 UTC (rev 395) @@ -10,7 +10,7 @@ #include <cmath> #endif -#include <openimagelib/il/lut_functions.hpp> +#include <openimagelib/il/il.hpp> namespace olib { namespace openimagelib { namespace il { Modified: trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp =================================================================== --- trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp 2008-01-05 21:00:49 UTC (rev 394) +++ trunk/lib/openlibraries/src/openimagelib/il/lut_functions.hpp 2008-01-05 21:43:59 UTC (rev 395) @@ -10,7 +10,7 @@ namespace olib { namespace openimagelib { namespace il { -float to_sRGB( float v ); +IL_DECLSPEC float to_sRGB( float v ); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-02-24 11:38:51
|
Revision: 425 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=425&view=rev Author: glslang Date: 2008-02-24 03:38:49 -0800 (Sun, 24 Feb 2008) Log Message: ----------- + maya plugin now uses oml + add some more ext to sequence detection Modified Paths: -------------- trunk/lib/extras/src/imf/mfn/mfn.cpp trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.opl Modified: trunk/lib/extras/src/imf/mfn/mfn.cpp =================================================================== --- trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-24 10:53:28 UTC (rev 424) +++ trunk/lib/extras/src/imf/mfn/mfn.cpp 2008-02-24 11:38:49 UTC (rev 425) @@ -58,10 +58,18 @@ MGlobal::displayInfo( "HDRFlow: opening media stream..." ); #endif - input_ = ml::create_input( pl::to_wstring( pathname.asChar( ) ) ); + pl::wstring resource( pl::to_wstring( pathname.asChar( ) ) ); + + input_ = ml::create_input( resource ); if( !input_ ) - return MS::kFailure; + { + resource += L"/sequence:"; + input_ = ml::create_input( resource ); + if( !input_ ) + return MS::kFailure; + } + #ifndef NDEBUG MGlobal::displayInfo( "HDRFlow: plugin found ..." ); #endif @@ -166,7 +174,6 @@ 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( ); Modified: trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.opl =================================================================== --- trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.opl 2008-02-24 10:53:28 UTC (rev 424) +++ trunk/lib/openlibraries/src/openmedialib/plugins/oil/oil_plugin.opl 2008-02-24 11:38:49 UTC (rev 425) @@ -2,7 +2,7 @@ <openlibraries version="1.0"> <!-- plugins go here --> <openmedialib name="oml" version="0.1.0"> - <plugin name="OpenLibraries oil plugin" type="input" extension='".*\.jpg/sequence:.*", ".*\.png/sequence:.*", ".*\.bmp/sequence:.*", ".*\.gif/sequence:.*", ".*\.tga/sequence:.*", ".*\.exr/sequence:.*", ".*\.sgi/sequence:.*", ".*\.rgb/sequence:.*", ".*\.rgba/sequence:.*", ".*\.la/sequence:.*", ".*\.bw/sequence:.*", ".*\.tif/sequence:.*", ".*\.tiff/sequence:.*", ".*\.dpx/sequence:.*", ".*\.hdr/sequence:.*"' merit="0" filename='"libopenmedialib_oil.so", "libopenmedialib_oil.dylib", "openmedialib_oil-vc80-d-0_5_0.dll", "openmedialib_oil-vc80-r-0_5_0.dll"'/> + <plugin name="OpenLibraries oil plugin" type="input" extension='".*\.jpg/sequence:.*", ".*\.png/sequence:.*", ".*\.bmp/sequence:.*", ".*\.gif/sequence:.*", ".*\.tga/sequence:.*", ".*\.exr/sequence:.*", ".*\.sgi/sequence:.*", ".*\.rgb/sequence:.*", ".*\.rgba/sequence:.*", ".*\.la/sequence:.*", ".*\.bw/sequence:.*", ".*\.tif/sequence:.*", ".*\.tiff/sequence:.*", ".*\.dpx/sequence:.*", ".*\.hdr/sequence:.*", ".*\.cr2/sequence:.*", ".*\.raw/sequence:.*"' merit="0" filename='"libopenmedialib_oil.so", "libopenmedialib_oil.dylib", "openmedialib_oil-vc80-d-0_5_0.dll", "openmedialib_oil-vc80-r-0_5_0.dll"'/> <plugin name="OpenLibraries oil plugin" type="output" extension='".*\.jpg/sequence:.*", ".*\.png/sequence:.*", ".*\.bmp/sequence:.*", ".*\.gif/sequence:.*", ".*\.tga/sequence:.*", ".*\.exr/sequence:.*", ".*\.sgi/sequence:.*", ".*\.rgb/sequence:.*", ".*\.rgba/sequence:.*", ".*\.la/sequence:.*", ".*\.bw/sequence:.*", ".*\.tif/sequence:.*", ".*\.tiff/sequence:.*", ".*\.dpx/sequence:.*"' merit="0" filename='"libopenmedialib_oil.so", "libopenmedialib_oil.dylib", "openmedialib_oil-vc80-d-0_5_0.dll", "openmedialib_oil-vc80-r-0_5_0.dll"'/> </openmedialib> </openlibraries> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gl...@us...> - 2008-04-22 20:02:52
|
Revision: 443 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=443&view=rev Author: glslang Date: 2008-04-22 13:02:50 -0700 (Tue, 22 Apr 2008) Log Message: ----------- Leopard portability fixes Modified Paths: -------------- trunk/lib/extras/configure.ac trunk/lib/extras/m4/universal_binary.m4 trunk/lib/openlibraries/configure.ac Modified: trunk/lib/extras/configure.ac =================================================================== --- trunk/lib/extras/configure.ac 2008-04-22 19:34:35 UTC (rev 442) +++ trunk/lib/extras/configure.ac 2008-04-22 20:02:50 UTC (rev 443) @@ -148,6 +148,12 @@ dnl OpenLibraries common flags dnl NOTE: we could use $(var) instead of @var@ if we want late-expansion in the generated makefiles. EXTRAS_CXXFLAGS='-fvisibility=hidden -fvisibility-inlines-hidden' +case $host in + *-apple-darwin*) + EXTRAS_CXXFLAGS="$EXTRAS_CXXFLAGS -mmacosx-version-min=10.4" + ;; +esac + AC_SUBST(EXTRAS_CXXFLAGS) EXTRAS_LDFLAGS='' Modified: trunk/lib/extras/m4/universal_binary.m4 =================================================================== --- trunk/lib/extras/m4/universal_binary.m4 2008-04-22 19:34:35 UTC (rev 442) +++ trunk/lib/extras/m4/universal_binary.m4 2008-04-22 20:02:50 UTC (rev 443) @@ -16,7 +16,7 @@ AC_MSG_ERROR([--enable-universalbinaries requires --disable-dependency-tracking]) fi AC_MSG_RESULT(yes) - CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" + CXXFLAGS="$CXXFLAGS -arch ppc -arch i386" else AC_MSG_RESULT(no) fi Modified: trunk/lib/openlibraries/configure.ac =================================================================== --- trunk/lib/openlibraries/configure.ac 2008-04-22 19:34:35 UTC (rev 442) +++ trunk/lib/openlibraries/configure.ac 2008-04-22 20:02:50 UTC (rev 443) @@ -182,6 +182,13 @@ dnl OpenLibraries common flags dnl NOTE: we could use $(var) instead of @var@ if we want late-expansion in the generated makefiles. OLIB_CXXFLAGS='-fvisibility=hidden -fvisibility-inlines-hidden' + +case $host in + *-apple-darwin*) + OLIB_CXXFLAGS="$OLIB_CXXFLAGS -mmacosx-version-min=10.4" + ;; +esac + AC_SUBST(OLIB_CXXFLAGS) OLIB_LDFLAGS='' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |