00001 00002 // File : EXR.h 00004 // 00005 // Copyright 2006 00006 // The University of North Carolina at Chapel Hill 00007 // 00009 // 00010 // Permission to use, copy, modify, distribute and sell this software and its 00011 // documentation for any purpose is hereby granted without fee, provided that 00012 // the above copyright notice appear in all copies and that both that copyright 00013 // notice and this permission notice appear in supporting documentation. 00014 // Binaries may be compiled with this software without any royalties or 00015 // restrictions. 00016 // 00017 // The University of North Carolina at Chapel Hill makes no representations 00018 // about the suitability of this software for any purpose. It is provided 00019 // "as is" without express or implied warranty. 00020 // 00021 00022 #ifndef EXR_H 00023 #define EXR_H 00024 #include <half.h> 00025 #include <ImfRgbaFile.h> 00026 #include <ImfStringAttribute.h> 00027 #include <ImfMatrixAttribute.h> 00028 #include <ImfArray.h> 00029 00033 class EXR 00034 { 00035 public: 00036 EXR(); 00037 virtual ~EXR(); 00038 00045 static void writeEXR(const char* filename, float* image, int width, int height); 00046 }; 00047 00048 #endif
1.4.6