mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
585 lines
72 KiB
Diff
585 lines
72 KiB
Diff
|
diff --git a/Makefile.fip b/Makefile.fip
|
||
|
index 660a026..86b3040 100644
|
||
|
--- a/Makefile.fip
|
||
|
+++ b/Makefile.fip
|
||
|
@@ -11,32 +11,21 @@ INSTALLDIR ?= $(DESTDIR)/usr/lib
|
||
|
# Converts cr/lf to just lf
|
||
|
DOS2UNIX = dos2unix
|
||
|
|
||
|
-LIBRARIES = -lstdc++
|
||
|
+LIBRARIES = -lstdc++ $(shell pkg-config --libs OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
|
||
|
MODULES = $(SRCS:.c=.o)
|
||
|
MODULES := $(MODULES:.cpp=.o)
|
||
|
|
||
|
+INCLUDE += $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
+
|
||
|
# C flags
|
||
|
CFLAGS ?= -std=c99 -O3 -fPIC -fexceptions -fvisibility=hidden
|
||
|
-# OpenJPEG
|
||
|
-CFLAGS += -DOPJ_STATIC
|
||
|
-# LibRaw
|
||
|
-CFLAGS += -DNO_LCMS
|
||
|
-# LibJXR
|
||
|
-CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__
|
||
|
CFLAGS += $(INCLUDE)
|
||
|
|
||
|
# C++ flags
|
||
|
CXXFLAGS ?= -std=c++0x -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
|
||
|
-# LibJXR
|
||
|
-CXXFLAGS += -D__ANSI__
|
||
|
CXXFLAGS += $(INCLUDE)
|
||
|
|
||
|
-ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
|
||
|
- CFLAGS += -fPIC
|
||
|
- CXXFLAGS += -fPIC
|
||
|
-endif
|
||
|
-
|
||
|
TARGET = freeimageplus
|
||
|
STATICLIB = lib$(TARGET).a
|
||
|
SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so
|
||
|
@@ -76,10 +65,10 @@ $(SHAREDLIB): $(MODULES)
|
||
|
|
||
|
install:
|
||
|
install -d $(INCDIR) $(INSTALLDIR)
|
||
|
- install -m 644 -o root -g root $(HEADER) $(INCDIR)
|
||
|
- install -m 644 -o root -g root $(HEADERFIP) $(INCDIR)
|
||
|
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
|
||
|
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
|
||
|
+ install -m 644 $(HEADER) $(INCDIR)
|
||
|
+ install -m 644 $(HEADERFIP) $(INCDIR)
|
||
|
+ install -m 644 $(STATICLIB) $(INSTALLDIR)
|
||
|
+ install -m 755 $(SHAREDLIB) $(INSTALLDIR)
|
||
|
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
|
||
|
ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
|
||
|
|
||
|
diff --git a/Makefile.gnu b/Makefile.gnu
|
||
|
index a4f2601..be95476 100644
|
||
|
--- a/Makefile.gnu
|
||
|
+++ b/Makefile.gnu
|
||
|
@@ -11,32 +11,21 @@ INSTALLDIR ?= $(DESTDIR)/usr/lib
|
||
|
# Converts cr/lf to just lf
|
||
|
DOS2UNIX = dos2unix
|
||
|
|
||
|
-LIBRARIES = -lstdc++
|
||
|
+LIBRARIES = -lstdc++ $(shell pkg-config --libs OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
|
||
|
MODULES = $(SRCS:.c=.o)
|
||
|
MODULES := $(MODULES:.cpp=.o)
|
||
|
|
||
|
+INCLUDE += $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
+
|
||
|
# C flags
|
||
|
CFLAGS ?= -std=c99 -O3 -fPIC -fexceptions -fvisibility=hidden
|
||
|
-# OpenJPEG
|
||
|
-CFLAGS += -DOPJ_STATIC
|
||
|
-# LibRaw
|
||
|
-CFLAGS += -DNO_LCMS
|
||
|
-# LibJXR
|
||
|
-CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__
|
||
|
CFLAGS += $(INCLUDE)
|
||
|
|
||
|
# C++ flags
|
||
|
CXXFLAGS ?= -std=c++0x -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
|
||
|
-# LibJXR
|
||
|
-CXXFLAGS += -D__ANSI__
|
||
|
CXXFLAGS += $(INCLUDE)
|
||
|
|
||
|
-ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
|
||
|
- CFLAGS += -fPIC
|
||
|
- CXXFLAGS += -fPIC
|
||
|
-endif
|
||
|
-
|
||
|
TARGET = freeimage
|
||
|
STATICLIB = lib$(TARGET).a
|
||
|
SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so
|
||
|
@@ -75,12 +64,11 @@ $(SHAREDLIB): $(MODULES)
|
||
|
|
||
|
install:
|
||
|
install -d $(INCDIR) $(INSTALLDIR)
|
||
|
- install -m 644 -o root -g root $(HEADER) $(INCDIR)
|
||
|
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
|
||
|
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
|
||
|
+ install -m 644 $(HEADER) $(INCDIR)
|
||
|
+ install -m 644 $(STATICLIB) $(INSTALLDIR)
|
||
|
+ install -m 755 $(SHAREDLIB) $(INSTALLDIR)
|
||
|
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
|
||
|
ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
|
||
|
-# ldconfig
|
||
|
|
||
|
clean:
|
||
|
rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
|
||
|
diff --git a/Makefile.osx b/Makefile.osx
|
||
|
index c39121d..3800e39 100644
|
||
|
--- a/Makefile.osx
|
||
|
+++ b/Makefile.osx
|
||
|
@@ -10,24 +10,25 @@ MACOSX_SYSROOT = $(shell xcrun --show-sdk-path)
|
||
|
MACOSX_DEPLOYMENT_TARGET = 10.11
|
||
|
|
||
|
# General configuration variables:
|
||
|
-CC_I386 = $(shell xcrun -find clang)
|
||
|
-CC_X86_64 = $(shell xcrun -find clang)
|
||
|
-CPP_I386 = $(shell xcrun -find clang++)
|
||
|
-CPP_X86_64 = $(shell xcrun -find clang++)
|
||
|
+CC_I386 = clang
|
||
|
+CC_X86_64 = clang
|
||
|
+CPP_I386 = clang++
|
||
|
+CPP_X86_64 = clang++
|
||
|
MACOSX_DEPLOY = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||
|
COMPILERFLAGS = -Os -fexceptions -fvisibility=hidden -DNO_LCMS -D__ANSI__
|
||
|
COMPILERFLAGS_I386 = -arch i386
|
||
|
COMPILERFLAGS_X86_64 = -arch x86_64
|
||
|
COMPILERPPFLAGS = -Wno-ctor-dtor-privacy -D__ANSI__ -std=c++11 -stdlib=libc++ -Wc++11-narrowing
|
||
|
-INCLUDE +=
|
||
|
-INCLUDE_I386 = -isysroot $(MACOSX_SYSROOT)
|
||
|
-INCLUDE_X86_64 = -isysroot $(MACOSX_SYSROOT)
|
||
|
+INCLUDE += $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
+INCLUDE_I386 =
|
||
|
+INCLUDE_X86_64 =
|
||
|
CFLAGS_I386 = $(COMPILERFLAGS) $(COMPILERFLAGS_I386) $(INCLUDE) $(INCLUDE_I386) $(MACOSX_DEPLOY)
|
||
|
CFLAGS_X86_64 = $(COMPILERFLAGS) $(COMPILERFLAGS_X86_64) $(INCLUDE) $(INCLUDE_X86_64) $(MACOSX_DEPLOY)
|
||
|
CPPFLAGS_I386 = $(COMPILERPPFLAGS) $(CFLAGS_I386)
|
||
|
CPPFLAGS_X86_64 = $(COMPILERPPFLAGS) $(CFLAGS_X86_64)
|
||
|
-LIBRARIES_I386 = $(MACOSX_DEPLOY) -Wl,-syslibroot $(MACOSX_SYSROOT)
|
||
|
-LIBRARIES_X86_64 = $(MACOSX_DEPLOY) -Wl,-syslibroot $(MACOSX_SYSROOT)
|
||
|
+LIBS = $(shell pkg-config --libs OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib libjxr libjpeg)
|
||
|
+LIBRARIES_I386 = $(LIBS) $(MACOSX_DEPLOY)
|
||
|
+LIBRARIES_X86_64 = $(LIBS) $(MACOSX_DEPLOY)
|
||
|
LIBTOOL = libtool
|
||
|
LIPO = lipo
|
||
|
|
||
|
@@ -57,7 +58,7 @@ dist: FreeImage
|
||
|
cp *.a Dist
|
||
|
cp Source/FreeImage.h Dist
|
||
|
|
||
|
-FreeImage: $(STATICLIB)
|
||
|
+FreeImage: $(STATICLIB) $(SHAREDLIB)
|
||
|
|
||
|
$(STATICLIB): $(STATICLIB)-x86_64
|
||
|
cp -p $(STATICLIB)-x86_64 $(STATICLIB)
|
||
|
@@ -84,13 +85,10 @@ $(STATICLIB)-i386: $(MODULES_I386)
|
||
|
$(STATICLIB)-x86_64: $(MODULES_X86_64)
|
||
|
$(LIBTOOL) -arch_only x86_64 -o $@ $(MODULES_X86_64)
|
||
|
|
||
|
-$(SHAREDLIB): $(SHAREDLIB)-i386 $(SHAREDLIB)-x86_64
|
||
|
- $(LIPO) -create $(SHAREDLIB)-i386 $(SHAREDLIB)-x86_64 -output $(SHAREDLIB)
|
||
|
-
|
||
|
$(SHAREDLIB)-i386: $(MODULES_I386)
|
||
|
$(CPP_I386) -arch i386 -dynamiclib $(LIBRARIES_I386) -o $@ $(MODULES_I386)
|
||
|
|
||
|
-$(SHAREDLIB)-x86_64: $(MODULES_X86_64)
|
||
|
+$(SHAREDLIB): $(MODULES_X86_64)
|
||
|
$(CPP_X86_64) -arch x86_64 -dynamiclib $(LIBRARIES_X86_64) -o $@ $(MODULES_X86_64)
|
||
|
|
||
|
.c.o-i386:
|
||
|
@@ -106,9 +104,8 @@ $(SHAREDLIB)-x86_64: $(MODULES_X86_64)
|
||
|
$(CPP_X86_64) $(CPPFLAGS_X86_64) -c $< -o $@
|
||
|
|
||
|
install:
|
||
|
- install -d -m 755 -o root -g wheel $(INCDIR) $(INSTALLDIR)
|
||
|
- install -m 644 -o root -g wheel $(HEADER) $(INCDIR)
|
||
|
- install -m 644 -o root -g wheel $(SHAREDLIB) $(STATICLIB) $(INSTALLDIR)
|
||
|
+ install $(HEADER) $(INCDIR)
|
||
|
+ install $(SHAREDLIB) $(STATICLIB) $(INSTALLDIR)
|
||
|
ranlib -sf $(INSTALLDIR)/$(STATICLIB)
|
||
|
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
|
||
|
|
||
|
diff --git a/Makefile.srcs b/Makefile.srcs
|
||
|
index 0b8d3a0..b706fd0 100644
|
||
|
--- a/Makefile.srcs
|
||
|
+++ b/Makefile.srcs
|
||
|
@@ -1,6 +1,6 @@
|
||
|
VER_MAJOR = 3
|
||
|
VER_MINOR = 19.0
|
||
|
-SRCS = ./Source/FreeImage/BitmapAccess.cpp ./Source/FreeImage/ColorLookup.cpp ./Source/FreeImage/ConversionRGBA16.cpp ./Source/FreeImage/ConversionRGBAF.cpp ./Source/FreeImage/FreeImage.cpp ./Source/FreeImage/FreeImageC.c ./Source/FreeImage/FreeImageIO.cpp ./Source/FreeImage/GetType.cpp ./Source/FreeImage/LFPQuantizer.cpp ./Source/FreeImage/MemoryIO.cpp ./Source/FreeImage/PixelAccess.cpp ./Source/FreeImage/J2KHelper.cpp ./Source/FreeImage/MNGHelper.cpp ./Source/FreeImage/Plugin.cpp ./Source/FreeImage/PluginBMP.cpp ./Source/FreeImage/PluginCUT.cpp ./Source/FreeImage/PluginDDS.cpp ./Source/FreeImage/PluginEXR.cpp ./Source/FreeImage/PluginG3.cpp ./Source/FreeImage/PluginGIF.cpp ./Source/FreeImage/PluginHDR.cpp ./Source/FreeImage/PluginICO.cpp ./Source/FreeImage/PluginIFF.cpp ./Source/FreeImage/PluginJ2K.cpp ./Source/FreeImage/PluginJNG.cpp ./Source/FreeImage/PluginJP2.cpp ./Source/FreeImage/PluginJPEG.cpp ./Source/FreeImage/PluginJXR.cpp ./Source/FreeImage/PluginKOALA.cpp ./Source/FreeImage/PluginMNG.cpp ./Source/FreeImage/PluginPCD.cpp ./Source/FreeImage/PluginPCX.cpp ./Source/FreeImage/PluginPFM.cpp ./Source/FreeImage/PluginPICT.cpp ./Source/FreeImage/PluginPNG.cpp ./Source/FreeImage/PluginPNM.cpp ./Source/FreeImage/PluginPSD.cpp ./Source/FreeImage/PluginRAS.cpp ./Source/FreeImage/PluginRAW.cpp ./Source/FreeImage/PluginSGI.cpp ./Source/FreeImage/PluginTARGA.cpp ./Source/FreeImage/PluginTIFF.cpp ./Source/FreeImage/PluginWBMP.cpp ./Source/FreeImage/PluginWebP.cpp ./Source/FreeImage/PluginXBM.cpp ./Source/FreeImage/PluginXPM.cpp ./Source/FreeImage/PSDParser.cpp ./Source/FreeImage/TIFFLogLuv.cpp ./Source/FreeImage/Conversion.cpp ./Source/FreeImage/Conversion16_555.cpp ./Source/FreeImage/Conversion16_565.cpp ./Source/FreeImage/Conversion24.cpp ./Source/FreeImage/Conversion32.cpp ./Source/FreeImage/Conversion4.cpp ./Source/FreeImage/Conversion8.cpp ./Source/FreeImage/ConversionFloat.cpp ./Source/FreeImage/ConversionRGB16.cpp ./Source/FreeImage/ConversionRGBF.cpp ./Source/FreeImage/ConversionType.cpp ./Source/FreeImage/ConversionUINT16.cpp ./Source/FreeImage/Halftoning.cpp ./Source/FreeImage/tmoColorConvert.cpp ./Source/FreeImage/tmoDrago03.cpp ./Source/FreeImage/tmoFattal02.cpp ./Source/FreeImage/tmoReinhard05.cpp ./Source/FreeImage/ToneMapping.cpp ./Source/FreeImage/NNQuantizer.cpp ./Source/FreeImage/WuQuantizer.cpp ./Source/FreeImage/CacheFile.cpp ./Source/FreeImage/MultiPage.cpp ./Source/FreeImage/ZLibInterface.cpp ./Source/Metadata/Exif.cpp ./Source/Metadata/FIRational.cpp ./Source/Metadata/FreeImageTag.cpp ./Source/Metadata/IPTC.cpp ./Source/Metadata/TagConversion.cpp ./Source/Metadata/TagLib.cpp ./Source/Metadata/XTIFF.cpp ./Source/FreeImageToolkit/Background.cpp ./Source/FreeImageToolkit/BSplineRotate.cpp ./Source/FreeImageToolkit/Channels.cpp ./Source/FreeImageToolkit/ClassicRotate.cpp ./Source/FreeImageToolkit/Colors.cpp ./Source/FreeImageToolkit/CopyPaste.cpp ./Source/FreeImageToolkit/Display.cpp ./Source/FreeImageToolkit/Flip.cpp ./Source/FreeImageToolkit/JPEGTransform.cpp ./Source/FreeImageToolkit/MultigridPoissonSolver.cpp ./Source/FreeImageToolkit/Rescale.cpp ./Source/FreeImageToolkit/Resize.cpp Source/LibJPEG/jaricom.c Source/LibJPEG/jcapimin.c Source/LibJPEG/jcapistd.c Source/LibJPEG/jcarith.c Source/LibJPEG/jccoefct.c Source/LibJPEG/jccolor.c Source/LibJPEG/jcdctmgr.c Source/LibJPEG/jchuff.c Source/LibJPEG/jcinit.c Source/LibJPEG/jcmainct.c Source/LibJPEG/jcmarker.c Source/LibJPEG/jcmaster.c Source/LibJPEG/jcomapi.c Source/LibJPEG/jcparam.c Source/LibJPEG/jcprepct.c Source/LibJPEG/jcsample.c Source/LibJPEG/jctrans.c Source/LibJPEG/jdapimin.c Source/LibJPEG/jdapistd.c Source/LibJPEG/jdarith.c Source/LibJPEG/jdatadst.c Source/LibJPEG/jdatasrc.c Source/LibJPEG/jdcoefct.c Source/LibJPEG/jdcolor.c Source/LibJPEG/jddctmgr.c Source/LibJPEG/jdhuff.c Source/LibJPEG/jdinput.c Source/LibJPEG/jdmainct.c Source/LibJPEG/jdmarker.c Source/LibJPEG/jdmaster.c Source/LibJPEG/jdmerge.c Source/LibJPEG/jdpostct.c Source/LibJPEG/jdsample.c Source/LibJPEG/jdtrans.c Source/LibJPEG/jerror.c Source/LibJPEG/jfdctflt.c Source/LibJPEG/jf
|
||
|
-INCLS = ./Examples/OpenGL/TextureManager/TextureManager.h ./Examples/Plugin/PluginCradle.h ./Examples/Generic/FIIO_Mem.h ./Source/MapIntrospector.h ./Source/CacheFile.h ./Source/LibJPEG/cderror.h ./Source/LibJPEG/jmorecfg.h ./Source/LibJPEG/transupp.h ./Source/LibJPEG/jpeglib.h ./Source/LibJPEG/jversion.h ./Source/LibJPEG/jinclude.h ./Source/LibJPEG/jerror.h ./Source/LibJPEG/jconfig.h ./Source/LibJPEG/jdct.h ./Source/LibJPEG/cdjpeg.h ./Source/LibJPEG/jmemsys.h ./Source/LibJPEG/jpegint.h ./Source/Plugin.h ./Source/Metadata/FreeImageTag.h ./Source/Metadata/FIRational.h ./Source/ToneMapping.h ./Source/LibTIFF4/tiffconf.vc.h ./Source/LibTIFF4/tif_config.h ./Source/LibTIFF4/tif_fax3.h ./Source/LibTIFF4/tif_config.vc.h ./Source/LibTIFF4/tiffvers.h ./Source/LibTIFF4/tiffio.h ./Source/LibTIFF4/tif_config.wince.h ./Source/LibTIFF4/tiffconf.wince.h ./Source/LibTIFF4/tiff.h ./Source/LibTIFF4/uvcode.h ./Source/LibTIFF4/tif_dir.h ./Source/LibTIFF4/t4.h ./Source/LibTIFF4/tif_predict.h ./Source/LibTIFF4/tiffiop.h ./Source/LibTIFF4/tiffconf.h ./Source/LibWebP/src/dec/alphai_dec.h ./Source/LibWebP/src/dec/common_dec.h ./Source/LibWebP/src/dec/vp8i_dec.h ./Source/LibWebP/src/dec/webpi_dec.h ./Source/LibWebP/src/dec/vp8li_dec.h ./Source/LibWebP/src/dec/vp8_dec.h ./Source/LibWebP/src/enc/cost_enc.h ./Source/LibWebP/src/enc/histogram_enc.h ./Source/LibWebP/src/enc/vp8li_enc.h ./Source/LibWebP/src/enc/backward_references_enc.h ./Source/LibWebP/src/enc/vp8i_enc.h ./Source/LibWebP/src/utils/bit_reader_utils.h ./Source/LibWebP/src/utils/endian_inl_utils.h ./Source/LibWebP/src/utils/huffman_encode_utils.h ./Source/LibWebP/src/utils/bit_writer_utils.h ./Source/LibWebP/src/utils/random_utils.h ./Source/LibWebP/src/utils/bit_reader_inl_utils.h ./Source/LibWebP/src/utils/quant_levels_dec_utils.h ./Source/LibWebP/src/utils/color_cache_utils.h ./Source/LibWebP/src/utils/thread_utils.h ./Source/LibWebP/src/utils/filters_utils.h ./Source/LibWebP/src/utils/rescaler_utils.h ./Source/LibWebP/src/utils/huffman_utils.h ./Source/LibWebP/src/utils/quant_levels_utils.h ./Source/LibWebP/src/utils/utils.h ./Source/LibWebP/src/mux/muxi.h ./Source/LibWebP/src/mux/animi.h ./Source/LibWebP/src/webp/mux.h ./Source/LibWebP/src/webp/types.h ./Source/LibWebP/src/webp/format_constants.h ./Source/LibWebP/src/webp/demux.h ./Source/LibWebP/src/webp/encode.h ./Source/LibWebP/src/webp/decode.h ./Source/LibWebP/src/webp/mux_types.h ./Source/LibWebP/src/dsp/msa_macro.h ./Source/LibWebP/src/dsp/yuv.h ./Source/LibWebP/src/dsp/common_sse41.h ./Source/LibWebP/src/dsp/neon.h ./Source/LibWebP/src/dsp/common_sse2.h ./Source/LibWebP/src/dsp/quant.h ./Source/LibWebP/src/dsp/lossless_common.h ./Source/LibWebP/src/dsp/mips_macro.h ./Source/LibWebP/src/dsp/dsp.h ./Source/LibWebP/src/dsp/lossless.h ./Source/FreeImageIO.h ./Source/FreeImage.h ./Source/FreeImage/PSDParser.h ./Source/FreeImage/J2KHelper.h ./Source/ZLib/trees.h ./Source/ZLib/inffixed.h ./Source/ZLib/inflate.h ./Source/ZLib/zlib.h ./Source/ZLib/zconf.h ./Source/ZLib/inftrees.h ./Source/ZLib/zutil.h ./Source/ZLib/inffast.h ./Source/ZLib/crc32.h ./Source/ZLib/gzguts.h ./Source/ZLib/deflate.h ./Source/Quantizers.h ./Source/LibOpenJPEG/cio.h ./Source/LibOpenJPEG/mqc.h ./Source/LibOpenJPEG/cidx_manager.h ./Source/LibOpenJPEG/function_list.h ./Source/LibOpenJPEG/indexbox_manager.h ./Source/LibOpenJPEG/opj_config.h ./Source/LibOpenJPEG/opj_clock.h ./Source/LibOpenJPEG/event.h ./Source/LibOpenJPEG/opj_codec.h ./Source/LibOpenJPEG/pi.h ./Source/LibOpenJPEG/dwt.h ./Source/LibOpenJPEG/tgt.h ./Source/LibOpenJPEG/invert.h ./Source/LibOpenJPEG/opj_malloc.h ./Source/LibOpenJPEG/raw.h ./Source/LibOpenJPEG/jp2.h ./Source/LibOpenJPEG/bio.h ./Source/LibOpenJPEG/t2.h ./Source/LibOpenJPEG/mct.h ./Source/LibOpenJPEG/t1.h ./Source/LibOpenJPEG/t1_luts.h ./Source/LibOpenJPEG/j2k.h ./Source/LibOpenJPEG/opj_stdint.h ./Source/LibOpenJPEG/opj_config_private.h ./Source/LibOpenJPEG/opj_includes.h ./Source/LibOpenJPEG/opj_intmath.h ./Source/LibOpenJPEG/image.h ./Source/LibOpenJPEG/opj_inttypes.h ./Source/LibOpenJPEG/openjpeg.h ./Source/LibOpenJPEG/tcd.h ./Sour
|
||
|
+SRCS = ./Source/FreeImage/BitmapAccess.cpp ./Source/FreeImage/ColorLookup.cpp ./Source/FreeImage/ConversionRGBA16.cpp ./Source/FreeImage/ConversionRGBAF.cpp ./Source/FreeImage/FreeImage.cpp ./Source/FreeImage/FreeImageC.c ./Source/FreeImage/FreeImageIO.cpp ./Source/FreeImage/GetType.cpp ./Source/FreeImage/LFPQuantizer.cpp ./Source/FreeImage/MemoryIO.cpp ./Source/FreeImage/PixelAccess.cpp ./Source/FreeImage/J2KHelper.cpp ./Source/FreeImage/MNGHelper.cpp ./Source/FreeImage/Plugin.cpp ./Source/FreeImage/PluginBMP.cpp ./Source/FreeImage/PluginCUT.cpp ./Source/FreeImage/PluginDDS.cpp ./Source/FreeImage/PluginEXR.cpp ./Source/FreeImage/PluginG3.cpp ./Source/FreeImage/PluginGIF.cpp ./Source/FreeImage/PluginHDR.cpp ./Source/FreeImage/PluginICO.cpp ./Source/FreeImage/PluginIFF.cpp ./Source/FreeImage/PluginJ2K.cpp ./Source/FreeImage/PluginJNG.cpp ./Source/FreeImage/PluginJP2.cpp ./Source/FreeImage/PluginJPEG.cpp ./Source/FreeImage/PluginJXR.cpp ./Source/FreeImage/PluginKOALA.cpp ./Source/FreeImage/PluginMNG.cpp ./Source/FreeImage/PluginPCD.cpp ./Source/FreeImage/PluginPCX.cpp ./Source/FreeImage/PluginPFM.cpp ./Source/FreeImage/PluginPICT.cpp ./Source/FreeImage/PluginPNG.cpp ./Source/FreeImage/PluginPNM.cpp ./Source/FreeImage/PluginPSD.cpp ./Source/FreeImage/PluginRAS.cpp ./Source/FreeImage/PluginRAW.cpp ./Source/FreeImage/PluginSGI.cpp ./Source/FreeImage/PluginTARGA.cpp ./Source/FreeImage/PluginTIFF.cpp ./Source/FreeImage/PluginWBMP.cpp ./Source/FreeImage/PluginWebP.cpp ./Source/FreeImage/PluginXBM.cpp ./Source/FreeImage/PluginXPM.cpp ./Source/FreeImage/PSDParser.cpp ./Source/FreeImage/TIFFLogLuv.cpp ./Source/FreeImage/Conversion.cpp ./Source/FreeImage/Conversion16_555.cpp ./Source/FreeImage/Conversion16_565.cpp ./Source/FreeImage/Conversion24.cpp ./Source/FreeImage/Conversion32.cpp ./Source/FreeImage/Conversion4.cpp ./Source/FreeImage/Conversion8.cpp ./Source/FreeImage/ConversionFloat.cpp ./Source/FreeImage/ConversionRGB16.cpp ./Source/FreeImage/ConversionRGBF.cpp ./Source/FreeImage/ConversionType.cpp ./Source/FreeImage/ConversionUINT16.cpp ./Source/FreeImage/Halftoning.cpp ./Source/FreeImage/tmoColorConvert.cpp ./Source/FreeImage/tmoDrago03.cpp ./Source/FreeImage/tmoFattal02.cpp ./Source/FreeImage/tmoReinhard05.cpp ./Source/FreeImage/ToneMapping.cpp ./Source/FreeImage/NNQuantizer.cpp ./Source/FreeImage/WuQuantizer.cpp ./Source/FreeImage/CacheFile.cpp ./Source/FreeImage/MultiPage.cpp ./Source/FreeImage/ZLibInterface.cpp ./Source/Metadata/Exif.cpp ./Source/Metadata/FIRational.cpp ./Source/Metadata/FreeImageTag.cpp ./Source/Metadata/IPTC.cpp ./Source/Metadata/TagConversion.cpp ./Source/Metadata/TagLib.cpp ./Source/Metadata/XTIFF.cpp ./Source/FreeImageToolkit/Background.cpp ./Source/FreeImageToolkit/BSplineRotate.cpp ./Source/FreeImageToolkit/Channels.cpp ./Source/FreeImageToolkit/ClassicRotate.cpp ./Source/FreeImageToolkit/Colors.cpp ./Source/FreeImageToolkit/CopyPaste.cpp ./Source/FreeImageToolkit/Display.cpp ./Source/FreeImageToolkit/Flip.cpp ./Source/FreeImageToolkit/JPEGTransform.cpp ./Source/FreeImageToolkit/MultigridPoissonSolver.cpp ./Source/FreeImageToolkit/Rescale.cpp ./Source/FreeImageToolkit/Resize.cpp
|
||
|
+INCLS = ./Examples/OpenGL/TextureManager/TextureManager.h ./Examples/Generic/FIIO_Mem.h ./Examples/Plugin/PluginCradle.h ./Wrapper/FreeImage.NET/cpp/FreeImageIO/resource.h ./Wrapper/FreeImage.NET/cpp/FreeImageIO/FreeImageIO.Net.h ./Wrapper/FreeImage.NET/cpp/FreeImageIO/Stdafx.h ./Wrapper/FreeImagePlus/FreeImagePlus.h ./Wrapper/FreeImagePlus/test/fipTest.h ./TestAPI/TestSuite.h ./Source/FreeImage.h ./Source/FreeImage/PSDParser.h ./Source/FreeImage/J2KHelper.h ./Source/FreeImageToolkit/Filters.h ./Source/FreeImageToolkit/Resize.h ./Source/Metadata/FreeImageTag.h ./Source/Metadata/FIRational.h ./Source/ToneMapping.h ./Source/FreeImageIO.h ./Source/Plugin.h ./Source/CacheFile.h ./Source/Utilities.h ./Source/MapIntrospector.h ./Source/Quantizers.h
|
||
|
|
||
|
-INCLUDE = -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -ISource/LibJPEG -ISource/LibPNG -ISource/LibTIFF4 -ISource/ZLib -ISource/LibOpenJPEG -ISource/OpenEXR -ISource/OpenEXR/Half -ISource/OpenEXR/Iex -ISource/OpenEXR/IlmImf -ISource/OpenEXR/IlmThread -ISource/OpenEXR/Imath -ISource/OpenEXR/IexMath -ISource/LibRawLite -ISource/LibRawLite/dcraw -ISource/LibRawLite/internal -ISource/LibRawLite/libraw -ISource/LibRawLite/src -ISource/LibWebP -ISource/LibJXR -ISource/LibJXR/common/include -ISource/LibJXR/image/sys -ISource/LibJXR/jxrgluelib
|
||
|
+INCLUDE = -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit
|
||
|
diff --git a/Source/FreeImage.h b/Source/FreeImage.h
|
||
|
index e8f1da6..235563e 100644
|
||
|
--- a/Source/FreeImage.h
|
||
|
+++ b/Source/FreeImage.h
|
||
|
@@ -155,8 +155,8 @@ typedef uint8_t BYTE;
|
||
|
typedef uint16_t WORD;
|
||
|
typedef uint32_t DWORD;
|
||
|
typedef int32_t LONG;
|
||
|
-typedef int64_t INT64;
|
||
|
-typedef uint64_t UINT64;
|
||
|
+#define INT64 int64_t
|
||
|
+#define UINT64 uint64_t
|
||
|
#else
|
||
|
// MS is not C99 ISO compliant
|
||
|
typedef long BOOL;
|
||
|
diff --git a/Source/FreeImage/J2KHelper.cpp b/Source/FreeImage/J2KHelper.cpp
|
||
|
index 1776c3b..538f1c5 100644
|
||
|
--- a/Source/FreeImage/J2KHelper.cpp
|
||
|
+++ b/Source/FreeImage/J2KHelper.cpp
|
||
|
@@ -21,7 +21,7 @@
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
-#include "../LibOpenJPEG/openjpeg.h"
|
||
|
+#include <openjpeg.h>
|
||
|
#include "J2KHelper.h"
|
||
|
|
||
|
// --------------------------------------------------------------------------
|
||
|
diff --git a/Source/FreeImage/PluginEXR.cpp b/Source/FreeImage/PluginEXR.cpp
|
||
|
index b286430..9bf3ada 100644
|
||
|
--- a/Source/FreeImage/PluginEXR.cpp
|
||
|
+++ b/Source/FreeImage/PluginEXR.cpp
|
||
|
@@ -28,16 +28,16 @@
|
||
|
#pragma warning (disable : 4800) // ImfVersion.h - 'const int' : forcing value to bool 'true' or 'false' (performance warning)
|
||
|
#endif
|
||
|
|
||
|
-#include "../OpenEXR/IlmImf/ImfIO.h"
|
||
|
-#include "../OpenEXR/Iex/Iex.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfOutputFile.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfInputFile.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfRgbaFile.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfChannelList.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfRgba.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfArray.h"
|
||
|
-#include "../OpenEXR/IlmImf/ImfPreviewImage.h"
|
||
|
-#include "../OpenEXR/Half/half.h"
|
||
|
+#include <OpenEXR/ImfIO.h>
|
||
|
+#include <OpenEXR/Iex.h>
|
||
|
+#include <OpenEXR/ImfOutputFile.h>
|
||
|
+#include <OpenEXR/ImfInputFile.h>
|
||
|
+#include <OpenEXR/ImfRgbaFile.h>
|
||
|
+#include <OpenEXR/ImfChannelList.h>
|
||
|
+#include <OpenEXR/ImfRgba.h>
|
||
|
+#include <OpenEXR/ImfArray.h>
|
||
|
+#include <OpenEXR/ImfPreviewImage.h>
|
||
|
+#include <OpenEXR/half.h>
|
||
|
|
||
|
|
||
|
// ==========================================================
|
||
|
diff --git a/Source/FreeImage/PluginG3.cpp b/Source/FreeImage/PluginG3.cpp
|
||
|
index 0a083b4..e2f1241 100644
|
||
|
--- a/Source/FreeImage/PluginG3.cpp
|
||
|
+++ b/Source/FreeImage/PluginG3.cpp
|
||
|
@@ -20,7 +20,7 @@
|
||
|
// Use at your own risk!
|
||
|
// ==========================================================
|
||
|
|
||
|
-#include "../LibTIFF4/tiffiop.h"
|
||
|
+#include <tiffiop.h>
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
diff --git a/Source/FreeImage/PluginJ2K.cpp b/Source/FreeImage/PluginJ2K.cpp
|
||
|
index b8bcfc8..621a903 100644
|
||
|
--- a/Source/FreeImage/PluginJ2K.cpp
|
||
|
+++ b/Source/FreeImage/PluginJ2K.cpp
|
||
|
@@ -21,7 +21,7 @@
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
-#include "../LibOpenJPEG/openjpeg.h"
|
||
|
+#include <openjpeg.h>
|
||
|
#include "J2KHelper.h"
|
||
|
|
||
|
// ==========================================================
|
||
|
diff --git a/Source/FreeImage/PluginJP2.cpp b/Source/FreeImage/PluginJP2.cpp
|
||
|
index 742fe2c..c57f626 100644
|
||
|
--- a/Source/FreeImage/PluginJP2.cpp
|
||
|
+++ b/Source/FreeImage/PluginJP2.cpp
|
||
|
@@ -21,7 +21,7 @@
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
-#include "../LibOpenJPEG/openjpeg.h"
|
||
|
+#include <openjpeg.h>
|
||
|
#include "J2KHelper.h"
|
||
|
|
||
|
// ==========================================================
|
||
|
diff --git a/Source/FreeImage/PluginJPEG.cpp b/Source/FreeImage/PluginJPEG.cpp
|
||
|
index 8db177d..a7de637 100644
|
||
|
--- a/Source/FreeImage/PluginJPEG.cpp
|
||
|
+++ b/Source/FreeImage/PluginJPEG.cpp
|
||
|
@@ -35,9 +35,9 @@ extern "C" {
|
||
|
#undef FAR
|
||
|
#include <setjmp.h>
|
||
|
|
||
|
-#include "../LibJPEG/jinclude.h"
|
||
|
-#include "../LibJPEG/jpeglib.h"
|
||
|
-#include "../LibJPEG/jerror.h"
|
||
|
+#include <stdio.h>
|
||
|
+#include <jpeglib.h>
|
||
|
+#include <jerror.h>
|
||
|
}
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
@@ -484,116 +484,6 @@ marker_is_icc(jpeg_saved_marker_ptr marker) {
|
||
|
return FALSE;
|
||
|
}
|
||
|
|
||
|
-/**
|
||
|
- See if there was an ICC profile in the JPEG file being read;
|
||
|
- if so, reassemble and return the profile data.
|
||
|
-
|
||
|
- TRUE is returned if an ICC profile was found, FALSE if not.
|
||
|
- If TRUE is returned, *icc_data_ptr is set to point to the
|
||
|
- returned data, and *icc_data_len is set to its length.
|
||
|
-
|
||
|
- IMPORTANT: the data at **icc_data_ptr has been allocated with malloc()
|
||
|
- and must be freed by the caller with free() when the caller no longer
|
||
|
- needs it. (Alternatively, we could write this routine to use the
|
||
|
- IJG library's memory allocator, so that the data would be freed implicitly
|
||
|
- at jpeg_finish_decompress() time. But it seems likely that many apps
|
||
|
- will prefer to have the data stick around after decompression finishes.)
|
||
|
-
|
||
|
- NOTE: if the file contains invalid ICC APP2 markers, we just silently
|
||
|
- return FALSE. You might want to issue an error message instead.
|
||
|
-*/
|
||
|
-static BOOL
|
||
|
-jpeg_read_icc_profile(j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned *icc_data_len) {
|
||
|
- jpeg_saved_marker_ptr marker;
|
||
|
- int num_markers = 0;
|
||
|
- int seq_no;
|
||
|
- JOCTET *icc_data;
|
||
|
- unsigned total_length;
|
||
|
-
|
||
|
- const int MAX_SEQ_NO = 255; // sufficient since marker numbers are bytes
|
||
|
- BYTE marker_present[MAX_SEQ_NO+1]; // 1 if marker found
|
||
|
- unsigned data_length[MAX_SEQ_NO+1]; // size of profile data in marker
|
||
|
- unsigned data_offset[MAX_SEQ_NO+1]; // offset for data in marker
|
||
|
-
|
||
|
- *icc_data_ptr = NULL; // avoid confusion if FALSE return
|
||
|
- *icc_data_len = 0;
|
||
|
-
|
||
|
- /**
|
||
|
- this first pass over the saved markers discovers whether there are
|
||
|
- any ICC markers and verifies the consistency of the marker numbering.
|
||
|
- */
|
||
|
-
|
||
|
- memset(marker_present, 0, (MAX_SEQ_NO + 1));
|
||
|
-
|
||
|
- for(marker = cinfo->marker_list; marker != NULL; marker = marker->next) {
|
||
|
- if (marker_is_icc(marker)) {
|
||
|
- if (num_markers == 0) {
|
||
|
- // number of markers
|
||
|
- num_markers = GETJOCTET(marker->data[13]);
|
||
|
- }
|
||
|
- else if (num_markers != GETJOCTET(marker->data[13])) {
|
||
|
- return FALSE; // inconsistent num_markers fields
|
||
|
- }
|
||
|
- // sequence number
|
||
|
- seq_no = GETJOCTET(marker->data[12]);
|
||
|
- if (seq_no <= 0 || seq_no > num_markers) {
|
||
|
- return FALSE; // bogus sequence number
|
||
|
- }
|
||
|
- if (marker_present[seq_no]) {
|
||
|
- return FALSE; // duplicate sequence numbers
|
||
|
- }
|
||
|
- marker_present[seq_no] = 1;
|
||
|
- data_length[seq_no] = marker->data_length - ICC_HEADER_SIZE;
|
||
|
- }
|
||
|
- }
|
||
|
-
|
||
|
- if (num_markers == 0)
|
||
|
- return FALSE;
|
||
|
-
|
||
|
- /**
|
||
|
- check for missing markers, count total space needed,
|
||
|
- compute offset of each marker's part of the data.
|
||
|
- */
|
||
|
-
|
||
|
- total_length = 0;
|
||
|
- for(seq_no = 1; seq_no <= num_markers; seq_no++) {
|
||
|
- if (marker_present[seq_no] == 0) {
|
||
|
- return FALSE; // missing sequence number
|
||
|
- }
|
||
|
- data_offset[seq_no] = total_length;
|
||
|
- total_length += data_length[seq_no];
|
||
|
- }
|
||
|
-
|
||
|
- if (total_length <= 0)
|
||
|
- return FALSE; // found only empty markers ?
|
||
|
-
|
||
|
- // allocate space for assembled data
|
||
|
- icc_data = (JOCTET *) malloc(total_length * sizeof(JOCTET));
|
||
|
- if (icc_data == NULL)
|
||
|
- return FALSE; // out of memory
|
||
|
-
|
||
|
- // and fill it in
|
||
|
- for (marker = cinfo->marker_list; marker != NULL; marker = marker->next) {
|
||
|
- if (marker_is_icc(marker)) {
|
||
|
- JOCTET FAR *src_ptr;
|
||
|
- JOCTET *dst_ptr;
|
||
|
- unsigned length;
|
||
|
- seq_no = GETJOCTET(marker->data[12]);
|
||
|
- dst_ptr = icc_data + data_offset[seq_no];
|
||
|
- src_ptr = marker->data + ICC_HEADER_SIZE;
|
||
|
- length = data_length[seq_no];
|
||
|
- while (length--) {
|
||
|
- *dst_ptr++ = *src_ptr++;
|
||
|
- }
|
||
|
- }
|
||
|
- }
|
||
|
-
|
||
|
- *icc_data_ptr = icc_data;
|
||
|
- *icc_data_len = total_length;
|
||
|
-
|
||
|
- return TRUE;
|
||
|
-}
|
||
|
-
|
||
|
/**
|
||
|
Read JPEG_APPD marker (IPTC or Adobe Photoshop profile)
|
||
|
*/
|
||
|
diff --git a/Source/FreeImage/PluginJXR.cpp b/Source/FreeImage/PluginJXR.cpp
|
||
|
index 85c6ff3..163a93b 100644
|
||
|
--- a/Source/FreeImage/PluginJXR.cpp
|
||
|
+++ b/Source/FreeImage/PluginJXR.cpp
|
||
|
@@ -23,7 +23,7 @@
|
||
|
#include "Utilities.h"
|
||
|
#include "../Metadata/FreeImageTag.h"
|
||
|
|
||
|
-#include "../LibJXR/jxrgluelib/JXRGlue.h"
|
||
|
+#include <JXRGlue.h>
|
||
|
|
||
|
// ==========================================================
|
||
|
// Plugin Interface
|
||
|
diff --git a/Source/FreeImage/PluginPNG.cpp b/Source/FreeImage/PluginPNG.cpp
|
||
|
index 661f160..504fafe 100644
|
||
|
--- a/Source/FreeImage/PluginPNG.cpp
|
||
|
+++ b/Source/FreeImage/PluginPNG.cpp
|
||
|
@@ -40,8 +40,8 @@
|
||
|
|
||
|
// ----------------------------------------------------------
|
||
|
|
||
|
-#include "../ZLib/zlib.h"
|
||
|
-#include "../LibPNG/png.h"
|
||
|
+#include <zlib.h>
|
||
|
+#include <png.h>
|
||
|
|
||
|
// ----------------------------------------------------------
|
||
|
|
||
|
diff --git a/Source/FreeImage/PluginRAW.cpp b/Source/FreeImage/PluginRAW.cpp
|
||
|
index ab0499f..2d3c9fd 100644
|
||
|
--- a/Source/FreeImage/PluginRAW.cpp
|
||
|
+++ b/Source/FreeImage/PluginRAW.cpp
|
||
|
@@ -19,12 +19,16 @@
|
||
|
// Use at your own risk!
|
||
|
// ==========================================================
|
||
|
|
||
|
-#include "../LibRawLite/libraw/libraw.h"
|
||
|
+#include <libraw.h>
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
#include "../Metadata/FreeImageTag.h"
|
||
|
|
||
|
+// What an ugly hack
|
||
|
+#undef INT64
|
||
|
+#undef UINT64
|
||
|
+
|
||
|
// ==========================================================
|
||
|
// Plugin Interface
|
||
|
// ==========================================================
|
||
|
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
|
||
|
index a805319..3e318ba 100644
|
||
|
--- a/Source/FreeImage/PluginTIFF.cpp
|
||
|
+++ b/Source/FreeImage/PluginTIFF.cpp
|
||
|
@@ -37,9 +37,9 @@
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
-#include "../LibTIFF4/tiffiop.h"
|
||
|
+#include <tiffiop.h>
|
||
|
#include "../Metadata/FreeImageTag.h"
|
||
|
-#include "../OpenEXR/Half/half.h"
|
||
|
+#include <OpenEXR/half.h>
|
||
|
|
||
|
#include "FreeImageIO.h"
|
||
|
#include "PSDParser.h"
|
||
|
diff --git a/Source/FreeImage/PluginWebP.cpp b/Source/FreeImage/PluginWebP.cpp
|
||
|
index 7c9f62f..c401447 100644
|
||
|
--- a/Source/FreeImage/PluginWebP.cpp
|
||
|
+++ b/Source/FreeImage/PluginWebP.cpp
|
||
|
@@ -24,9 +24,9 @@
|
||
|
|
||
|
#include "../Metadata/FreeImageTag.h"
|
||
|
|
||
|
-#include "../LibWebP/src/webp/decode.h"
|
||
|
-#include "../LibWebP/src/webp/encode.h"
|
||
|
-#include "../LibWebP/src/webp/mux.h"
|
||
|
+#include <webp/decode.h>
|
||
|
+#include <webp/encode.h>
|
||
|
+#include <webp/mux.h>
|
||
|
|
||
|
// ==========================================================
|
||
|
// Plugin Interface
|
||
|
diff --git a/Source/FreeImage/ZLibInterface.cpp b/Source/FreeImage/ZLibInterface.cpp
|
||
|
index 3ab6d32..0973475 100644
|
||
|
--- a/Source/FreeImage/ZLibInterface.cpp
|
||
|
+++ b/Source/FreeImage/ZLibInterface.cpp
|
||
|
@@ -19,10 +19,9 @@
|
||
|
// Use at your own risk!
|
||
|
// ==========================================================
|
||
|
|
||
|
-#include "../ZLib/zlib.h"
|
||
|
+#include <zlib.h>
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
-#include "../ZLib/zutil.h" /* must be the last header because of error C3163 in VS2008 (_vsnprintf defined in stdio.h) */
|
||
|
|
||
|
/**
|
||
|
Compresses a source buffer into a target buffer, using the ZLib library.
|
||
|
@@ -115,7 +114,8 @@ FreeImage_ZLibGZip(BYTE *target, DWORD target_size, BYTE *source, DWORD source_s
|
||
|
return 0;
|
||
|
case Z_OK: {
|
||
|
// patch header, setup crc and length (stolen from mod_trace_output)
|
||
|
- BYTE *p = target + 8; *p++ = 2; *p = OS_CODE; // xflags, os_code
|
||
|
+ // OS_CODE is 0x03 on unix it seems, not sure how important this is
|
||
|
+ BYTE *p = target + 8; *p++ = 2; *p = 0x03; // xflags, os_code
|
||
|
crc = crc32(crc, source, source_size);
|
||
|
memcpy(target + 4 + dest_len, &crc, 4);
|
||
|
memcpy(target + 8 + dest_len, &source_size, 4);
|
||
|
diff --git a/Source/FreeImageToolkit/JPEGTransform.cpp b/Source/FreeImageToolkit/JPEGTransform.cpp
|
||
|
index 6f9ba8e..836bc90 100644
|
||
|
--- a/Source/FreeImageToolkit/JPEGTransform.cpp
|
||
|
+++ b/Source/FreeImageToolkit/JPEGTransform.cpp
|
||
|
@@ -26,10 +26,10 @@ extern "C" {
|
||
|
#undef FAR
|
||
|
#include <setjmp.h>
|
||
|
|
||
|
-#include "../LibJPEG/jinclude.h"
|
||
|
-#include "../LibJPEG/jpeglib.h"
|
||
|
-#include "../LibJPEG/jerror.h"
|
||
|
-#include "../LibJPEG/transupp.h"
|
||
|
+#include <stdio.h>
|
||
|
+#include <jpeglib.h>
|
||
|
+#include <jerror.h>
|
||
|
+#include <transupp.h>
|
||
|
}
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
diff --git a/Source/Metadata/XTIFF.cpp b/Source/Metadata/XTIFF.cpp
|
||
|
index d5be902..b6ecd11 100644
|
||
|
--- a/Source/Metadata/XTIFF.cpp
|
||
|
+++ b/Source/Metadata/XTIFF.cpp
|
||
|
@@ -29,7 +29,7 @@
|
||
|
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters
|
||
|
#endif
|
||
|
|
||
|
-#include "../LibTIFF4/tiffiop.h"
|
||
|
+#include <tiffiop.h>
|
||
|
|
||
|
#include "FreeImage.h"
|
||
|
#include "Utilities.h"
|
||
|
diff --git a/fipMakefile.srcs b/fipMakefile.srcs
|
||
|
index 15ec099..72ba4fb 100644
|
||
|
--- a/fipMakefile.srcs
|
||
|
+++ b/fipMakefile.srcs
|
||
|
@@ -1,4 +1,4 @@
|
||
|
VER_MAJOR = 3
|
||
|
VER_MINOR = 19.0
|
||
|
-SRCS = ./Source/FreeImage/BitmapAccess.cpp ./Source/FreeImage/ColorLookup.cpp ./Source/FreeImage/ConversionRGBA16.cpp ./Source/FreeImage/ConversionRGBAF.cpp ./Source/FreeImage/FreeImage.cpp ./Source/FreeImage/FreeImageC.c ./Source/FreeImage/FreeImageIO.cpp ./Source/FreeImage/GetType.cpp ./Source/FreeImage/LFPQuantizer.cpp ./Source/FreeImage/MemoryIO.cpp ./Source/FreeImage/PixelAccess.cpp ./Source/FreeImage/J2KHelper.cpp ./Source/FreeImage/MNGHelper.cpp ./Source/FreeImage/Plugin.cpp ./Source/FreeImage/PluginBMP.cpp ./Source/FreeImage/PluginCUT.cpp ./Source/FreeImage/PluginDDS.cpp ./Source/FreeImage/PluginEXR.cpp ./Source/FreeImage/PluginG3.cpp ./Source/FreeImage/PluginGIF.cpp ./Source/FreeImage/PluginHDR.cpp ./Source/FreeImage/PluginICO.cpp ./Source/FreeImage/PluginIFF.cpp ./Source/FreeImage/PluginJ2K.cpp ./Source/FreeImage/PluginJNG.cpp ./Source/FreeImage/PluginJP2.cpp ./Source/FreeImage/PluginJPEG.cpp ./Source/FreeImage/PluginJXR.cpp ./Source/FreeImage/PluginKOALA.cpp ./Source/FreeImage/PluginMNG.cpp ./Source/FreeImage/PluginPCD.cpp ./Source/FreeImage/PluginPCX.cpp ./Source/FreeImage/PluginPFM.cpp ./Source/FreeImage/PluginPICT.cpp ./Source/FreeImage/PluginPNG.cpp ./Source/FreeImage/PluginPNM.cpp ./Source/FreeImage/PluginPSD.cpp ./Source/FreeImage/PluginRAS.cpp ./Source/FreeImage/PluginRAW.cpp ./Source/FreeImage/PluginSGI.cpp ./Source/FreeImage/PluginTARGA.cpp ./Source/FreeImage/PluginTIFF.cpp ./Source/FreeImage/PluginWBMP.cpp ./Source/FreeImage/PluginWebP.cpp ./Source/FreeImage/PluginXBM.cpp ./Source/FreeImage/PluginXPM.cpp ./Source/FreeImage/PSDParser.cpp ./Source/FreeImage/TIFFLogLuv.cpp ./Source/FreeImage/Conversion.cpp ./Source/FreeImage/Conversion16_555.cpp ./Source/FreeImage/Conversion16_565.cpp ./Source/FreeImage/Conversion24.cpp ./Source/FreeImage/Conversion32.cpp ./Source/FreeImage/Conversion4.cpp ./Source/FreeImage/Conversion8.cpp ./Source/FreeImage/ConversionFloat.cpp ./Source/FreeImage/ConversionRGB16.cpp ./Source/FreeImage/ConversionRGBF.cpp ./Source/FreeImage/ConversionType.cpp ./Source/FreeImage/ConversionUINT16.cpp ./Source/FreeImage/Halftoning.cpp ./Source/FreeImage/tmoColorConvert.cpp ./Source/FreeImage/tmoDrago03.cpp ./Source/FreeImage/tmoFattal02.cpp ./Source/FreeImage/tmoReinhard05.cpp ./Source/FreeImage/ToneMapping.cpp ./Source/FreeImage/NNQuantizer.cpp ./Source/FreeImage/WuQuantizer.cpp ./Source/FreeImage/CacheFile.cpp ./Source/FreeImage/MultiPage.cpp ./Source/FreeImage/ZLibInterface.cpp ./Source/Metadata/Exif.cpp ./Source/Metadata/FIRational.cpp ./Source/Metadata/FreeImageTag.cpp ./Source/Metadata/IPTC.cpp ./Source/Metadata/TagConversion.cpp ./Source/Metadata/TagLib.cpp ./Source/Metadata/XTIFF.cpp ./Source/FreeImageToolkit/Background.cpp ./Source/FreeImageToolkit/BSplineRotate.cpp ./Source/FreeImageToolkit/Channels.cpp ./Source/FreeImageToolkit/ClassicRotate.cpp ./Source/FreeImageToolkit/Colors.cpp ./Source/FreeImageToolkit/CopyPaste.cpp ./Source/FreeImageToolkit/Display.cpp ./Source/FreeImageToolkit/Flip.cpp ./Source/FreeImageToolkit/JPEGTransform.cpp ./Source/FreeImageToolkit/MultigridPoissonSolver.cpp ./Source/FreeImageToolkit/Rescale.cpp ./Source/FreeImageToolkit/Resize.cpp Source/LibJPEG/jaricom.c Source/LibJPEG/jcapimin.c Source/LibJPEG/jcapistd.c Source/LibJPEG/jcarith.c Source/LibJPEG/jccoefct.c Source/LibJPEG/jccolor.c Source/LibJPEG/jcdctmgr.c Source/LibJPEG/jchuff.c Source/LibJPEG/jcinit.c Source/LibJPEG/jcmainct.c Source/LibJPEG/jcmarker.c Source/LibJPEG/jcmaster.c Source/LibJPEG/jcomapi.c Source/LibJPEG/jcparam.c Source/LibJPEG/jcprepct.c Source/LibJPEG/jcsample.c Source/LibJPEG/jctrans.c Source/LibJPEG/jdapimin.c Source/LibJPEG/jdapistd.c Source/LibJPEG/jdarith.c Source/LibJPEG/jdatadst.c Source/LibJPEG/jdatasrc.c Source/LibJPEG/jdcoefct.c Source/LibJPEG/jdcolor.c Source/LibJPEG/jddctmgr.c Source/LibJPEG/jdhuff.c Source/LibJPEG/jdinput.c Source/LibJPEG/jdmainct.c Source/LibJPEG/jdmarker.c Source/LibJPEG/jdmaster.c Source/LibJPEG/jdmerge.c Source/LibJPEG/jdpostct.c Source/LibJPEG/jdsample.c Source/LibJPEG/jdtrans.c Source/LibJPEG/jerror.c Source/LibJPEG/jfdctflt.c Source/LibJPEG/jf
|
||
|
-INCLUDE = -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -ISource/LibJPEG -ISource/LibPNG -ISource/LibTIFF4 -ISource/ZLib -ISource/LibOpenJPEG -ISource/OpenEXR -ISource/OpenEXR/Half -ISource/OpenEXR/Iex -ISource/OpenEXR/IlmImf -ISource/OpenEXR/IlmThread -ISource/OpenEXR/Imath -ISource/OpenEXR/IexMath -ISource/LibRawLite -ISource/LibRawLite/dcraw -ISource/LibRawLite/internal -ISource/LibRawLite/libraw -ISource/LibRawLite/src -ISource/LibWebP -ISource/LibJXR -ISource/LibJXR/common/include -ISource/LibJXR/image/sys -ISource/LibJXR/jxrgluelib -IWrapper/FreeImagePlus
|
||
|
+SRCS = ./Source/FreeImage/BitmapAccess.cpp ./Source/FreeImage/ColorLookup.cpp ./Source/FreeImage/ConversionRGBA16.cpp ./Source/FreeImage/ConversionRGBAF.cpp ./Source/FreeImage/FreeImage.cpp ./Source/FreeImage/FreeImageC.c ./Source/FreeImage/FreeImageIO.cpp ./Source/FreeImage/GetType.cpp ./Source/FreeImage/LFPQuantizer.cpp ./Source/FreeImage/MemoryIO.cpp ./Source/FreeImage/PixelAccess.cpp ./Source/FreeImage/J2KHelper.cpp ./Source/FreeImage/MNGHelper.cpp ./Source/FreeImage/Plugin.cpp ./Source/FreeImage/PluginBMP.cpp ./Source/FreeImage/PluginCUT.cpp ./Source/FreeImage/PluginDDS.cpp ./Source/FreeImage/PluginEXR.cpp ./Source/FreeImage/PluginG3.cpp ./Source/FreeImage/PluginGIF.cpp ./Source/FreeImage/PluginHDR.cpp ./Source/FreeImage/PluginICO.cpp ./Source/FreeImage/PluginIFF.cpp ./Source/FreeImage/PluginJ2K.cpp ./Source/FreeImage/PluginJNG.cpp ./Source/FreeImage/PluginJP2.cpp ./Source/FreeImage/PluginJPEG.cpp ./Source/FreeImage/PluginJXR.cpp ./Source/FreeImage/PluginKOALA.cpp ./Source/FreeImage/PluginMNG.cpp ./Source/FreeImage/PluginPCD.cpp ./Source/FreeImage/PluginPCX.cpp ./Source/FreeImage/PluginPFM.cpp ./Source/FreeImage/PluginPICT.cpp ./Source/FreeImage/PluginPNG.cpp ./Source/FreeImage/PluginPNM.cpp ./Source/FreeImage/PluginPSD.cpp ./Source/FreeImage/PluginRAS.cpp ./Source/FreeImage/PluginRAW.cpp ./Source/FreeImage/PluginSGI.cpp ./Source/FreeImage/PluginTARGA.cpp ./Source/FreeImage/PluginTIFF.cpp ./Source/FreeImage/PluginWBMP.cpp ./Source/FreeImage/PluginWebP.cpp ./Source/FreeImage/PluginXBM.cpp ./Source/FreeImage/PluginXPM.cpp ./Source/FreeImage/PSDParser.cpp ./Source/FreeImage/TIFFLogLuv.cpp ./Source/FreeImage/Conversion.cpp ./Source/FreeImage/Conversion16_555.cpp ./Source/FreeImage/Conversion16_565.cpp ./Source/FreeImage/Conversion24.cpp ./Source/FreeImage/Conversion32.cpp ./Source/FreeImage/Conversion4.cpp ./Source/FreeImage/Conversion8.cpp ./Source/FreeImage/ConversionFloat.cpp ./Source/FreeImage/ConversionRGB16.cpp ./Source/FreeImage/ConversionRGBF.cpp ./Source/FreeImage/ConversionType.cpp ./Source/FreeImage/ConversionUINT16.cpp ./Source/FreeImage/Halftoning.cpp ./Source/FreeImage/tmoColorConvert.cpp ./Source/FreeImage/tmoDrago03.cpp ./Source/FreeImage/tmoFattal02.cpp ./Source/FreeImage/tmoReinhard05.cpp ./Source/FreeImage/ToneMapping.cpp ./Source/FreeImage/NNQuantizer.cpp ./Source/FreeImage/WuQuantizer.cpp ./Source/FreeImage/CacheFile.cpp ./Source/FreeImage/MultiPage.cpp ./Source/FreeImage/ZLibInterface.cpp ./Source/Metadata/Exif.cpp ./Source/Metadata/FIRational.cpp ./Source/Metadata/FreeImageTag.cpp ./Source/Metadata/IPTC.cpp ./Source/Metadata/TagConversion.cpp ./Source/Metadata/TagLib.cpp ./Source/Metadata/XTIFF.cpp ./Source/FreeImageToolkit/Background.cpp ./Source/FreeImageToolkit/BSplineRotate.cpp ./Source/FreeImageToolkit/Channels.cpp ./Source/FreeImageToolkit/ClassicRotate.cpp ./Source/FreeImageToolkit/Colors.cpp ./Source/FreeImageToolkit/CopyPaste.cpp ./Source/FreeImageToolkit/Display.cpp ./Source/FreeImageToolkit/Flip.cpp ./Source/FreeImageToolkit/JPEGTransform.cpp ./Source/FreeImageToolkit/MultigridPoissonSolver.cpp ./Source/FreeImageToolkit/Rescale.cpp ./Source/FreeImageToolkit/Resize.cpp Wrapper/FreeImagePlus/src/fipImage.cpp Wrapper/FreeImagePlus/src/fipMemoryIO.cpp Wrapper/FreeImagePlus/src/fipMetadataFind.cpp Wrapper/FreeImagePlus/src/fipMultiPage.cpp Wrapper/FreeImagePlus/src/fipTag.cpp Wrapper/FreeImagePlus/src/fipWinImage.cpp Wrapper/FreeImagePlus/src/FreeImagePlus.cpp
|
||
|
+INCLUDE = -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -IWrapper/FreeImagePlus
|