Thread: [Hdrflow-svn] SF.net SVN: hdrflow: [121] lib/extras
Status: Pre-Alpha
Brought to you by:
glslang
|
From: <gl...@us...> - 2007-05-17 20:07:52
|
Revision: 121
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=121&view=rev
Author: glslang
Date: 2007-05-17 13:07:49 -0700 (Thu, 17 May 2007)
Log Message:
-----------
+more *nix updates
Modified Paths:
--------------
lib/extras/configure.ac
lib/extras/src/panoramic/panoramic.cpp
lib/extras/src/raw/dcraw.c
Added Paths:
-----------
lib/extras/src/raw/Makefile.am
Modified: lib/extras/configure.ac
===================================================================
--- lib/extras/configure.ac 2007-05-16 22:43:19 UTC (rev 120)
+++ lib/extras/configure.ac 2007-05-17 20:07:49 UTC (rev 121)
@@ -158,7 +158,7 @@
dnl include, lib and plugin path
EXTRAS_LIBPATH="$libdir/hdrflow_extras-$EX_MAJOR.$EX_MINOR.$EX_SUB"
-EXTRAS_DATAPATH="$datadir/hdrflow-extras-$EX_MAJOR.$EX_MINOR.$EX_SUB"
+EXTRAS_DATAPATH="$datadir/hdrflow_extras-$EX_MAJOR.$EX_MINOR.$EX_SUB"
EXTRAS_PLUGINPATH="${EXTRAS_LIBPATH}/plugins"
AC_SUBST(EXTRAS_LIBPATH)
AC_SUBST(EXTRAS_PLUGINPATH)
Modified: lib/extras/src/panoramic/panoramic.cpp
===================================================================
--- lib/extras/src/panoramic/panoramic.cpp 2007-05-16 22:43:19 UTC (rev 120)
+++ lib/extras/src/panoramic/panoramic.cpp 2007-05-17 20:07:49 UTC (rev 121)
@@ -19,6 +19,7 @@
namespace il = olib::openimagelib::il;
namespace ml = olib::openmedialib::ml;
namespace fs = boost::filesystem;
+namespace pcos = olib::openpluginlib::pcos;
namespace extras { namespace hdrflow { namespace pan {
@@ -61,12 +62,37 @@
class panoramic_filter : public ml::filter_type
{
public:
+ explicit panoramic_filter( )
+ : source_param_( pcos::key::from_string( "source_projection" ) )
+ , dest_param_( pcos::key::from_string( "destination_projection" ) )
+ {
+ properties( ).append( source_param_ = pl::string( "angular_map" ) );
+ properties( ).append( dest_param_ = pl::string( "angular_map" ) );
+ }
+
+ public:
const pl::wstring get_uri( ) const { return L"panoramic:"; }
ml::frame_type_ptr fetch( )
{
- return ml::frame_type_ptr( );
+ acquire_values( );
+
+ pl::string source_map = source_param_.value<pl::string>( );
+ pl::string dest_map = dest_param_.value<pl::string>( );
+ ml::frame_type_ptr result = fetch_from_slot( );
+
+ if( source_map == dest_map )
+ return result;
+
+ if( result && result->get_image( ) )
+ result->set_image( convert( result->get_image( ), source_map, dest_map ) );
+
+ return result;
}
+
+ private:
+ pcos::property source_param_;
+ pcos::property dest_param_;
};
}
Added: lib/extras/src/raw/Makefile.am
===================================================================
--- lib/extras/src/raw/Makefile.am (rev 0)
+++ lib/extras/src/raw/Makefile.am 2007-05-17 20:07:49 UTC (rev 121)
@@ -0,0 +1,22 @@
+
+#
+#
+#
+
+libdir = $(EXTRAS_PLUGINPATH)
+
+lib_LTLIBRARIES = libhdrflow_extras_raw.la
+
+bin_PROGRAMS = dcraw
+
+libhdrflow_extras_raw_la_SOURCES = \
+ raw.cpp
+
+libhdrflow_extras_raw_la_CXXFLAGS = \
+ $(BOOST_INCLUDE_PATH) \
+ -I$(top_builddir)/../openlibraries/src \
+ $(OFX_INCLUDE_PATH)
+
+dcraw_CFLAGS = \
+ -DNO_JPEG \
+ -DNO_LCMS
Property changes on: lib/extras/src/raw/Makefile.am
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: lib/extras/src/raw/dcraw.c
===================================================================
--- lib/extras/src/raw/dcraw.c 2007-05-16 22:43:19 UTC (rev 120)
+++ lib/extras/src/raw/dcraw.c 2007-05-17 20:07:49 UTC (rev 121)
@@ -334,7 +334,7 @@
{
if (fread (pixel, 2, count, ifp) < count) derror();
if ((order == 0x4949) == (ntohs(0x1234) == 0x1234))
- _swab (pixel, pixel, count*2);
+ swab (pixel, pixel, count*2);
}
void CLASS canon_600_fixed_wb (int temp)
@@ -2060,7 +2060,7 @@
size_t nbytes;
nbytes = fread (jpeg_buffer, 1, 4096, ifp);
- _swab (jpeg_buffer, jpeg_buffer, nbytes);
+ swab (jpeg_buffer, jpeg_buffer, nbytes);
cinfo->src->next_input_byte = jpeg_buffer;
cinfo->src->bytes_in_buffer = nbytes;
return TRUE;
@@ -7389,7 +7389,7 @@
FORCC ppm [col*colors+c] = lut[image[soff][c]];
else FORCC ppm2[col*colors+c] = image[soff][c];
if (output_bps == 16 && !output_tiff && htons(0x55aa) != 0x55aa)
- _swab (ppm2, ppm2, width*colors*2);
+ swab (ppm2, ppm2, width*colors*2);
fwrite (ppm, colors*output_bps/8, width, ofp);
}
free (ppm);
@@ -7528,8 +7528,8 @@
oprof = 0;
meta_data = ofname = 0;
if (setjmp (failure)) {
- if (_fileno(ifp) > 2) fclose(ifp);
- if (_fileno(ofp) > 2) fclose(ofp);
+ if (fileno(ifp) > 2) fclose(ifp);
+ if (fileno(ofp) > 2) fclose(ofp);
status = 1;
goto cleanup;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gl...@us...> - 2007-05-17 20:18:15
|
Revision: 122
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=122&view=rev
Author: glslang
Date: 2007-05-17 13:17:44 -0700 (Thu, 17 May 2007)
Log Message:
-----------
+ensure consistent use of files properties to eol-native
Modified Paths:
--------------
lib/extras/extras_vc8.sln
lib/extras/src/panoramic/panoramic.cpp
lib/extras/src/panoramic/panoramic_vc8.vcproj
lib/extras/src/raw/dcraw_vc8.vcproj
lib/extras/src/raw/raw.cpp
lib/extras/src/raw/raw_vc8.vcproj
Property Changed:
----------------
lib/extras/AUTHORS
lib/extras/COPYING
lib/extras/ChangeLog
lib/extras/INSTALL
lib/extras/NEWS
lib/extras/README
lib/extras/extras_vc8.sln
lib/extras/m4/aclocal.m4
lib/extras/m4/boost.m4
lib/extras/m4/cg.m4
lib/extras/m4/fast_math.m4
lib/extras/m4/glew.m4
lib/extras/m4/ofx.m4
lib/extras/m4/opengl.m4
lib/extras/m4/quicktime.m4
lib/extras/m4/universal_binary.m4
lib/extras/src/panoramic/panoramic.cpp
lib/extras/src/panoramic/panoramic_vc8.vcproj
lib/extras/src/raw/dcraw.c
lib/extras/src/raw/dcraw_vc8.vcproj
lib/extras/src/raw/raw.cpp
lib/extras/src/raw/raw_vc8.vcproj
Property changes on: lib/extras/AUTHORS
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/COPYING
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/ChangeLog
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/INSTALL
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/NEWS
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/README
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: lib/extras/extras_vc8.sln
===================================================================
--- lib/extras/extras_vc8.sln 2007-05-17 20:07:49 UTC (rev 121)
+++ lib/extras/extras_vc8.sln 2007-05-17 20:17:44 UTC (rev 122)
@@ -1,63 +1,63 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2644DB77-2096-4A50-A23F-C57D3C011FE2}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{5B7F6282-FA8B-4711-B403-2B3181DB5677}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RAW", "RAW", "{675FBBBA-6681-49E3-AAC6-FE371310DA63}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NOISE", "NOISE", "{E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "raw", "src\raw\raw_vc8.vcproj", "{B4CCC2D9-D505-4B08-B908-B2A38105ABC8}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dcraw", "src\raw\dcraw_vc8.vcproj", "{008BA3EE-35D6-432D-96B6-F65707CCCFBF}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PANORAMIC", "PANORAMIC", "{D133B05E-F174-4CDA-8FF4-C45C139CFACD}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "panoramic", "src\panoramic\panoramic_vc8.vcproj", "{C8F73831-1355-45C9-BD1B-C7AAB4CDE373}"
-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
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.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
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {675FBBBA-6681-49E3-AAC6-FE371310DA63} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
- {E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
- {D133B05E-F174-4CDA-8FF4-C45C139CFACD} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
- {B4CCC2D9-D505-4B08-B908-B2A38105ABC8} = {675FBBBA-6681-49E3-AAC6-FE371310DA63}
- {008BA3EE-35D6-432D-96B6-F65707CCCFBF} = {675FBBBA-6681-49E3-AAC6-FE371310DA63}
- {C8F73831-1355-45C9-BD1B-C7AAB4CDE373} = {D133B05E-F174-4CDA-8FF4-C45C139CFACD}
- EndGlobalSection
-EndGlobal
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2644DB77-2096-4A50-A23F-C57D3C011FE2}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{5B7F6282-FA8B-4711-B403-2B3181DB5677}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RAW", "RAW", "{675FBBBA-6681-49E3-AAC6-FE371310DA63}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NOISE", "NOISE", "{E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "raw", "src\raw\raw_vc8.vcproj", "{B4CCC2D9-D505-4B08-B908-B2A38105ABC8}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dcraw", "src\raw\dcraw_vc8.vcproj", "{008BA3EE-35D6-432D-96B6-F65707CCCFBF}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PANORAMIC", "PANORAMIC", "{D133B05E-F174-4CDA-8FF4-C45C139CFACD}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "panoramic", "src\panoramic\panoramic_vc8.vcproj", "{C8F73831-1355-45C9-BD1B-C7AAB4CDE373}"
+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
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Debug|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Debug|Win32.Build.0 = Multi-threaded Release DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Debug DLL|Win32.ActiveCfg = Multi-threaded Debug DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Debug DLL|Win32.Build.0 = Multi-threaded Debug DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Release DLL|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Multi-threaded Release DLL|Win32.Build.0 = Multi-threaded Release DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.Release|Win32.ActiveCfg = Multi-threaded Release DLL|Win32
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF}.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
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {675FBBBA-6681-49E3-AAC6-FE371310DA63} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
+ {E0C3CF4A-5F43-4BBC-B7A9-6D4CDB225CD9} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
+ {D133B05E-F174-4CDA-8FF4-C45C139CFACD} = {2644DB77-2096-4A50-A23F-C57D3C011FE2}
+ {B4CCC2D9-D505-4B08-B908-B2A38105ABC8} = {675FBBBA-6681-49E3-AAC6-FE371310DA63}
+ {008BA3EE-35D6-432D-96B6-F65707CCCFBF} = {675FBBBA-6681-49E3-AAC6-FE371310DA63}
+ {C8F73831-1355-45C9-BD1B-C7AAB4CDE373} = {D133B05E-F174-4CDA-8FF4-C45C139CFACD}
+ EndGlobalSection
+EndGlobal
Property changes on: lib/extras/extras_vc8.sln
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/aclocal.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/boost.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/cg.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/fast_math.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/glew.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/ofx.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/opengl.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/quicktime.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: lib/extras/m4/universal_binary.m4
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: lib/extras/src/panoramic/panoramic.cpp
===================================================================
--- lib/extras/src/panoramic/panoramic.cpp 2007-05-17 20:07:49 UTC (rev 121)
+++ lib/extras/src/panoramic/panoramic.cpp 2007-05-17 20:17:44 UTC (rev 122)
@@ -1,150 +1,150 @@
-
-// panoramic - Panoramic transformations plugin.
-
-// Copyright (C) 2007 Goncalo N. M. de Carvalho
-// Released under the LGPL.
-// For more information, see http://www.cryogenicgraphics.com/hdrflow.
-
-#ifdef WIN32
-#define WIN32_LEAN_AND_MEAN
-#define STRICT
-#include <windows.h>
-#endif
-
-#include <ofxImageEffect.h>
-
-#include <openmedialib/ml/openmedialib_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;
-
-namespace extras { namespace hdrflow { namespace pan {
-
-namespace
-{
- OfxHost* host;
- OfxImageEffectSuiteV1* effect_suite;
- OfxPropertySuiteV1* property_suite;
- OfxParameterSuiteV1* parameter_suite;
- OfxMemorySuiteV1* memory_suite;
- OfxMultiThreadSuiteV1* multithread_suite;
- OfxMessageSuiteV1* message_suite;
-
- il::image_type_ptr convert( il::image_type_ptr src, const pl::string& src_proj, const pl::string& dst_proj )
- {
- return il::image_type_ptr( );
- }
-
- void set_host_func( OfxHost* host_struct )
- {
- host = host_struct;
- }
-
- OfxStatus plugin_main( const char* action, const void* handle, OfxPropertySetHandle in_args, OfxPropertySetHandle out_args )
- {
- return kOfxStatOK;
- }
-
- OfxPlugin panoramic_ofx_plugin =
- {
- kOfxImageEffectPluginApi,
- 1,
- "com.cryogenicgraphics:Panoramic",
- 1,
- 0,
- set_host_func,
- plugin_main
- };
-
- class panoramic_filter : public ml::filter_type
- {
- public:
- explicit panoramic_filter( )
- : source_param_( pcos::key::from_string( "source_projection" ) )
- , dest_param_( pcos::key::from_string( "destination_projection" ) )
- {
- properties( ).append( source_param_ = pl::string( "angular_map" ) );
- properties( ).append( dest_param_ = pl::string( "angular_map" ) );
- }
-
- public:
- const pl::wstring get_uri( ) const { return L"panoramic:"; }
-
- ml::frame_type_ptr fetch( )
- {
- acquire_values( );
-
- pl::string source_map = source_param_.value<pl::string>( );
- pl::string dest_map = dest_param_.value<pl::string>( );
- ml::frame_type_ptr result = fetch_from_slot( );
-
- if( source_map == dest_map )
- return result;
-
- if( result && result->get_image( ) )
- result->set_image( convert( result->get_image( ), source_map, dest_map ) );
-
- return result;
- }
-
- private:
- pcos::property source_param_;
- pcos::property dest_param_;
- };
-}
-
-struct panoramic_plugin : public ml::openmedialib_plugin
-{
- virtual ml::filter_type_ptr filter( const pl::wstring& ) { return ml::filter_type_ptr( new panoramic_filter ); }
-};
-
-} } }
-
-extern "C"
-{
- bool openplugin_init( void )
- {
- return true;
- }
-
- bool openplugin_uninit( void )
- {
- return true;
- }
-
- bool openplugin_create_plugin( const char*, pl::openplugin** plug )
- {
- *plug = new extras::hdrflow::pan::panoramic_plugin;
- return true;
- }
-
- void openplugin_destroy_plugin( pl::openplugin* plug )
- {
- delete static_cast<extras::hdrflow::pan::panoramic_plugin*>( plug );
- }
-
- OfxPlugin* OfxGetPlugin( int nth )
- {
- if( nth == 0 )
- return &extras::hdrflow::pan::panoramic_ofx_plugin;
-
- return 0;
- }
-
- int OfxGetNumberOfPlugins( )
- {
- return 1;
- }
-
-#ifdef WIN32
- BOOL WINAPI DllMain( HINSTANCE hInstDLL, DWORD fdwReason, LPVOID )
- {
- if( fdwReason == DLL_PROCESS_ATTACH )
- DisableThreadLibraryCalls( hInstDLL );
- return TRUE;
- }
-#endif
-}
+
+// panoramic - Panoramic transformations plugin.
+
+// Copyright (C) 2007 Goncalo N. M. de Carvalho
+// Released under the LGPL.
+// For more information, see http://www.cryogenicgraphics.com/hdrflow.
+
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#define STRICT
+#include <windows.h>
+#endif
+
+#include <ofxImageEffect.h>
+
+#include <openmedialib/ml/openmedialib_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;
+
+namespace extras { namespace hdrflow { namespace pan {
+
+namespace
+{
+ OfxHost* host;
+ OfxImageEffectSuiteV1* effect_suite;
+ OfxPropertySuiteV1* property_suite;
+ OfxParameterSuiteV1* parameter_suite;
+ OfxMemorySuiteV1* memory_suite;
+ OfxMultiThreadSuiteV1* multithread_suite;
+ OfxMessageSuiteV1* message_suite;
+
+ il::image_type_ptr convert( il::image_type_ptr src, const pl::string& src_proj, const pl::string& dst_proj )
+ {
+ return il::image_type_ptr( );
+ }
+
+ void set_host_func( OfxHost* host_struct )
+ {
+ host = host_struct;
+ }
+
+ OfxStatus plugin_main( const char* action, const void* handle, OfxPropertySetHandle in_args, OfxPropertySetHandle out_args )
+ {
+ return kOfxStatOK;
+ }
+
+ OfxPlugin panoramic_ofx_plugin =
+ {
+ kOfxImageEffectPluginApi,
+ 1,
+ "com.cryogenicgraphics:Panoramic",
+ 1,
+ 0,
+ set_host_func,
+ plugin_main
+ };
+
+ class panoramic_filter : public ml::filter_type
+ {
+ public:
+ explicit panoramic_filter( )
+ : source_param_( pcos::key::from_string( "source_projection" ) )
+ , dest_param_( pcos::key::from_string( "destination_projection" ) )
+ {
+ properties( ).append( source_param_ = pl::string( "angular_map" ) );
+ properties( ).append( dest_param_ = pl::string( "angular_map" ) );
+ }
+
+ public:
+ const pl::wstring get_uri( ) const { return L"panoramic:"; }
+
+ ml::frame_type_ptr fetch( )
+ {
+ acquire_values( );
+
+ pl::string source_map = source_param_.value<pl::string>( );
+ pl::string dest_map = dest_param_.value<pl::string>( );
+ ml::frame_type_ptr result = fetch_from_slot( );
+
+ if( source_map == dest_map )
+ return result;
+
+ if( result && result->get_image( ) )
+ result->set_image( convert( result->get_image( ), source_map, dest_map ) );
+
+ return result;
+ }
+
+ private:
+ pcos::property source_param_;
+ pcos::property dest_param_;
+ };
+}
+
+struct panoramic_plugin : public ml::openmedialib_plugin
+{
+ virtual ml::filter_type_ptr filter( const pl::wstring& ) { return ml::filter_type_ptr( new panoramic_filter ); }
+};
+
+} } }
+
+extern "C"
+{
+ bool openplugin_init( void )
+ {
+ return true;
+ }
+
+ bool openplugin_uninit( void )
+ {
+ return true;
+ }
+
+ bool openplugin_create_plugin( const char*, pl::openplugin** plug )
+ {
+ *plug = new extras::hdrflow::pan::panoramic_plugin;
+ return true;
+ }
+
+ void openplugin_destroy_plugin( pl::openplugin* plug )
+ {
+ delete static_cast<extras::hdrflow::pan::panoramic_plugin*>( plug );
+ }
+
+ OfxPlugin* OfxGetPlugin( int nth )
+ {
+ if( nth == 0 )
+ return &extras::hdrflow::pan::panoramic_ofx_plugin;
+
+ return 0;
+ }
+
+ int OfxGetNumberOfPlugins( )
+ {
+ return 1;
+ }
+
+#ifdef WIN32
+ BOOL WINAPI DllMain( HINSTANCE hInstDLL, DWORD fdwReason, LPVOID )
+ {
+ if( fdwReason == DLL_PROCESS_ATTACH )
+ DisableThreadLibraryCalls( hInstDLL );
+ return TRUE;
+ }
+#endif
+}
Property changes on: lib/extras/src/panoramic/panoramic.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: lib/extras/src/panoramic/panoramic_vc8.vcproj
===================================================================
--- lib/extras/src/panoramic/panoramic_vc8.vcproj 2007-05-17 20:07:49 UTC (rev 121)
+++ lib/extras/src/panoramic/panoramic_vc8.vcproj 2007-05-17 20:17:44 UTC (rev 122)
@@ -1,211 +1,211 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="panoramic"
- ProjectGUID="{C8F73831-1355-45C9-BD1B-C7AAB4CDE373}"
- RootNamespace="panoramic"
- 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_33_1";C:\OFX"
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PANORAMIC_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_panoramic-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_33_1";C:\OFX"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PANORAMIC_EXPORTS;HAVE_FLEX_STRING"
- ExceptionHandling="2"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- FloatingPointModel="2"
- 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_panoramic-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=".\panoramic.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>
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="panoramic"
+ ProjectGUID="{C8F73831-1355-45C9-BD1B-C7AAB4CDE373}"
+ RootNamespace="panoramic"
+ 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_33_1";C:\OFX"
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PANORAMIC_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_panoramic-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_33_1";C:\OFX"
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PANORAMIC_EXPORTS;HAVE_FLEX_STRING"
+ ExceptionHandling="2"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ FloatingPointModel="2"
+ 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_panoramic-vc80-r-0_1_0.dll"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="C:\Boost\lib;"$(SolutionDir)\..\openlibraries\src\openpluginlib\pl\$(ConfigurationName)";"$(SolutionDir)\..\openlibraries\src\openimagelib\il\$(ConfigurationName)";"...
[truncated message content] |