Permalink
Browse files

Added OpenEXR 2.1.0 (OSX)

  • Loading branch information...
betajippity committed Mar 4, 2014
1 parent 98b301c commit 711298aea6c300608e8a16ad6d20b11195023cef
Showing with 37,238 additions and 0 deletions.
  1. +1 −0 README.md
  2. BIN bin/osx/openexr/exrenvmap
  3. BIN bin/osx/openexr/exrheader
  4. BIN bin/osx/openexr/exrmakepreview
  5. BIN bin/osx/openexr/exrmaketiled
  6. BIN bin/osx/openexr/exrmultipart
  7. BIN bin/osx/openexr/exrmultiview
  8. BIN bin/osx/openexr/exrstdattr
  9. +60 −0 include/OpenEXR/Iex.h
  10. +264 −0 include/OpenEXR/IexBaseExc.h
  11. +208 −0 include/OpenEXR/IexErrnoExc.h
  12. +51 −0 include/OpenEXR/IexExport.h
  13. +229 −0 include/OpenEXR/IexForward.h
  14. +170 −0 include/OpenEXR/IexMacros.h
  15. +57 −0 include/OpenEXR/IexMathExc.h
  16. +146 −0 include/OpenEXR/IexMathFloatExc.h
  17. +91 −0 include/OpenEXR/IexMathFpu.h
  18. +62 −0 include/OpenEXR/IexMathIeeeExc.h
  19. +112 −0 include/OpenEXR/IexNamespace.h
  20. +97 −0 include/OpenEXR/IexThrowErrnoExc.h
  21. +18 −0 include/OpenEXR/IlmBaseConfig.h
  22. +143 −0 include/OpenEXR/IlmThread.h
  23. +46 −0 include/OpenEXR/IlmThreadExport.h
  24. +52 −0 include/OpenEXR/IlmThreadForward.h
  25. +160 −0 include/OpenEXR/IlmThreadMutex.h
  26. +114 −0 include/OpenEXR/IlmThreadNamespace.h
  27. +160 −0 include/OpenEXR/IlmThreadPool.h
  28. +112 −0 include/OpenEXR/IlmThreadSemaphore.h
  29. +849 −0 include/OpenEXR/ImathBox.h
  30. +1,016 −0 include/OpenEXR/ImathBoxAlgo.h
  31. +736 −0 include/OpenEXR/ImathColor.h
  32. +257 −0 include/OpenEXR/ImathColorAlgo.h
  33. +926 −0 include/OpenEXR/ImathEuler.h
  34. +73 −0 include/OpenEXR/ImathExc.h
  35. +46 −0 include/OpenEXR/ImathExport.h
  36. +72 −0 include/OpenEXR/ImathForward.h
  37. +192 −0 include/OpenEXR/ImathFrame.h
  38. +741 −0 include/OpenEXR/ImathFrustum.h
  39. +417 −0 include/OpenEXR/ImathFrustumTest.h
  40. +269 −0 include/OpenEXR/ImathFun.h
  41. +166 −0 include/OpenEXR/ImathGL.h
  42. +54 −0 include/OpenEXR/ImathGLU.h
  43. +68 −0 include/OpenEXR/ImathHalfLimits.h
  44. +62 −0 include/OpenEXR/ImathInt64.h
  45. +226 −0 include/OpenEXR/ImathInterval.h
  46. +268 −0 include/OpenEXR/ImathLimits.h
  47. +185 −0 include/OpenEXR/ImathLine.h
  48. +288 −0 include/OpenEXR/ImathLineAlgo.h
  49. +208 −0 include/OpenEXR/ImathMath.h
  50. +3,441 −0 include/OpenEXR/ImathMatrix.h
  51. +1,425 −0 include/OpenEXR/ImathMatrixAlgo.h
  52. +115 −0 include/OpenEXR/ImathNamespace.h
  53. +257 −0 include/OpenEXR/ImathPlane.h
  54. +112 −0 include/OpenEXR/ImathPlatform.h
  55. +964 −0 include/OpenEXR/ImathQuat.h
  56. +401 −0 include/OpenEXR/ImathRandom.h
  57. +219 −0 include/OpenEXR/ImathRoots.h
  58. +656 −0 include/OpenEXR/ImathShear.h
  59. +177 −0 include/OpenEXR/ImathSphere.h
  60. +2,227 −0 include/OpenEXR/ImathVec.h
  61. +147 −0 include/OpenEXR/ImathVecAlgo.h
  62. +324 −0 include/OpenEXR/ImfAcesFile.h
  63. +285 −0 include/OpenEXR/ImfArray.h
  64. +407 −0 include/OpenEXR/ImfAttribute.h
  65. +118 −0 include/OpenEXR/ImfB44Compressor.h
  66. +87 −0 include/OpenEXR/ImfBoxAttribute.h
  67. +555 −0 include/OpenEXR/ImfCRgbaFile.h
  68. +436 −0 include/OpenEXR/ImfChannelList.h
  69. +74 −0 include/OpenEXR/ImfChannelListAttribute.h
  70. +131 −0 include/OpenEXR/ImfChromaticities.h
  71. +73 −0 include/OpenEXR/ImfChromaticitiesAttribute.h
  72. +142 −0 include/OpenEXR/ImfCompositeDeepScanLine.h
  73. +75 −0 include/OpenEXR/ImfCompression.h
  74. +64 −0 include/OpenEXR/ImfCompressionAttribute.h
  75. +107 −0 include/OpenEXR/ImfConvert.h
  76. +132 −0 include/OpenEXR/ImfDeepCompositing.h
  77. +339 −0 include/OpenEXR/ImfDeepFrameBuffer.h
  78. +96 −0 include/OpenEXR/ImfDeepImageState.h
  79. +68 −0 include/OpenEXR/ImfDeepImageStateAttribute.h
  80. +276 −0 include/OpenEXR/ImfDeepScanLineInputFile.h
  81. +181 −0 include/OpenEXR/ImfDeepScanLineInputPart.h
  82. +244 −0 include/OpenEXR/ImfDeepScanLineOutputFile.h
  83. +168 −0 include/OpenEXR/ImfDeepScanLineOutputPart.h
  84. +437 −0 include/OpenEXR/ImfDeepTiledInputFile.h
  85. +362 −0 include/OpenEXR/ImfDeepTiledInputPart.h
  86. +475 −0 include/OpenEXR/ImfDeepTiledOutputFile.h
  87. +394 −0 include/OpenEXR/ImfDeepTiledOutputPart.h
  88. +59 −0 include/OpenEXR/ImfDoubleAttribute.h
  89. +336 −0 include/OpenEXR/ImfEnvmap.h
  90. +68 −0 include/OpenEXR/ImfEnvmapAttribute.h
  91. +46 −0 include/OpenEXR/ImfExport.h
  92. +58 −0 include/OpenEXR/ImfFloatAttribute.h
  93. +127 −0 include/OpenEXR/ImfForward.h
  94. +386 −0 include/OpenEXR/ImfFrameBuffer.h
  95. +94 −0 include/OpenEXR/ImfFramesPerSecond.h
  96. +58 −0 include/OpenEXR/ImfGenericInputFile.h
  97. +62 −0 include/OpenEXR/ImfGenericOutputFile.h
  98. +699 −0 include/OpenEXR/ImfHeader.h
  99. +82 −0 include/OpenEXR/ImfHuf.h
  100. +255 −0 include/OpenEXR/ImfIO.h
  101. +240 −0 include/OpenEXR/ImfInputFile.h
  102. +84 −0 include/OpenEXR/ImfInputPart.h
  103. +56 −0 include/OpenEXR/ImfInt64.h
  104. +58 −0 include/OpenEXR/ImfIntAttribute.h
  105. +167 −0 include/OpenEXR/ImfKeyCode.h
  106. +73 −0 include/OpenEXR/ImfKeyCodeAttribute.h
  107. +69 −0 include/OpenEXR/ImfLineOrder.h
  108. +72 −0 include/OpenEXR/ImfLineOrderAttribute.h
  109. +188 −0 include/OpenEXR/ImfLut.h
  110. +83 −0 include/OpenEXR/ImfMatrixAttribute.h
  111. +466 −0 include/OpenEXR/ImfMisc.h
  112. +128 −0 include/OpenEXR/ImfMultiPartInputFile.h
  113. +118 −0 include/OpenEXR/ImfMultiPartOutputFile.h
  114. +186 −0 include/OpenEXR/ImfMultiView.h
  115. +150 −0 include/OpenEXR/ImfName.h
  116. +115 −0 include/OpenEXR/ImfNamespace.h
  117. +110 −0 include/OpenEXR/ImfOpaqueAttribute.h
  118. +263 −0 include/OpenEXR/ImfOutputFile.h
  119. +77 −0 include/OpenEXR/ImfOutputPart.h
  120. +262 −0 include/OpenEXR/ImfPartHelper.h
  121. +61 −0 include/OpenEXR/ImfPartType.h
  122. +67 −0 include/OpenEXR/ImfPixelType.h
  123. +135 −0 include/OpenEXR/ImfPreviewImage.h
  124. +70 −0 include/OpenEXR/ImfPreviewImageAttribute.h
  125. +98 −0 include/OpenEXR/ImfRational.h
  126. +69 −0 include/OpenEXR/ImfRationalAttribute.h
  127. +109 −0 include/OpenEXR/ImfRgba.h
  128. +346 −0 include/OpenEXR/ImfRgbaFile.h
  129. +259 −0 include/OpenEXR/ImfRgbaYca.h
  130. +360 −0 include/OpenEXR/ImfStandardAttributes.h
  131. +71 −0 include/OpenEXR/ImfStringAttribute.h
  132. +74 −0 include/OpenEXR/ImfStringVectorAttribute.h
  133. +64 −0 include/OpenEXR/ImfTestFile.h
  134. +95 −0 include/OpenEXR/ImfThreading.h
  135. +107 −0 include/OpenEXR/ImfTileDescription.h
  136. +72 −0 include/OpenEXR/ImfTileDescriptionAttribute.h
  137. +401 −0 include/OpenEXR/ImfTiledInputFile.h
  138. +100 −0 include/OpenEXR/ImfTiledInputPart.h
  139. +495 −0 include/OpenEXR/ImfTiledOutputFile.h
  140. +105 −0 include/OpenEXR/ImfTiledOutputPart.h
  141. +482 −0 include/OpenEXR/ImfTiledRgbaFile.h
  142. +242 −0 include/OpenEXR/ImfTimeCode.h
  143. +74 −0 include/OpenEXR/ImfTimeCodeAttribute.h
  144. +100 −0 include/OpenEXR/ImfVecAttribute.h
  145. +136 −0 include/OpenEXR/ImfVersion.h
  146. +78 −0 include/OpenEXR/ImfWav.h
  147. +927 −0 include/OpenEXR/ImfXdr.h
  148. +18 −0 include/OpenEXR/OpenEXRConfig.h
  149. +757 −0 include/OpenEXR/half.h
  150. +27 −0 include/OpenEXR/halfExport.h
  151. +179 −0 include/OpenEXR/halfFunction.h
  152. +102 −0 include/OpenEXR/halfLimits.h
  153. BIN lib/osx/libHalf.a
  154. BIN lib/osx/libIex.a
  155. BIN lib/osx/libIexMath.a
  156. BIN lib/osx/libIlmImf.a
  157. BIN lib/osx/libIlmThread.a
  158. BIN lib/osx/libImath.a
