Skip to content
Snippets Groups Projects
Commit 6e1ba9c9 authored by Boroondas Gupte's avatar Boroondas Gupte
Browse files

merged STORM-130 (a.k.a. VWR-22769, SNOW-737 Version agnostic libPNG linking)

parents 8e28257c c4a99e9a
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,7 @@ Boroondas Gupte ...@@ -162,6 +162,7 @@ Boroondas Gupte
SNOW-527 SNOW-527
SNOW-610 SNOW-610
SNOW-624 SNOW-624
SNOW-737
VWR-233 VWR-233
WEB-262 WEB-262
Bulli Schumann Bulli Schumann
......
...@@ -9,5 +9,5 @@ if (STANDALONE) ...@@ -9,5 +9,5 @@ if (STANDALONE)
else (STANDALONE) else (STANDALONE)
use_prebuilt_binary(libpng) use_prebuilt_binary(libpng)
set(PNG_LIBRARIES png12) set(PNG_LIBRARIES png12)
set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng12)
endif (STANDALONE) endif (STANDALONE)
...@@ -210,7 +210,7 @@ void LLPngWrapper::normalizeImage() ...@@ -210,7 +210,7 @@ void LLPngWrapper::normalizeImage()
} }
if (mColorType == PNG_COLOR_TYPE_GRAY && mBitDepth < 8) if (mColorType == PNG_COLOR_TYPE_GRAY && mBitDepth < 8)
{ {
png_set_gray_1_2_4_to_8(mReadPngPtr); png_set_expand_gray_1_2_4_to_8(mReadPngPtr);
} }
if (mColorType == PNG_COLOR_TYPE_GRAY if (mColorType == PNG_COLOR_TYPE_GRAY
|| mColorType == PNG_COLOR_TYPE_GRAY_ALPHA) || mColorType == PNG_COLOR_TYPE_GRAY_ALPHA)
...@@ -358,7 +358,7 @@ void LLPngWrapper::releaseResources() ...@@ -358,7 +358,7 @@ void LLPngWrapper::releaseResources()
{ {
if (mReadPngPtr || mReadInfoPtr) if (mReadPngPtr || mReadInfoPtr)
{ {
png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, png_infopp_NULL); png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, NULL);
mReadPngPtr = NULL; mReadPngPtr = NULL;
mReadInfoPtr = NULL; mReadInfoPtr = NULL;
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#ifndef LL_LLPNGWRAPPER_H #ifndef LL_LLPNGWRAPPER_H
#define LL_LLPNGWRAPPER_H #define LL_LLPNGWRAPPER_H
#include "libpng12/png.h" #include "png.h"
#include "llimage.h" #include "llimage.h"
class LLPngWrapper class LLPngWrapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment