Skip to content

Commit

Permalink
removed OpenEXR support
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwoop committed Nov 11, 2016
1 parent 3b64447 commit 483491e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 160 deletions.
44 changes: 0 additions & 44 deletions common/cmake/FindOpenEXR.cmake

This file was deleted.

9 changes: 0 additions & 9 deletions tutorials/common/image/CMakeLists.txt
Expand Up @@ -43,15 +43,6 @@ IF (EMBREE_TUTORIALS_LIBJPEG)
SET(ADDITIONAL_SOURCES ${ADDITIONAL_SOURCES} jpeg.cpp)
ENDIF (EMBREE_TUTORIALS_LIBJPEG)

FIND_PACKAGE(OpenEXR)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_OPENEXR "Enables OpenEXR image codec." ON "OPENEXR_FOUND" OFF)
IF (EMBREE_TUTORIALS_OPENEXR)
ADD_DEFINITIONS(-DEMBREE_TUTORIALS_OPENEXR)
INCLUDE_DIRECTORIES(${OPENEXR_INCLUDE_DIRS})
SET(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${OPENEXR_LIBRARIES})
SET(ADDITIONAL_SOURCES ${ADDITIONAL_SOURCES} exr.cpp)
ENDIF (EMBREE_TUTORIALS_OPENEXR)

FIND_PACKAGE(PNG)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_LIBPNG "Enables PNG image codecs." ON "PNG_FOUND" OFF)
IF (EMBREE_TUTORIALS_LIBPNG)
Expand Down
94 changes: 0 additions & 94 deletions tutorials/common/image/exr.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions tutorials/common/image/image.cpp
Expand Up @@ -26,9 +26,6 @@ namespace embree
Ref<Image> loadImageFromDisk(const FileName& fileName)
{
std::string ext = toLowerCase(fileName.ext());
#ifdef EMBREE_TUTORIALS_OPENEXR
if (ext == "exr" ) return loadExr(fileName);
#endif

#ifdef EMBREE_TUTORIALS_LIBPNG
if (ext == "png" ) return loadPNG(fileName);
Expand Down Expand Up @@ -72,10 +69,6 @@ namespace embree
{
std::string ext = toLowerCase(fileName.ext());

#ifdef EMBREE_TUTORIALS_OPENEXR
if (ext == "exr" ) { storeExr(img, fileName); return; }
#endif

#ifdef EMBREE_TUTORIALS_LIBJPEG
if (ext == "jpg" ) { storeJPEG(img, fileName); return; }
#endif
Expand Down
6 changes: 0 additions & 6 deletions tutorials/common/image/image.h
Expand Up @@ -147,9 +147,6 @@ namespace embree
/*! Generate a JPEG encoded image from a RGB8 buffer in memory. */
void encodeRGB8_to_JPEG(unsigned char *image, size_t width, size_t height, unsigned char **encoded, unsigned long *capacity);

/*! Loads image from EXR file. */
Ref<Image> loadExr(const FileName& fileName);

/*! Loads image from file. Format is auto detected. */
Ref<Image> loadImage(const FileName& filename, bool cache = false);

Expand All @@ -171,9 +168,6 @@ namespace embree
/*! Loads image from TIFF file. */
//Ref<Image> loadTIFF(const FileName& fileName);

/*! Store image to EXR file. */
void storeExr(const Ref<Image>& img, const FileName& fileName);

/*! Store image to file. Format is auto detected. */
void storeImage(const Ref<Image>& image, const FileName& filename);

Expand Down

0 comments on commit 483491e

Please sign in to comment.