View
@@ -15,5 +15,6 @@ Nuparu currently consists of:
* [OpenVDB](http://www.openvdb.org/) 2.1.0 (OSX)
* [Partio](http://www.disneyanimation.com/technology/partio.html) 1.1.0 (OSX)
* [RMSD](http://boscoh.com/code/), with minor modifications for C++ (OSX/Linux/Win)
+* [OpenEXR](http://www.openexr.com) 2.1.0 (OSX)
Note: OpenVDB's dependencies are dynamically linked, so OpenVDB requires [Ilmbase/OpenEXR](http://www.openexr.com/) and [Intel TBB](https://www.threadingbuildingblocks.org/) to be installed.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,60 @@
+///////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
+// Digital Ltd. LLC
+//
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Industrial Light & Magic nor the names of
+// its contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+///////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef INCLUDED_IEX_H
+#define INCLUDED_IEX_H
+
+
+//--------------------------------
+//
+// Exception handling
+//
+//--------------------------------
+
+
+#include "IexMacros.h"
+#include "IexBaseExc.h"
+#include "IexMathExc.h"
+#include "IexThrowErrnoExc.h"
+
+// Note that we do not include file IexErrnoExc.h here. That file
+// defines over 150 classes and significantly slows down compilation.
+// If you throw ErrnoExc exceptions using the throwErrnoExc() function,
+// you don't need IexErrnoExc.h. You have to include IexErrnoExc.h
+// only if you want to catch specific subclasses of ErrnoExc.
+
+
+#endif
@@ -0,0 +1,264 @@
+///////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2002-2012, Industrial Light & Magic, a division of Lucas
+// Digital Ltd. LLC
+//
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Industrial Light & Magic nor the names of
+// its contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+///////////////////////////////////////////////////////////////////////////
+
+
+#ifndef INCLUDED_IEXBASEEXC_H
+#define INCLUDED_IEXBASEEXC_H
+
+#include "IexNamespace.h"
+#include "IexExport.h"
+
+//----------------------------------------------------------
+//
+// A general exception base class, and a few
+// useful exceptions derived from the base class.
+//
+//----------------------------------------------------------
+
+#include <string>
+#include <exception>
+#include <sstream>
+
+IEX_INTERNAL_NAMESPACE_HEADER_ENTER
+
+
+//-------------------------------
+// Our most basic exception class
+//-------------------------------
+
+class BaseExc: public std::string, public std::exception
+{
+ public:
+
+ //----------------------------
+ // Constructors and destructor
+ //----------------------------
+
+ IEX_EXPORT BaseExc (const char *s = 0) throw(); // std::string (s)
+ IEX_EXPORT BaseExc (const std::string &s) throw(); // std::string (s)
+ IEX_EXPORT BaseExc (std::stringstream &s) throw(); // std::string (s.str())
+
+ IEX_EXPORT BaseExc (const BaseExc &be) throw();
+ IEX_EXPORT virtual ~BaseExc () throw ();
+
+ //--------------------------------------------
+ // what() method -- e.what() returns e.c_str()
+ //--------------------------------------------
+
+ IEX_EXPORT virtual const char * what () const throw ();
+
+
+ //--------------------------------------------------
+ // Convenient methods to change the exception's text
+ //--------------------------------------------------
+
+ IEX_EXPORT BaseExc & assign (std::stringstream &s); // assign (s.str())
+ IEX_EXPORT BaseExc & operator = (std::stringstream &s);
+
+ IEX_EXPORT BaseExc & append (std::stringstream &s); // append (s.str())
+ IEX_EXPORT BaseExc & operator += (std::stringstream &s);
+
+
+ //--------------------------------------------------
+ // These methods from the base class get obscured by
+ // the definitions above.
+ //--------------------------------------------------
+
+ IEX_EXPORT BaseExc & assign (const char *s);
+ IEX_EXPORT BaseExc & operator = (const char *s);
+
+ IEX_EXPORT BaseExc & append (const char *s);
+ IEX_EXPORT BaseExc & operator += (const char *s);
+
+
+ //--------------------------------------------------
+ // Stack trace for the point at which the exception
+ // was thrown. The stack trace will be an empty
+ // string unless a working stack-tracing routine
+ // has been installed (see below, setStackTracer()).
+ //--------------------------------------------------
+
+ IEX_EXPORT const std::string & stackTrace () const;
+
+ private:
+
+ std::string _stackTrace;
+};
+
+
+//-----------------------------------------------------
+// A macro to save typing when declararing an exception
+// class derived directly or indirectly from BaseExc:
+//-----------------------------------------------------
+
+#define DEFINE_EXC_EXP(exp, name, base) \
+ class exp name: public base \
+ { \
+ public: \
+ name() throw(): base (0) {} \
+ name (const char* text) throw(): base (text) {} \
+ name (const std::string &text) throw(): base (text) {} \
+ name (std::stringstream &text) throw(): base (text) {} \
+ ~name() throw() { } \
+ };
+
+// For backward compatibility.
+#define DEFINE_EXC(name, base) DEFINE_EXC_EXP(, name, base)
+
+
+//--------------------------------------------------------
+// Some exceptions which should be useful in most programs
+//--------------------------------------------------------
+DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call
+
+DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic,
+ // for example, a function was called
+ // in a context where the call does
+ // not make sense.
+
+DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file
+
+DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed
+
+DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific
+ // exceptions derived from this class
+ // are defined in ExcMath.h
+
+DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding
+ // to errno values (see errno.h); more
+ // specific exceptions derived from this
+ // class are defined in ExcErrno.h
+
+DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a
+ // call to a method that is only partially
+ // or not at all implemented. A reminder
+ // to lazy software people to get back
+ // to work.
+
+DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null.
+
+DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type,
+ // i.e. a dynamnic_cast failed.
+
+
+//----------------------------------------------------------------------
+// Stack-tracing support:
+//
+// setStackTracer(st)
+//
+// installs a stack-tracing routine, st, which will be called from
+// class BaseExc's constructor every time an exception derived from
+// BaseExc is thrown. The stack-tracing routine should return a
+// string that contains a printable representation of the program's
+// current call stack. This string will be stored in the BaseExc
+// object; the string is accesible via the BaseExc::stackTrace()
+// method.
+//
+// setStackTracer(0)
+//
+// removes the current stack tracing routine. When an exception
+// derived from BaseExc is thrown, the stack trace string stored
+// in the BaseExc object will be empty.
+//
+// stackTracer()
+//
+// returns a pointer to the current stack-tracing routine, or 0
+// if there is no current stack stack-tracing routine.
+//
+//----------------------------------------------------------------------
+
+typedef std::string (* StackTracer) ();
+
+IEX_EXPORT void setStackTracer (StackTracer stackTracer);
+IEX_EXPORT StackTracer stackTracer ();
+
+
+//-----------------
+// Inline functions
+//-----------------
+
+inline BaseExc &
+BaseExc::operator = (std::stringstream &s)
+{
+ return assign (s);
+}
+
+
+inline BaseExc &
+BaseExc::operator += (std::stringstream &s)
+{
+ return append (s);
+}
+
+
+inline BaseExc &
+BaseExc::assign (const char *s)
+{
+ std::string::assign(s);
+ return *this;
+}
+
+
+inline BaseExc &
+BaseExc::operator = (const char *s)
+{
+ return assign(s);
+}
+
+
+inline BaseExc &
+BaseExc::append (const char *s)
+{
+ std::string::append(s);
+ return *this;
+}
+
+
+inline BaseExc &
+BaseExc::operator += (const char *s)
+{
+ return append(s);
+}
+
+
+inline const std::string &
+BaseExc::stackTrace () const
+{
+ return _stackTrace;
+}
+
+
+IEX_INTERNAL_NAMESPACE_HEADER_EXIT
+
+#endif // INCLUDED_IEXBASEEXC_H
Oops, something went wrong.

0 comments on commit 711298a

Please sign in to comment.