00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "lux.h"
00023 #include "imagereader.h"
00024 #include "error.h"
00025 #define cimg_display_type 0
00026
00027 #ifdef LUX_USE_CONFIG_H
00028 #include "config.h"
00029
00030 #ifdef PNG_FOUND
00031 #define cimg_use_png 1
00032 #endif
00033
00034 #ifdef JPEG_FOUND
00035 #define cimg_use_jpeg 1
00036 #endif
00037
00038 #ifdef TIFF_FOUND
00039 #define cimg_use_tiff 1
00040 #endif
00041
00042
00043 #else //LUX_USE_CONFIG_H
00044 #define cimg_use_png 1
00045 #define cimg_use_tiff 1
00046 #define cimg_use_jpeg 1
00047 #endif //LUX_USE_CONFIG_H
00048
00049
00050 #define cimg_debug 0 // Disable modal window in CImg exceptions.
00051 #include "cimg.h"
00052 using namespace cimg_library;
00053
00054 #if defined(WIN32) && !defined(__CYGWIN__)
00055 #define hypotf hypot // For the OpenEXR headers
00056 #endif
00057
00058 #include <ImfInputFile.h>
00059 #include <ImfOutputFile.h>
00060 #include <ImfChannelList.h>
00061 #include <ImfFrameBuffer.h>
00062 #include <half.h>
00063 using namespace Imf;
00064 using namespace Imath;
00065 using namespace lux;