Text archives Help
- From: boulos@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1809 - trunk/Image
- Date: Sat, 3 Nov 2007 12:58:37 -0600 (MDT)
Author: boulos
Date: Sat Nov 3 12:58:36 2007
New Revision: 1809
Modified:
trunk/Image/EXRFile-stub.cc
Log:
Image/EXRFile-stub.cc
Compile fix for EXRFile-stub (Input and Output error are in the Manta
namespace)
Modified: trunk/Image/EXRFile-stub.cc
==============================================================================
--- trunk/Image/EXRFile-stub.cc (original)
+++ trunk/Image/EXRFile-stub.cc Sat Nov 3 12:58:36 2007
@@ -37,39 +37,39 @@
#include <Core/Exceptions/InputError.h>
#include <Core/Exceptions/OutputError.h>
-#include <fstream>
+#include <fstream>
-extern"C"
+extern"C"
bool isEXRImage( std::string const &filename )
-{
- std::ifstream file(filename.c_str(), std::ios_base::binary);
-
+{
+ std::ifstream file(filename.c_str(), std::ios_base::binary);
+
char b[4];
- file.read (b, sizeof (b));
+ file.read (b, sizeof (b));
return !!file && b[0] == 0x76 && b[1] == 0x2f && b[2] == 0x31 && b[3] ==
0x01;
}
-extern "C" void writeEXR( Manta::Image const *image,
- std::string const &file_name, int which )
+extern "C" void writeEXR( Manta::Image const *image,
+ std::string const &file_name, int which )
{
- throw SCIRun OutputError( "EXR writing not supported by this build.
Perhaps \
+ throw Manta::OutputError( "EXR writing not supported by this build.
Perhaps \
you need to add the path to the Teem libraries.");
}
-extern "C" Manta::Image *readEXR( const std::string &file_name )
+extern "C" Manta::Image *readEXR( const std::string &file_name )
{
- throw SCIRun::InputError( "EXR reading not supported by this build.
Perhaps \
+ throw Manta::InputError( "EXR reading not supported by this build.
Perhaps \
you need to add the path to the Teem libraries.");
return NULL;
}
-extern "C" bool EXRSupported()
+extern "C" bool EXRSupported()
{
return false;
}
- [Manta] r1809 - trunk/Image, boulos, 11/03/2007
Archive powered by MHonArc 2.6.16.