summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-04-13 02:38:18 +0200
committerRobin Watts <robin.watts@artifex.com>2016-04-22 17:26:48 +0100
commitf88bfe2e62dbadb96d4f52d7aa025f0a516078da (patch)
treef14f1209973ebbf40066124596892b1eeee1f1f8
parentb26c446dfa9d6059b5bd52025c7a70e8b5d3411b (diff)
thirdparty: Update to openjpeg 2.1.0.
-rw-r--r--Makethird5
-rw-r--r--platform/android/viewer/jni/Core.mk3
-rw-r--r--platform/android/viewer/jni/ThirdParty.mk55
-rw-r--r--platform/win32/libmupdf.vcproj20
-rw-r--r--platform/win32/libthirdparty.vcproj142
-rw-r--r--scripts/openjpeg/opj_config.h21
-rw-r--r--scripts/openjpeg/opj_config_private.h48
-rw-r--r--source/fitz/load-jpx.c2
m---------thirdparty/openjpeg0
9 files changed, 105 insertions, 191 deletions
diff --git a/Makethird b/Makethird
index 464133fd3..3a40fcb6b 100644
--- a/Makethird
+++ b/Makethird
@@ -11,7 +11,7 @@ HARFBUZZ_DIR := thirdparty/harfbuzz
JBIG2DEC_DIR := thirdparty/jbig2dec
JPEG_DIR := thirdparty/jpeg
MUJS_DIR := thirdparty/mujs
-OPENJPEG_DIR := thirdparty/openjpeg/libopenjpeg
+OPENJPEG_DIR := thirdparty/openjpeg/src/lib/openjp2
ZLIB_DIR := thirdparty/zlib
CURL_DIR := thirdparty/curl
@@ -273,7 +273,6 @@ OPENJPEG_SRC := \
mct.c \
mqc.c \
openjpeg.c \
- opj_clock.c \
phix_manager.c \
pi.c \
ppix_manager.c \
@@ -292,7 +291,7 @@ $(OPENJPEG_OUT):
$(OPENJPEG_OUT)/%.o: $(OPENJPEG_DIR)/%.c | $(OPENJPEG_OUT)
$(CC_CMD) -DOPJ_STATIC -DOPJ_HAVE_STDINT_H
-OPENJPEG_CFLAGS += -Iscripts/openjpeg -I$(OPENJPEG_DIR)
+OPENJPEG_CFLAGS += -I$(OPENJPEG_DIR) -DOPJ_HAVE_INTTYPES_H=1 -DUSE_JPIP=1
else
OPENJPEG_CFLAGS := $(SYS_OPENJPEG_CFLAGS)
OPENJPEG_LIBS := $(SYS_OPENJPEG_LIBS)
diff --git a/platform/android/viewer/jni/Core.mk b/platform/android/viewer/jni/Core.mk
index 76241841e..131e65352 100644
--- a/platform/android/viewer/jni/Core.mk
+++ b/platform/android/viewer/jni/Core.mk
@@ -33,7 +33,7 @@ endif
LOCAL_C_INCLUDES := \
$(MY_ROOT)/thirdparty/harfbuzz/src \
$(MY_ROOT)/thirdparty/jbig2dec \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2 \
$(MY_ROOT)/thirdparty/jpeg \
$(MY_ROOT)/thirdparty/mujs \
$(MY_ROOT)/thirdparty/zlib \
@@ -46,7 +46,6 @@ LOCAL_C_INCLUDES := \
$(MY_ROOT)/source/tiff \
$(MY_ROOT)/scripts/freetype \
$(MY_ROOT)/scripts/jpeg \
- $(MY_ROOT)/scripts/openjpeg \
$(MY_ROOT)/generated \
$(MY_ROOT)/resources \
$(MY_ROOT)/include \
diff --git a/platform/android/viewer/jni/ThirdParty.mk b/platform/android/viewer/jni/ThirdParty.mk
index f8965ed9f..8ea3fe8d7 100644
--- a/platform/android/viewer/jni/ThirdParty.mk
+++ b/platform/android/viewer/jni/ThirdParty.mk
@@ -8,18 +8,17 @@ LOCAL_C_INCLUDES := \
$(MY_ROOT)/include/ \
$(MY_ROOT)/thirdparty/harfbuzz/src \
$(MY_ROOT)/thirdparty/jbig2dec \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2 \
$(MY_ROOT)/thirdparty/jpeg \
$(MY_ROOT)/thirdparty/mujs \
$(MY_ROOT)/thirdparty/zlib \
$(MY_ROOT)/thirdparty/freetype/include \
$(MY_ROOT)/scripts/freetype \
- $(MY_ROOT)/scripts/jpeg \
- $(MY_ROOT)/scripts/openjpeg
+ $(MY_ROOT)/scripts/jpeg
LOCAL_CFLAGS := \
-DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON -DHAVE_STDINT_H \
- -DOPJ_HAVE_STDINT_H \
+ -DOPJ_HAVE_STDINT_H -DOPJ_HAVE_INTTYPES_H -DUSE_JPIP \
'-DFT_CONFIG_MODULES_H="slimftmodules.h"' \
'-DFT_CONFIG_OPTIONS_H="slimftoptions.h"' \
-Dhb_malloc_impl=hb_malloc -Dhb_calloc_impl=hb_calloc \
@@ -85,31 +84,29 @@ LOCAL_SRC_FILES := \
$(MY_ROOT)/thirdparty/jbig2dec/jbig2_segment.c \
$(MY_ROOT)/thirdparty/jbig2dec/jbig2_symbol_dict.c \
$(MY_ROOT)/thirdparty/jbig2dec/jbig2_text.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/bio.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/cidx_manager.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/cio.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/dwt.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/event.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/function_list.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/image.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/invert.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/j2k.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/jp2.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/mct.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/mqc.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/openjpeg.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/opj_clock.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/phix_manager.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/pi.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/ppix_manager.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/raw.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/t1.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/t1_generate_luts.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/t2.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/tcd.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/tgt.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/thix_manager.c \
- $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg/tpix_manager.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/bio.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/cidx_manager.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/cio.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/dwt.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/event.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/function_list.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/image.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/invert.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/j2k.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/jp2.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/mct.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/mqc.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/openjpeg.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/phix_manager.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/pi.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/ppix_manager.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/raw.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/t1.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/t2.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/tcd.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/tgt.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/thix_manager.c \
+ $(MY_ROOT)/thirdparty/openjpeg/src/lib/openjp2/tpix_manager.c \
$(MY_ROOT)/thirdparty/jpeg/jaricom.c \
$(MY_ROOT)/thirdparty/jpeg/jcomapi.c \
$(MY_ROOT)/thirdparty/jpeg/jdapimin.c \
diff --git a/platform/win32/libmupdf.vcproj b/platform/win32/libmupdf.vcproj
index a760821da..8da9633d2 100644
--- a/platform/win32/libmupdf.vcproj
+++ b/platform/win32/libmupdf.vcproj
@@ -43,7 +43,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg/src/lib/openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;DEBUG=1;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -106,7 +106,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;DEBUG=1;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -172,7 +172,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
WholeProgramOptimization="false"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -236,7 +236,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -296,7 +296,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;MEMENTO=1;DEBUG=1;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -359,7 +359,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;MEMENTO=1;DEBUG=1;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -421,7 +421,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\openssl\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\openssl\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;DEBUG=1;HAVE_OPENSSL;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -484,7 +484,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\openssl\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\openssl\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
PreprocessorDefinitions="FZ_LARGEFILE;DEBUG=1;HAVE_OPENSSL;USE_OUTPUT_DEBUG_STRING"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -549,7 +549,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -613,7 +613,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\include;..\..\ucdn;..\..\generated;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\mujs;..\..\thirdparty\harfbuzz\src"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
diff --git a/platform/win32/libthirdparty.vcproj b/platform/win32/libthirdparty.vcproj
index 455f2e20b..46435aca4 100644
--- a/platform/win32/libthirdparty.vcproj
+++ b/platform/win32/libthirdparty.vcproj
@@ -42,8 +42,8 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;DEBUG=1;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;DEBUG=1;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@@ -104,8 +104,8 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;DEBUG=1;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;DEBUG=1;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@@ -167,8 +167,8 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -230,8 +230,8 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -290,8 +290,8 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;MEMENTO=1;DEBUG=1;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;MEMENTO=1;DEBUG=1;verbose=-1;JBIG_EXTERNAL_MEMENTO_H=\&quot;memento.h\&quot;;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@@ -352,8 +352,8 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\scripts\openjpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\libopenjpeg;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
- PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;MEMENTO=1;DEBUG=1;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
+ AdditionalIncludeDirectories="..\..\scripts\freetype;..\..\scripts\jpeg;..\..\thirdparty\jbig2dec;..\..\thirdparty\jpeg;..\..\thirdparty\openjpeg\src\lib\openjp2;..\..\thirdparty\zlib;..\..\thirdparty\freetype\include;..\..\thirdparty\freetype\include\freetype;..\..\include\"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;USE_JPIP=1;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;;MEMENTO=1;DEBUG=1;verbose=-1;HAVE_OT;HAVE_UCDN;HB_NO_MT;hb_malloc_impl=hb_malloc;hb_calloc_impl=hb_calloc;hb_realloc_impl=hb_realloc;hb_free_impl=hb_free"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@@ -632,227 +632,215 @@
Name="libopenjpeg"
>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\bio.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\bio.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\bio.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\bio.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\cidx_manager.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\cidx_manager.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\cidx_manager.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\cidx_manager.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\cio.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\cio.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\cio.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\cio.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\dwt.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\dwt.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\dwt.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\dwt.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\event.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\event.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\event.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\event.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\fix.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\fix.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\function_list.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\function_list.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\function_list.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\function_list.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\image.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\image.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\image.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\image.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\indexbox_manager.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\indexbox_manager.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\int.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\int.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\invert.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\invert.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\invert.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\invert.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\j2k.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\j2k.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\j2k.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\j2k.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\j2k_lib.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\jp2.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\j2k_lib.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\jp2.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\jp2.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\mct.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\jp2.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\mct.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\mct.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\mqc.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\mct.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\mqc.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\mqc.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\openjpeg.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\mqc.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\openjpeg.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\openjpeg.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_config.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\openjpeg.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_config_private.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_config.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_includes.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_config_private.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_intmath.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_includes.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_inttypes.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_intmath.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_malloc.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_inttypes.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\opj_stdint.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_malloc.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\phix_manager.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\opj_stdint.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\pi.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\phix_manager.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\pi.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\pi.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\ppix_manager.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\pi.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\raw.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\ppix_manager.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\raw.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\raw.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\t1.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\raw.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\t1.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t1.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\t1_luts.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t1.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\t2.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t1_generate_luts.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\t2.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t1_luts.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\tcd.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t2.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\tcd.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\t2.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\tgt.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\tcd.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\tgt.h"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\tcd.h"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\thix_manager.c"
>
</File>
<File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\tgt.c"
- >
- </File>
- <File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\tgt.h"
- >
- </File>
- <File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\thix_manager.c"
- >
- </File>
- <File
- RelativePath="..\..\thirdparty\openjpeg\libopenjpeg\tpix_manager.c"
+ RelativePath="..\..\thirdparty\openjpeg\src\lib\openjp2\tpix_manager.c"
>
</File>
</Filter>
diff --git a/scripts/openjpeg/opj_config.h b/scripts/openjpeg/opj_config.h
deleted file mode 100644
index bd0babed1..000000000
--- a/scripts/openjpeg/opj_config.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* If you want to build the library manually without using
- * 'configure' or 'CMake'
- * then copy this file
- * 'opj_config.h.cmake.in'
- * to
- * 'opj_config.h'
- *
- * Open 'opj_config.h' and change the file contents
- * if you want to define something because you know you have
- * BOTH installed the library AND the header file(s).
- * Then e.g. write
-#define HAVE_LIBPNG 1
- *
- *
- * The file 'opj_config.h' will be included in some source files.
- * ==== YOU CAN NOT COMPILE WITHOUT IT. ====
- * === DO NOT FORGET TO CHANGE 'config.nix' APPROPRIATELY. ====
-*/
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-#define OPJ_BIG_ENDIAN 1
-#endif
diff --git a/scripts/openjpeg/opj_config_private.h b/scripts/openjpeg/opj_config_private.h
deleted file mode 100644
index 70f1f6d82..000000000
--- a/scripts/openjpeg/opj_config_private.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* If you want to build the library manually without using
- * 'configure' or 'CMake'
- * then copy this file
- * 'opj_config_private.h.cmake.in'
- * to
- * 'opj_config_private.h'
- *
- * Open 'opj_config_private.h' and change the file contents
- * if you want to define something because you know you have
- * BOTH installed the library AND the header file(s).
- * Then e.g. write
-#define HAVE_LIBPNG 1
- *
- *
- * The file 'opj_config_private.h' will be included in some source files.
- * ==== YOU CAN NOT COMPILE WITHOUT IT. ====
- * === DO NOT FORGET TO CHANGE 'config.nix' APPROPRIATELY. ====
-*/
-
-#ifndef _WIN32
-#define OPJ_HAVE_INTTYPES_H 1
-#else
-#undef OPJ_HAVE_INTTYPES_H
-#endif
-
-#define USE_JPIP
-#define OPJ_PACKAGE_VERSION "2.0.0"
-
-/* DO NOT DEFINE BOTH VERSIONS OF LCMS */
-/* define to 1 if you have both liblcms and lcms.h installed */
-#undef OPJ_HAVE_LIBLCMS1
-/* #define OPJ_HAVE_LIBLCMS1 1 */
-
-/* define to 1 if you have both liblcms2 and lcms2.h installed */
-#undef OPJ_HAVE_LIBLCMS2
-/* #define OPJ_HAVE_LIBLCMS2 1 */
-
-/* define to 1 if you have both libpng and png.h installed */
-#undef OPJ_HAVE_LIBPNG
-/* #define OPJ_HAVE_LIBPNG 1 */
-
-/* define to 1 if you have both libtiff and tiff.h installed */
-#undef OPJ_HAVE_LIBTIFF
-/* #define OPJ_HAVE_LIBTIFF 1 */
-
-/*---------------- DO NOT CHANGE BELOW THIS LINE ----------------*/
-#define PACKAGE_URL "http://www.openjpeg.org/"
-#define PACKAGE_BUGREPORT "http://code.google.com/p/openjpeg/"
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
index 6b92e5c8c..7327a6bf6 100644
--- a/source/fitz/load-jpx.c
+++ b/source/fitz/load-jpx.c
@@ -117,7 +117,7 @@ fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *defcs
opj_stream_set_read_function(stream, fz_opj_stream_read);
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
- opj_stream_set_user_data(stream, &sb);
+ opj_stream_set_user_data(stream, &sb, NULL);
/* Set the length to avoid an assert */
opj_stream_set_user_data_length(stream, size);
diff --git a/thirdparty/openjpeg b/thirdparty/openjpeg
-Subproject 4c7d23d2cd00cee7822a61d1e8472439bd6d53c
+Subproject 731b9d0b35ce1d913620387eab8d6e294afac69