├── .github └── workflows │ └── cmake.yml ├── .gitignore ├── CMakeLists.txt ├── Dist └── delete.me ├── Examples ├── Generic │ ├── BatchLoad.cpp │ ├── CloneMultiPage.cpp │ ├── CreateAlpha.cpp │ ├── FIFImportExport.cpp │ ├── FIIO_Mem.cpp │ ├── FIIO_Mem.h │ ├── LoadFromHandle.cpp │ ├── LoadFromMemory-classified.cpp │ ├── LoadFromMemory.cpp │ └── ShowMetadata.cpp ├── Linux │ ├── Makefile │ ├── linux-gtk.c │ └── linux-svgalib.c ├── OpenGL │ └── TextureManager │ │ ├── TextureManager.cpp │ │ ├── TextureManager.h │ │ └── readme.txt └── Plugin │ ├── PluginCradle.cpp │ └── PluginCradle.h ├── FreeImage.2017.sln ├── FreeImage.2017.vcxproj ├── FreeImage.2017.vcxproj.filters ├── FreeImage.rc ├── Makefile ├── Makefile.android ├── Makefile.cygwin ├── Makefile.fip ├── Makefile.gnu ├── Makefile.ios ├── Makefile.iphone ├── Makefile.mingw ├── Makefile.osx ├── Makefile.solaris ├── Makefile.srcs ├── README.iphone ├── README.linux ├── README.md ├── README.minGW ├── README.osx ├── README.solaris ├── Source ├── CacheFile.h ├── FreeImage.h ├── FreeImage │ ├── BitmapAccess.cpp │ ├── CacheFile.cpp │ ├── ColorLookup.cpp │ ├── Conversion.cpp │ ├── Conversion16_555.cpp │ ├── Conversion16_565.cpp │ ├── Conversion24.cpp │ ├── Conversion32.cpp │ ├── Conversion4.cpp │ ├── Conversion8.cpp │ ├── ConversionFloat.cpp │ ├── ConversionRGB16.cpp │ ├── ConversionRGBA16.cpp │ ├── ConversionRGBAF.cpp │ ├── ConversionRGBF.cpp │ ├── ConversionType.cpp │ ├── ConversionUINT16.cpp │ ├── FreeImage.cpp │ ├── FreeImageC.c │ ├── FreeImageIO.cpp │ ├── GetType.cpp │ ├── Halftoning.cpp │ ├── J2KHelper.cpp │ ├── J2KHelper.h │ ├── LFPQuantizer.cpp │ ├── MNGHelper.cpp │ ├── MemoryIO.cpp │ ├── MultiPage.cpp │ ├── NNQuantizer.cpp │ ├── PSDParser.cpp │ ├── PSDParser.h │ ├── PixelAccess.cpp │ ├── Plugin.cpp │ ├── PluginBMP.cpp │ ├── PluginCUT.cpp │ ├── PluginDDS.cpp │ ├── PluginEXR.cpp │ ├── PluginG3.cpp │ ├── PluginGIF.cpp │ ├── PluginHDR.cpp │ ├── PluginICO.cpp │ ├── PluginIFF.cpp │ ├── PluginJ2K.cpp │ ├── PluginJNG.cpp │ ├── PluginJP2.cpp │ ├── PluginJPEG.cpp │ ├── PluginJXR.cpp │ ├── PluginKOALA.cpp │ ├── PluginMNG.cpp │ ├── PluginPCD.cpp │ ├── PluginPCX.cpp │ ├── PluginPFM.cpp │ ├── PluginPICT.cpp │ ├── PluginPNG.cpp │ ├── PluginPNM.cpp │ ├── PluginPSD.cpp │ ├── PluginRAS.cpp │ ├── PluginRAW.cpp │ ├── PluginSGI.cpp │ ├── PluginTARGA.cpp │ ├── PluginTIFF.cpp │ ├── PluginWBMP.cpp │ ├── PluginWebP.cpp │ ├── PluginXBM.cpp │ ├── PluginXPM.cpp │ ├── TIFFLogLuv.cpp │ ├── ToneMapping.cpp │ ├── WuQuantizer.cpp │ ├── ZLibInterface.cpp │ ├── tmoColorConvert.cpp │ ├── tmoDrago03.cpp │ ├── tmoFattal02.cpp │ └── tmoReinhard05.cpp ├── FreeImageIO.h ├── FreeImageLib │ ├── FreeImageLib.2017.vcxproj │ └── FreeImageLib.2017.vcxproj.filters ├── FreeImageToolkit │ ├── BSplineRotate.cpp │ ├── Background.cpp │ ├── Channels.cpp │ ├── ClassicRotate.cpp │ ├── Colors.cpp │ ├── CopyPaste.cpp │ ├── Display.cpp │ ├── Filters.h │ ├── Flip.cpp │ ├── JPEGTransform.cpp │ ├── MultigridPoissonSolver.cpp │ ├── Rescale.cpp │ ├── Resize.cpp │ └── Resize.h ├── LibJPEG │ ├── LibJPEG.2017.vcxproj │ ├── LibJPEG.2017.vcxproj.filters │ ├── README │ ├── cderror.h │ ├── cdjpeg.c │ ├── cdjpeg.h │ ├── change.log │ ├── cjpeg.c │ ├── ckconfig.c │ ├── coderules.txt │ ├── djpeg.c │ ├── example.c │ ├── filelist.txt │ ├── install.txt │ ├── jaricom.c │ ├── jcapimin.c │ ├── jcapistd.c │ ├── jcarith.c │ ├── jccoefct.c │ ├── jccolor.c │ ├── jcdctmgr.c │ ├── jchuff.c │ ├── jcinit.c │ ├── jcmainct.c │ ├── jcmarker.c │ ├── jcmaster.c │ ├── jcomapi.c │ ├── jconfig.h │ ├── jconfig.txt │ ├── jcparam.c │ ├── jcprepct.c │ ├── jcsample.c │ ├── jctrans.c │ ├── jdapimin.c │ ├── jdapistd.c │ ├── jdarith.c │ ├── jdatadst.c │ ├── jdatasrc.c │ ├── jdcoefct.c │ ├── jdcolor.c │ ├── jdct.h │ ├── jddctmgr.c │ ├── jdhuff.c │ ├── jdinput.c │ ├── jdmainct.c │ ├── jdmarker.c │ ├── jdmaster.c │ ├── jdmerge.c │ ├── jdpostct.c │ ├── jdsample.c │ ├── jdtrans.c │ ├── jerror.c │ ├── jerror.h │ ├── jfdctflt.c │ ├── jfdctfst.c │ ├── jfdctint.c │ ├── jidctflt.c │ ├── jidctfst.c │ ├── jidctint.c │ ├── jinclude.h │ ├── jmemansi.c │ ├── jmemdos.c │ ├── jmemmac.c │ ├── jmemmgr.c │ ├── jmemname.c │ ├── jmemnobs.c │ ├── jmemsys.h │ ├── jmorecfg.h │ ├── jpegint.h │ ├── jpeglib.h │ ├── jpegtran.c │ ├── jquant1.c │ ├── jquant2.c │ ├── jutils.c │ ├── jversion.h │ ├── libjpeg.txt │ ├── rdbmp.c │ ├── rdcolmap.c │ ├── rdgif.c │ ├── rdjpgcom.c │ ├── rdppm.c │ ├── rdrle.c │ ├── rdswitch.c │ ├── rdtarga.c │ ├── structure.txt │ ├── transupp.c │ ├── transupp.h │ ├── usage.txt │ ├── wizard.txt │ ├── wrbmp.c │ ├── wrgif.c │ ├── wrjpgcom.c │ ├── wrppm.c │ ├── wrrle.c │ └── wrtarga.c ├── LibJXR │ ├── LICENCE │ ├── LibJXR.2017.vcxproj │ ├── LibJXR.2017.vcxproj.filters │ ├── README │ ├── common │ │ └── include │ │ │ ├── guiddef.h │ │ │ ├── wmsal.h │ │ │ ├── wmspecstring.h │ │ │ ├── wmspecstrings_adt.h │ │ │ ├── wmspecstrings_strict.h │ │ │ └── wmspecstrings_undef.h │ ├── image │ │ ├── decode │ │ │ ├── JXRTranscode.c │ │ │ ├── decode.c │ │ │ ├── decode.h │ │ │ ├── postprocess.c │ │ │ ├── segdec.c │ │ │ ├── strInvTransform.c │ │ │ ├── strPredQuantDec.c │ │ │ ├── strdec.c │ │ │ └── strdec_x86.c │ │ ├── encode │ │ │ ├── encode.c │ │ │ ├── encode.h │ │ │ ├── segenc.c │ │ │ ├── strFwdTransform.c │ │ │ ├── strPredQuantEnc.c │ │ │ ├── strenc.c │ │ │ └── strenc_x86.c │ │ ├── sys │ │ │ ├── adapthuff.c │ │ │ ├── ansi.h │ │ │ ├── common.h │ │ │ ├── image.c │ │ │ ├── perfTimer.h │ │ │ ├── perfTimerANSI.c │ │ │ ├── strPredQuant.c │ │ │ ├── strTransform.c │ │ │ ├── strTransform.h │ │ │ ├── strcodec.c │ │ │ ├── strcodec.h │ │ │ ├── windowsmediaphoto.h │ │ │ └── xplatform_image.h │ │ └── x86 │ │ │ └── x86.h │ └── jxrgluelib │ │ ├── JXRGlue.c │ │ ├── JXRGlue.h │ │ ├── JXRGlueJxr.c │ │ ├── JXRGluePFC.c │ │ ├── JXRMeta.c │ │ └── JXRMeta.h ├── LibOpenJPEG │ ├── AUTHORS │ ├── INSTALL │ ├── LICENSE │ ├── LibOpenJPEG.2017.vcxproj │ ├── LibOpenJPEG.2017.vcxproj.filters │ ├── NEWS │ ├── README │ ├── THANKS │ ├── bio.c │ ├── bio.h │ ├── cidx_manager.c │ ├── cidx_manager.h │ ├── cio.c │ ├── cio.h │ ├── dwt.c │ ├── dwt.h │ ├── event.c │ ├── event.h │ ├── function_list.c │ ├── function_list.h │ ├── image.c │ ├── image.h │ ├── indexbox_manager.h │ ├── invert.c │ ├── invert.h │ ├── j2k.c │ ├── j2k.h │ ├── jp2.c │ ├── jp2.h │ ├── mct.c │ ├── mct.h │ ├── mqc.c │ ├── mqc.h │ ├── openjpeg.c │ ├── openjpeg.h │ ├── opj_clock.c │ ├── opj_clock.h │ ├── opj_codec.h │ ├── opj_config.h │ ├── opj_config_private.h │ ├── opj_includes.h │ ├── opj_intmath.h │ ├── opj_inttypes.h │ ├── opj_malloc.h │ ├── opj_stdint.h │ ├── phix_manager.c │ ├── pi.c │ ├── pi.h │ ├── ppix_manager.c │ ├── raw.c │ ├── raw.h │ ├── t1.c │ ├── t1.h │ ├── t1_generate_luts.c │ ├── t1_luts.h │ ├── t2.c │ ├── t2.h │ ├── tcd.c │ ├── tcd.h │ ├── tgt.c │ ├── tgt.h │ ├── thix_manager.c │ └── tpix_manager.c ├── LibPNG │ ├── ANNOUNCE │ ├── AUTHORS │ ├── CHANGES │ ├── CMakeLists.txt │ ├── INSTALL │ ├── LICENSE │ ├── LibPNG.2017.vcxproj │ ├── LibPNG.2017.vcxproj.filters │ ├── README │ ├── TODO │ ├── TRADEMARK │ ├── configure │ ├── example.c │ ├── libpng-manual.txt │ ├── libpng.3 │ ├── libpngpf.3 │ ├── png.5 │ ├── png.c │ ├── png.h │ ├── pngconf.h │ ├── pngdebug.h │ ├── pngerror.c │ ├── pngget.c │ ├── pnginfo.h │ ├── pnglibconf.h │ ├── pngmem.c │ ├── pngpread.c │ ├── pngpriv.h │ ├── pngread.c │ ├── pngrio.c │ ├── pngrtran.c │ ├── pngrutil.c │ ├── pngset.c │ ├── pngstruct.h │ ├── pngtest.c │ ├── pngtrans.c │ ├── pngwio.c │ ├── pngwrite.c │ ├── pngwtran.c │ └── pngwutil.c ├── LibRawLite │ ├── COPYRIGHT │ ├── Changelog.txt │ ├── DEVELOPER-NOTES │ ├── LICENSE.CDDL │ ├── LICENSE.LGPL │ ├── LibRawLite.2017.vcxproj │ ├── LibRawLite.2017.vcxproj.filters │ ├── README │ ├── README.DNGSDK.txt │ ├── README.GoPro.txt │ ├── README.RawSpeed.txt │ ├── README.cmake │ ├── README.demosaic-packs │ ├── README.md │ ├── internal │ │ ├── dcraw_defs.h │ │ ├── dcraw_fileio_defs.h │ │ ├── defines.h │ │ ├── dmp_include.h │ │ ├── libraw_cameraids.h │ │ ├── libraw_cxx_defs.h │ │ ├── libraw_internal_funcs.h │ │ ├── var_defines.h │ │ └── x3f_tools.h │ ├── libraw │ │ ├── libraw.h │ │ ├── libraw_alloc.h │ │ ├── libraw_const.h │ │ ├── libraw_datastream.h │ │ ├── libraw_internal.h │ │ ├── libraw_types.h │ │ └── libraw_version.h │ └── src │ │ ├── decoders │ │ ├── canon_600.cpp │ │ ├── crx.cpp │ │ ├── decoders_dcraw.cpp │ │ ├── decoders_libraw.cpp │ │ ├── decoders_libraw_dcrdefs.cpp │ │ ├── dng.cpp │ │ ├── fp_dng.cpp │ │ ├── fuji_compressed.cpp │ │ ├── generic.cpp │ │ ├── kodak_decoders.cpp │ │ ├── load_mfbacks.cpp │ │ ├── smal.cpp │ │ ├── unpack.cpp │ │ └── unpack_thumb.cpp │ │ ├── demosaic │ │ ├── aahd_demosaic.cpp │ │ ├── ahd_demosaic.cpp │ │ ├── dcb_demosaic.cpp │ │ ├── dht_demosaic.cpp │ │ ├── misc_demosaic.cpp │ │ └── xtrans_demosaic.cpp │ │ ├── integration │ │ ├── dngsdk_glue.cpp │ │ └── rawspeed_glue.cpp │ │ ├── libraw_c_api.cpp │ │ ├── libraw_datastream.cpp │ │ ├── metadata │ │ ├── adobepano.cpp │ │ ├── canon.cpp │ │ ├── ciff.cpp │ │ ├── cr3_parser.cpp │ │ ├── epson.cpp │ │ ├── exif_gps.cpp │ │ ├── fuji.cpp │ │ ├── hasselblad_model.cpp │ │ ├── identify.cpp │ │ ├── identify_tools.cpp │ │ ├── kodak.cpp │ │ ├── leica.cpp │ │ ├── makernotes.cpp │ │ ├── mediumformat.cpp │ │ ├── minolta.cpp │ │ ├── misc_parsers.cpp │ │ ├── nikon.cpp │ │ ├── normalize_model.cpp │ │ ├── olympus.cpp │ │ ├── p1.cpp │ │ ├── pentax.cpp │ │ ├── samsung.cpp │ │ ├── sony.cpp │ │ └── tiff.cpp │ │ ├── postprocessing │ │ ├── aspect_ratio.cpp │ │ ├── dcraw_process.cpp │ │ ├── mem_image.cpp │ │ ├── postprocessing_aux.cpp │ │ ├── postprocessing_ph.cpp │ │ ├── postprocessing_utils.cpp │ │ └── postprocessing_utils_dcrdefs.cpp │ │ ├── preprocessing │ │ ├── ext_preprocess.cpp │ │ ├── preprocessing_ph.cpp │ │ ├── raw2image.cpp │ │ └── subtract_black.cpp │ │ ├── tables │ │ ├── cameralist.cpp │ │ ├── colorconst.cpp │ │ ├── colordata.cpp │ │ └── wblists.cpp │ │ ├── utils │ │ ├── curves.cpp │ │ ├── decoder_info.cpp │ │ ├── init_close_utils.cpp │ │ ├── open.cpp │ │ ├── phaseone_processing.cpp │ │ ├── read_utils.cpp │ │ ├── thumb_utils.cpp │ │ ├── utils_dcraw.cpp │ │ └── utils_libraw.cpp │ │ ├── write │ │ ├── apply_profile.cpp │ │ ├── file_write.cpp │ │ ├── tiff_writer.cpp │ │ └── write_ph.cpp │ │ └── x3f │ │ ├── x3f_parse_process.cpp │ │ └── x3f_utils_patched.cpp ├── LibTIFF4 │ ├── CMakeLists.txt │ ├── COPYRIGHT │ ├── ChangeLog │ ├── LibTIFF4.2017.vcxproj │ ├── LibTIFF4.2017.vcxproj.filters │ ├── Makefile.am │ ├── RELEASE-DATE │ ├── libport.h │ ├── libtiff.def │ ├── libtiff.map │ ├── libtiffxx.map │ ├── mkg3states.c │ ├── mkspans.c │ ├── t4.h │ ├── tif_aux.c │ ├── tif_close.c │ ├── tif_codec.c │ ├── tif_color.c │ ├── tif_compress.c │ ├── tif_config.h │ ├── tif_config.h.cmake.in │ ├── tif_config.h.in │ ├── tif_config.vc.h │ ├── tif_config.wince.h │ ├── tif_dir.c │ ├── tif_dir.h │ ├── tif_dirinfo.c │ ├── tif_dirread.c │ ├── tif_dirwrite.c │ ├── tif_dumpmode.c │ ├── tif_error.c │ ├── tif_extension.c │ ├── tif_fax3.c │ ├── tif_fax3.h │ ├── tif_fax3sm.c │ ├── tif_flush.c │ ├── tif_getimage.c │ ├── tif_hash_set.c │ ├── tif_hash_set.h │ ├── tif_jbig.c │ ├── tif_jpeg.c │ ├── tif_jpeg_12.c │ ├── tif_lerc.c │ ├── tif_luv.c │ ├── tif_lzma.c │ ├── tif_lzw.c │ ├── tif_next.c │ ├── tif_ojpeg.c │ ├── tif_open.c │ ├── tif_packbits.c │ ├── tif_pixarlog.c │ ├── tif_predict.c │ ├── tif_predict.h │ ├── tif_print.c │ ├── tif_read.c │ ├── tif_stream.cxx │ ├── tif_strip.c │ ├── tif_swab.c │ ├── tif_thunder.c │ ├── tif_tile.c │ ├── tif_unix.c │ ├── tif_version.c │ ├── tif_warning.c │ ├── tif_webp.c │ ├── tif_win32.c │ ├── tif_wince.c │ ├── tif_write.c │ ├── tif_zip.c │ ├── tif_zstd.c │ ├── tiff.h │ ├── tiffconf.h │ ├── tiffconf.h.cmake.in │ ├── tiffconf.h.in │ ├── tiffconf.vc.h │ ├── tiffconf.wince.h │ ├── tiffio.h │ ├── tiffio.hxx │ ├── tiffiop.h │ ├── tiffvers.h │ ├── tiffvers.h.cmake.in │ ├── tiffvers.h.in │ └── uvcode.h ├── LibWebP │ ├── AUTHORS │ ├── COPYING │ ├── ChangeLog │ ├── LibWebP.2017.vcxproj │ ├── LibWebP.2017.vcxproj.filters │ ├── NEWS │ ├── PATENTS │ ├── README │ ├── README.mux │ └── src │ │ ├── dec │ │ ├── alpha_dec.c │ │ ├── alphai_dec.h │ │ ├── buffer_dec.c │ │ ├── common_dec.h │ │ ├── frame_dec.c │ │ ├── idec_dec.c │ │ ├── io_dec.c │ │ ├── quant_dec.c │ │ ├── tree_dec.c │ │ ├── vp8_dec.c │ │ ├── vp8_dec.h │ │ ├── vp8i_dec.h │ │ ├── vp8l_dec.c │ │ ├── vp8li_dec.h │ │ ├── webp_dec.c │ │ └── webpi_dec.h │ │ ├── demux │ │ ├── anim_decode.c │ │ └── demux.c │ │ ├── dsp │ │ ├── alpha_processing.c │ │ ├── alpha_processing_mips_dsp_r2.c │ │ ├── alpha_processing_neon.c │ │ ├── alpha_processing_sse2.c │ │ ├── alpha_processing_sse41.c │ │ ├── common_sse2.h │ │ ├── common_sse41.h │ │ ├── cost.c │ │ ├── cost_mips32.c │ │ ├── cost_mips_dsp_r2.c │ │ ├── cost_neon.c │ │ ├── cost_sse2.c │ │ ├── cpu.c │ │ ├── dec.c │ │ ├── dec_clip_tables.c │ │ ├── dec_mips32.c │ │ ├── dec_mips_dsp_r2.c │ │ ├── dec_msa.c │ │ ├── dec_neon.c │ │ ├── dec_sse2.c │ │ ├── dec_sse41.c │ │ ├── dsp.h │ │ ├── enc.c │ │ ├── enc_avx2.c │ │ ├── enc_mips32.c │ │ ├── enc_mips_dsp_r2.c │ │ ├── enc_msa.c │ │ ├── enc_neon.c │ │ ├── enc_sse2.c │ │ ├── enc_sse41.c │ │ ├── filters.c │ │ ├── filters_mips_dsp_r2.c │ │ ├── filters_msa.c │ │ ├── filters_neon.c │ │ ├── filters_sse2.c │ │ ├── lossless.c │ │ ├── lossless.h │ │ ├── lossless_common.h │ │ ├── lossless_enc.c │ │ ├── lossless_enc_mips32.c │ │ ├── lossless_enc_mips_dsp_r2.c │ │ ├── lossless_enc_msa.c │ │ ├── lossless_enc_neon.c │ │ ├── lossless_enc_sse2.c │ │ ├── lossless_enc_sse41.c │ │ ├── lossless_mips_dsp_r2.c │ │ ├── lossless_msa.c │ │ ├── lossless_neon.c │ │ ├── lossless_sse2.c │ │ ├── lossless_sse41.c │ │ ├── mips_macro.h │ │ ├── msa_macro.h │ │ ├── neon.h │ │ ├── quant.h │ │ ├── rescaler.c │ │ ├── rescaler_mips32.c │ │ ├── rescaler_mips_dsp_r2.c │ │ ├── rescaler_msa.c │ │ ├── rescaler_neon.c │ │ ├── rescaler_sse2.c │ │ ├── ssim.c │ │ ├── ssim_sse2.c │ │ ├── upsampling.c │ │ ├── upsampling_mips_dsp_r2.c │ │ ├── upsampling_msa.c │ │ ├── upsampling_neon.c │ │ ├── upsampling_sse2.c │ │ ├── upsampling_sse41.c │ │ ├── yuv.c │ │ ├── yuv.h │ │ ├── yuv_mips32.c │ │ ├── yuv_mips_dsp_r2.c │ │ ├── yuv_neon.c │ │ ├── yuv_sse2.c │ │ └── yuv_sse41.c │ │ ├── enc │ │ ├── alpha_enc.c │ │ ├── analysis_enc.c │ │ ├── backward_references_cost_enc.c │ │ ├── backward_references_enc.c │ │ ├── backward_references_enc.h │ │ ├── config_enc.c │ │ ├── cost_enc.c │ │ ├── cost_enc.h │ │ ├── filter_enc.c │ │ ├── frame_enc.c │ │ ├── histogram_enc.c │ │ ├── histogram_enc.h │ │ ├── iterator_enc.c │ │ ├── near_lossless_enc.c │ │ ├── picture_csp_enc.c │ │ ├── picture_enc.c │ │ ├── picture_psnr_enc.c │ │ ├── picture_rescale_enc.c │ │ ├── picture_tools_enc.c │ │ ├── predictor_enc.c │ │ ├── quant_enc.c │ │ ├── syntax_enc.c │ │ ├── token_enc.c │ │ ├── tree_enc.c │ │ ├── vp8i_enc.h │ │ ├── vp8l_enc.c │ │ ├── vp8li_enc.h │ │ └── webp_enc.c │ │ ├── mux │ │ ├── anim_encode.c │ │ ├── animi.h │ │ ├── muxedit.c │ │ ├── muxi.h │ │ ├── muxinternal.c │ │ └── muxread.c │ │ ├── utils │ │ ├── bit_reader_inl_utils.h │ │ ├── bit_reader_utils.c │ │ ├── bit_reader_utils.h │ │ ├── bit_writer_utils.c │ │ ├── bit_writer_utils.h │ │ ├── color_cache_utils.c │ │ ├── color_cache_utils.h │ │ ├── endian_inl_utils.h │ │ ├── filters_utils.c │ │ ├── filters_utils.h │ │ ├── huffman_encode_utils.c │ │ ├── huffman_encode_utils.h │ │ ├── huffman_utils.c │ │ ├── huffman_utils.h │ │ ├── quant_levels_dec_utils.c │ │ ├── quant_levels_dec_utils.h │ │ ├── quant_levels_utils.c │ │ ├── quant_levels_utils.h │ │ ├── random_utils.c │ │ ├── random_utils.h │ │ ├── rescaler_utils.c │ │ ├── rescaler_utils.h │ │ ├── thread_utils.c │ │ ├── thread_utils.h │ │ ├── utils.c │ │ └── utils.h │ │ └── webp │ │ ├── decode.h │ │ ├── demux.h │ │ ├── encode.h │ │ ├── format_constants.h │ │ ├── mux.h │ │ ├── mux_types.h │ │ └── types.h ├── MapIntrospector.h ├── Metadata │ ├── Exif.cpp │ ├── FIRational.cpp │ ├── FIRational.h │ ├── FreeImageTag.cpp │ ├── FreeImageTag.h │ ├── IPTC.cpp │ ├── TagConversion.cpp │ ├── TagLib.cpp │ └── XTIFF.cpp ├── OpenEXR │ ├── Copyrights │ │ ├── ilmbase │ │ │ ├── AUTHORS │ │ │ ├── COPYING │ │ │ ├── ChangeLog │ │ │ ├── INSTALL │ │ │ ├── LICENSE │ │ │ ├── NEWS │ │ │ ├── README │ │ │ ├── README.CVS │ │ │ ├── README.OSX │ │ │ ├── README.git │ │ │ ├── README.namespacing │ │ │ └── README.win32 │ │ └── openexr │ │ │ ├── AUTHORS │ │ │ ├── COPYING │ │ │ ├── ChangeLog │ │ │ ├── INSTALL │ │ │ ├── LICENSE │ │ │ ├── NEWS │ │ │ ├── PATENTS │ │ │ ├── README │ │ │ ├── README.CVS │ │ │ ├── README.OSX │ │ │ ├── README.git │ │ │ ├── README.namespacing │ │ │ └── README.win32 │ ├── Half │ │ ├── eLut.cpp │ │ ├── eLut.h │ │ ├── half.cpp │ │ ├── half.h │ │ ├── halfExport.h │ │ ├── halfFunction.h │ │ ├── halfLimits.h │ │ ├── toFloat.cpp │ │ └── toFloat.h │ ├── Iex │ │ ├── Iex.h │ │ ├── IexBaseExc.cpp │ │ ├── IexBaseExc.h │ │ ├── IexErrnoExc.h │ │ ├── IexExport.h │ │ ├── IexForward.h │ │ ├── IexMacros.h │ │ ├── IexMathExc.h │ │ ├── IexNamespace.h │ │ ├── IexThrowErrnoExc.cpp │ │ └── IexThrowErrnoExc.h │ ├── IexMath │ │ ├── IexMathFloatExc.cpp │ │ ├── IexMathFloatExc.h │ │ ├── IexMathFpu.cpp │ │ ├── IexMathFpu.h │ │ └── IexMathIeeeExc.h │ ├── IlmBaseConfig.h │ ├── IlmImf │ │ ├── ImfAcesFile.cpp │ │ ├── ImfAcesFile.h │ │ ├── ImfArray.h │ │ ├── ImfAttribute.cpp │ │ ├── ImfAttribute.h │ │ ├── ImfAutoArray.h │ │ ├── ImfB44Compressor.cpp │ │ ├── ImfB44Compressor.h │ │ ├── ImfBoxAttribute.cpp │ │ ├── ImfBoxAttribute.h │ │ ├── ImfCRgbaFile.cpp │ │ ├── ImfCRgbaFile.h │ │ ├── ImfChannelList.cpp │ │ ├── ImfChannelList.h │ │ ├── ImfChannelListAttribute.cpp │ │ ├── ImfChannelListAttribute.h │ │ ├── ImfCheckedArithmetic.h │ │ ├── ImfChromaticities.cpp │ │ ├── ImfChromaticities.h │ │ ├── ImfChromaticitiesAttribute.cpp │ │ ├── ImfChromaticitiesAttribute.h │ │ ├── ImfCompositeDeepScanLine.cpp │ │ ├── ImfCompositeDeepScanLine.h │ │ ├── ImfCompression.h │ │ ├── ImfCompressionAttribute.cpp │ │ ├── ImfCompressionAttribute.h │ │ ├── ImfCompressor.cpp │ │ ├── ImfCompressor.h │ │ ├── ImfConvert.cpp │ │ ├── ImfConvert.h │ │ ├── ImfDeepCompositing.cpp │ │ ├── ImfDeepCompositing.h │ │ ├── ImfDeepFrameBuffer.cpp │ │ ├── ImfDeepFrameBuffer.h │ │ ├── ImfDeepImageState.h │ │ ├── ImfDeepImageStateAttribute.cpp │ │ ├── ImfDeepImageStateAttribute.h │ │ ├── ImfDeepScanLineInputFile.cpp │ │ ├── ImfDeepScanLineInputFile.h │ │ ├── ImfDeepScanLineInputPart.cpp │ │ ├── ImfDeepScanLineInputPart.h │ │ ├── ImfDeepScanLineOutputFile.cpp │ │ ├── ImfDeepScanLineOutputFile.h │ │ ├── ImfDeepScanLineOutputPart.cpp │ │ ├── ImfDeepScanLineOutputPart.h │ │ ├── ImfDeepTiledInputFile.cpp │ │ ├── ImfDeepTiledInputFile.h │ │ ├── ImfDeepTiledInputPart.cpp │ │ ├── ImfDeepTiledInputPart.h │ │ ├── ImfDeepTiledOutputFile.cpp │ │ ├── ImfDeepTiledOutputFile.h │ │ ├── ImfDeepTiledOutputPart.cpp │ │ ├── ImfDeepTiledOutputPart.h │ │ ├── ImfDoubleAttribute.cpp │ │ ├── ImfDoubleAttribute.h │ │ ├── ImfDwaCompressor.cpp │ │ ├── ImfDwaCompressor.h │ │ ├── ImfDwaCompressorSimd.h │ │ ├── ImfEnvmap.cpp │ │ ├── ImfEnvmap.h │ │ ├── ImfEnvmapAttribute.cpp │ │ ├── ImfEnvmapAttribute.h │ │ ├── ImfExport.h │ │ ├── ImfFastHuf.cpp │ │ ├── ImfFastHuf.h │ │ ├── ImfFloatAttribute.cpp │ │ ├── ImfFloatAttribute.h │ │ ├── ImfFloatVectorAttribute.cpp │ │ ├── ImfFloatVectorAttribute.h │ │ ├── ImfForward.h │ │ ├── ImfFrameBuffer.cpp │ │ ├── ImfFrameBuffer.h │ │ ├── ImfFramesPerSecond.cpp │ │ ├── ImfFramesPerSecond.h │ │ ├── ImfGenericInputFile.cpp │ │ ├── ImfGenericInputFile.h │ │ ├── ImfGenericOutputFile.cpp │ │ ├── ImfGenericOutputFile.h │ │ ├── ImfHeader.cpp │ │ ├── ImfHeader.h │ │ ├── ImfHuf.cpp │ │ ├── ImfHuf.h │ │ ├── ImfIO.cpp │ │ ├── ImfIO.h │ │ ├── ImfInputFile.cpp │ │ ├── ImfInputFile.h │ │ ├── ImfInputPart.cpp │ │ ├── ImfInputPart.h │ │ ├── ImfInputPartData.cpp │ │ ├── ImfInputPartData.h │ │ ├── ImfInputStreamMutex.h │ │ ├── ImfInt64.h │ │ ├── ImfIntAttribute.cpp │ │ ├── ImfIntAttribute.h │ │ ├── ImfKeyCode.cpp │ │ ├── ImfKeyCode.h │ │ ├── ImfKeyCodeAttribute.cpp │ │ ├── ImfKeyCodeAttribute.h │ │ ├── ImfLineOrder.h │ │ ├── ImfLineOrderAttribute.cpp │ │ ├── ImfLineOrderAttribute.h │ │ ├── ImfLut.cpp │ │ ├── ImfLut.h │ │ ├── ImfMatrixAttribute.cpp │ │ ├── ImfMatrixAttribute.h │ │ ├── ImfMisc.cpp │ │ ├── ImfMisc.h │ │ ├── ImfMultiPartInputFile.cpp │ │ ├── ImfMultiPartInputFile.h │ │ ├── ImfMultiPartOutputFile.cpp │ │ ├── ImfMultiPartOutputFile.h │ │ ├── ImfMultiView.cpp │ │ ├── ImfMultiView.h │ │ ├── ImfName.h │ │ ├── ImfNamespace.h │ │ ├── ImfOpaqueAttribute.cpp │ │ ├── ImfOpaqueAttribute.h │ │ ├── ImfOptimizedPixelReading.h │ │ ├── ImfOutputFile.cpp │ │ ├── ImfOutputFile.h │ │ ├── ImfOutputPart.cpp │ │ ├── ImfOutputPart.h │ │ ├── ImfOutputPartData.cpp │ │ ├── ImfOutputPartData.h │ │ ├── ImfOutputStreamMutex.h │ │ ├── ImfPartHelper.h │ │ ├── ImfPartType.cpp │ │ ├── ImfPartType.h │ │ ├── ImfPixelType.h │ │ ├── ImfPizCompressor.cpp │ │ ├── ImfPizCompressor.h │ │ ├── ImfPreviewImage.cpp │ │ ├── ImfPreviewImage.h │ │ ├── ImfPreviewImageAttribute.cpp │ │ ├── ImfPreviewImageAttribute.h │ │ ├── ImfPxr24Compressor.cpp │ │ ├── ImfPxr24Compressor.h │ │ ├── ImfRational.cpp │ │ ├── ImfRational.h │ │ ├── ImfRationalAttribute.cpp │ │ ├── ImfRationalAttribute.h │ │ ├── ImfRgba.h │ │ ├── ImfRgbaFile.cpp │ │ ├── ImfRgbaFile.h │ │ ├── ImfRgbaYca.cpp │ │ ├── ImfRgbaYca.h │ │ ├── ImfRle.cpp │ │ ├── ImfRle.h │ │ ├── ImfRleCompressor.cpp │ │ ├── ImfRleCompressor.h │ │ ├── ImfScanLineInputFile.cpp │ │ ├── ImfScanLineInputFile.h │ │ ├── ImfSimd.h │ │ ├── ImfStandardAttributes.cpp │ │ ├── ImfStandardAttributes.h │ │ ├── ImfStdIO.cpp │ │ ├── ImfStdIO.h │ │ ├── ImfStringAttribute.cpp │ │ ├── ImfStringAttribute.h │ │ ├── ImfStringVectorAttribute.cpp │ │ ├── ImfStringVectorAttribute.h │ │ ├── ImfSystemSpecific.cpp │ │ ├── ImfSystemSpecific.h │ │ ├── ImfTestFile.cpp │ │ ├── ImfTestFile.h │ │ ├── ImfThreading.cpp │ │ ├── ImfThreading.h │ │ ├── ImfTileDescription.h │ │ ├── ImfTileDescriptionAttribute.cpp │ │ ├── ImfTileDescriptionAttribute.h │ │ ├── ImfTileOffsets.cpp │ │ ├── ImfTileOffsets.h │ │ ├── ImfTiledInputFile.cpp │ │ ├── ImfTiledInputFile.h │ │ ├── ImfTiledInputPart.cpp │ │ ├── ImfTiledInputPart.h │ │ ├── ImfTiledMisc.cpp │ │ ├── ImfTiledMisc.h │ │ ├── ImfTiledOutputFile.cpp │ │ ├── ImfTiledOutputFile.h │ │ ├── ImfTiledOutputPart.cpp │ │ ├── ImfTiledOutputPart.h │ │ ├── ImfTiledRgbaFile.cpp │ │ ├── ImfTiledRgbaFile.h │ │ ├── ImfTimeCode.cpp │ │ ├── ImfTimeCode.h │ │ ├── ImfTimeCodeAttribute.cpp │ │ ├── ImfTimeCodeAttribute.h │ │ ├── ImfVecAttribute.cpp │ │ ├── ImfVecAttribute.h │ │ ├── ImfVersion.cpp │ │ ├── ImfVersion.h │ │ ├── ImfWav.cpp │ │ ├── ImfWav.h │ │ ├── ImfXdr.h │ │ ├── ImfZip.cpp │ │ ├── ImfZip.h │ │ ├── ImfZipCompressor.cpp │ │ ├── ImfZipCompressor.h │ │ ├── b44ExpLogTable.cpp │ │ ├── b44ExpLogTable.h │ │ ├── dwaLookups.cpp │ │ └── dwaLookups.h │ ├── IlmThread │ │ ├── IlmThread.cpp │ │ ├── IlmThread.h │ │ ├── IlmThreadExport.h │ │ ├── IlmThreadForward.h │ │ ├── IlmThreadMutex.cpp │ │ ├── IlmThreadMutex.h │ │ ├── IlmThreadMutexPosix.cpp │ │ ├── IlmThreadMutexWin32.cpp │ │ ├── IlmThreadNamespace.h │ │ ├── IlmThreadPool.cpp │ │ ├── IlmThreadPool.h │ │ ├── IlmThreadPosix.cpp │ │ ├── IlmThreadSemaphore.cpp │ │ ├── IlmThreadSemaphore.h │ │ ├── IlmThreadSemaphorePosix.cpp │ │ ├── IlmThreadSemaphorePosixCompat.cpp │ │ ├── IlmThreadSemaphoreWin32.cpp │ │ └── IlmThreadWin32.cpp │ ├── Imath │ │ ├── ImathBox.cpp │ │ ├── ImathBox.h │ │ ├── ImathBoxAlgo.h │ │ ├── ImathColor.h │ │ ├── ImathColorAlgo.cpp │ │ ├── ImathColorAlgo.h │ │ ├── ImathEuler.h │ │ ├── ImathExc.h │ │ ├── ImathExport.h │ │ ├── ImathForward.h │ │ ├── ImathFrame.h │ │ ├── ImathFrustum.h │ │ ├── ImathFrustumTest.h │ │ ├── ImathFun.cpp │ │ ├── ImathFun.h │ │ ├── ImathGL.h │ │ ├── ImathGLU.h │ │ ├── ImathHalfLimits.h │ │ ├── ImathInt64.h │ │ ├── ImathInterval.h │ │ ├── ImathLimits.h │ │ ├── ImathLine.h │ │ ├── ImathLineAlgo.h │ │ ├── ImathMath.h │ │ ├── ImathMatrix.h │ │ ├── ImathMatrixAlgo.cpp │ │ ├── ImathMatrixAlgo.h │ │ ├── ImathNamespace.h │ │ ├── ImathPlane.h │ │ ├── ImathPlatform.h │ │ ├── ImathQuat.h │ │ ├── ImathRandom.cpp │ │ ├── ImathRandom.h │ │ ├── ImathRoots.h │ │ ├── ImathShear.cpp │ │ ├── ImathShear.h │ │ ├── ImathSphere.h │ │ ├── ImathVec.cpp │ │ ├── ImathVec.h │ │ └── ImathVecAlgo.h │ ├── OpenEXR.2017.vcxproj │ ├── OpenEXR.2017.vcxproj.filters │ └── OpenEXRConfig.h ├── Plugin.h ├── Quantizers.h ├── ToneMapping.h ├── Utilities.h └── ZLib │ ├── CMakeLists.txt │ ├── ChangeLog │ ├── FAQ │ ├── INDEX │ ├── LICENSE │ ├── Makefile │ ├── Makefile.in │ ├── README │ ├── ZLib.2017.vcxproj │ ├── ZLib.2017.vcxproj.filters │ ├── adler32.c │ ├── compress.c │ ├── configure │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── gzclose.c │ ├── gzguts.h │ ├── gzlib.c │ ├── gzread.c │ ├── gzwrite.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zconf.h.in │ ├── zlib.3 │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── TestAPI ├── .gitignore ├── CMakeLists.txt ├── MainTestSuite.cpp ├── Makefile ├── Test.2017.sln ├── Test.2017.vcxproj ├── TestSuite.h ├── exif.jpg ├── exif.jxr ├── sample.png ├── testChannels.cpp ├── testHeaderOnly.cpp ├── testImageType.cpp ├── testJPEG.cpp ├── testMPage.cpp ├── testMPageMemory.cpp ├── testMPageStream.cpp ├── testMemIO.cpp ├── testPlugins.cpp ├── testThumbnail.cpp ├── testTools.cpp └── testWrappedBuffer.cpp ├── Whatsnew.txt ├── Wrapper ├── Delphi │ ├── WhatsNew_Delphi.txt │ ├── _clean.bat │ ├── demo │ │ ├── ImagePreview │ │ │ ├── ImagePreview.dpr │ │ │ ├── ImagePreview.res │ │ │ ├── MainFrm.dfm │ │ │ ├── MainFrm.pas │ │ │ ├── Readme.txt │ │ │ └── Tiger.jpg │ │ ├── MultiBitmap │ │ │ ├── MultiBitmap.dpr │ │ │ ├── MultiBitmap.res │ │ │ ├── MultiBitmap.stat │ │ │ ├── mbMainForm.dfm │ │ │ └── mbMainForm.pas │ │ ├── TargaUnit │ │ │ ├── Readme.txt │ │ │ └── TargaImage.pas │ │ └── WinBitmap │ │ │ ├── MainDemo.dpr │ │ │ ├── MainDemo.res │ │ │ ├── MainForm.dfm │ │ │ └── MainForm.pas │ ├── license.txt │ └── src │ │ ├── FreeBitmap.pas │ │ ├── FreeImage.pas │ │ ├── FreeUtils.pas │ │ └── Version.inc ├── FreeImage.NET │ ├── cpp │ │ └── FreeImageIO │ │ │ ├── AssemblyInfo.cpp │ │ │ ├── FreeImageIO.Net.cpp │ │ │ ├── FreeImageIO.Net.h │ │ │ ├── FreeImageIO.Net.vcproj │ │ │ ├── FreeImageIO.sln │ │ │ ├── ReadMe.txt │ │ │ ├── Stdafx.cpp │ │ │ ├── Stdafx.h │ │ │ ├── app.ico │ │ │ ├── app.rc │ │ │ └── resource.h │ └── cs │ │ ├── Bin │ │ └── delete.me │ │ ├── Content.txt │ │ ├── Doc │ │ ├── 3.11.0 │ │ │ └── FreeImage.NET.shfbproj │ │ ├── 3.12.0 │ │ │ └── FreeImage.NET.shfbproj │ │ ├── 3.13.0 │ │ │ └── FreeImage.NET.shfbproj │ │ ├── FreeImage.NET.shfbproj │ │ └── SHFB.txt │ │ ├── FreeImage.NET.nunit │ │ ├── FreeImage.NET.sln │ │ ├── Library │ │ ├── Classes │ │ │ ├── FreeImageBitmap.cs │ │ │ ├── FreeImageEngine.cs │ │ │ ├── FreeImagePlugin.cs │ │ │ ├── FreeImageStreamIO.cs │ │ │ ├── GifInformation.cs │ │ │ ├── ImageMetadata.cs │ │ │ ├── LocalPlugin.cs │ │ │ ├── MemoryArray.cs │ │ │ ├── MetadataModel.cs │ │ │ ├── MetadataModels.cs │ │ │ ├── MetadataTag.cs │ │ │ ├── Palette.cs │ │ │ ├── PluginRepository.cs │ │ │ ├── Scanline.cs │ │ │ └── StreamWrapper.cs │ │ ├── Delegates.cs │ │ ├── Enumerations │ │ │ ├── DisposalMethodType.cs │ │ │ ├── FREE_IMAGE_COLOR_CHANNEL.cs │ │ │ ├── FREE_IMAGE_COLOR_DEPTH.cs │ │ │ ├── FREE_IMAGE_COLOR_OPTIONS.cs │ │ │ ├── FREE_IMAGE_COLOR_TYPE.cs │ │ │ ├── FREE_IMAGE_COMPARE_FLAGS.cs │ │ │ ├── FREE_IMAGE_DITHER.cs │ │ │ ├── FREE_IMAGE_FILTER.cs │ │ │ ├── FREE_IMAGE_FORMAT.cs │ │ │ ├── FREE_IMAGE_JPEG_OPERATION.cs │ │ │ ├── FREE_IMAGE_LOAD_FLAGS.cs │ │ │ ├── FREE_IMAGE_MDMODEL.cs │ │ │ ├── FREE_IMAGE_MDTYPE.cs │ │ │ ├── FREE_IMAGE_METADATA_COPY.cs │ │ │ ├── FREE_IMAGE_QUANTIZE.cs │ │ │ ├── FREE_IMAGE_SAVE_FLAGS.cs │ │ │ ├── FREE_IMAGE_TMO.cs │ │ │ ├── FREE_IMAGE_TYPE.cs │ │ │ ├── ICC_FLAGS.cs │ │ │ └── MD_SEARCH_FLAGS.cs │ │ ├── FreeImageStaticImports.cs │ │ ├── FreeImageWrapper.cs │ │ ├── Library.2005.csproj │ │ ├── Library.csproj │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Structs │ │ │ ├── BITMAP.cs │ │ │ ├── BITMAPINFO.cs │ │ │ ├── BITMAPINFOHEADER.cs │ │ │ ├── FI16RGB555.cs │ │ │ ├── FI16RGB565.cs │ │ │ ├── FI1BIT.cs │ │ │ ├── FI4BIT.cs │ │ │ ├── FIBITMAP.cs │ │ │ ├── FICOMPLEX.cs │ │ │ ├── FIICCPROFILE.cs │ │ │ ├── FIMEMORY.cs │ │ │ ├── FIMETADATA.cs │ │ │ ├── FIMULTIBITMAP.cs │ │ │ ├── FIRGB16.cs │ │ │ ├── FIRGBA16.cs │ │ │ ├── FIRGBAF.cs │ │ │ ├── FIRGBF.cs │ │ │ ├── FIRational.cs │ │ │ ├── FITAG.cs │ │ │ ├── FIURational.cs │ │ │ ├── FreeImageIO.cs │ │ │ ├── Plugin.cs │ │ │ ├── RGBQUAD.cs │ │ │ ├── RGBTRIPLE.cs │ │ │ └── fi_handle.cs │ │ └── build.bat │ │ ├── Samples │ │ ├── Sample 01 - Loading and saving │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 01 - Loading and saving.2005.csproj │ │ │ ├── Sample 01 - Loading and saving.csproj │ │ │ └── Sample.jpg │ │ ├── Sample 02 - Multipaged bitmaps │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 02 - Multipaged bitmaps.2005.csproj │ │ │ ├── Sample 02 - Multipaged bitmaps.csproj │ │ │ └── multipaged.tif │ │ ├── Sample 03 - Allocating │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 03 - Allocating.2005.csproj │ │ │ └── Sample 03 - Allocating.csproj │ │ ├── Sample 04 - Getting bitmap informations │ │ │ ├── MainForm.Designer.cs │ │ │ ├── MainForm.cs │ │ │ ├── MainForm.resx │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 04 - Getting bitmap informations.2005.csproj │ │ │ └── Sample 04 - Getting bitmap informations.csproj │ │ ├── Sample 05 - Working with pixels │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 05 - Working with pixels.2005.csproj │ │ │ ├── Sample 05 - Working with pixels.csproj │ │ │ ├── Sample.jpg │ │ │ └── Sample.tif │ │ ├── Sample 06 - Converting │ │ │ ├── MainForm.Designer.cs │ │ │ ├── MainForm.cs │ │ │ ├── MainForm.resx │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 06 - Converting.2005.csproj │ │ │ ├── Sample 06 - Converting.csproj │ │ │ └── Sample.jpg │ │ ├── Sample 07 - ICC Profiles │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 07 - ICC Profiles.2005.csproj │ │ │ ├── Sample 07 - ICC Profiles.csproj │ │ │ └── Sample.jpg │ │ ├── Sample 08 - Creating a plugin │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 08 - Creating a plugin.2005.csproj │ │ │ ├── Sample 08 - Creating a plugin.csproj │ │ │ ├── Sample.jpg │ │ │ ├── SampleForm.Designer.cs │ │ │ ├── SampleForm.cs │ │ │ ├── SampleForm.resx │ │ │ └── SerializationPlugin.cs │ │ ├── Sample 09 - Working with streams │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 09 - Working with streams.2005.csproj │ │ │ ├── Sample 09 - Working with streams.csproj │ │ │ ├── SampleForm.Designer.cs │ │ │ ├── SampleForm.cs │ │ │ └── SampleForm.resx │ │ ├── Sample 10 - Metadata │ │ │ ├── MainForm.Designer.cs │ │ │ ├── MainForm.cs │ │ │ ├── MainForm.resx │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 10 - Metadata.2005.csproj │ │ │ └── Sample 10 - Metadata.csproj │ │ └── Sample 11 - Using the FreeImageBitmap class │ │ │ ├── MainForm.Designer.cs │ │ │ ├── MainForm.cs │ │ │ ├── MainForm.resx │ │ │ ├── MetaDataFrame.Designer.cs │ │ │ ├── MetaDataFrame.cs │ │ │ ├── MetaDataFrame.resx │ │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ │ ├── Sample 11 - Using the FreeImageBitmap class.2005.csproj │ │ │ └── Sample 11 - Using the FreeImageBitmap class.csproj │ │ ├── SourceFileMerger │ │ ├── FreeImage.cs.template │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── SourceFileMerger.2005.csproj │ │ └── SourceFileMerger.csproj │ │ ├── UnitTest │ │ ├── FreeImage.cs │ │ ├── ImageManager.cs │ │ ├── NUnit.txt │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── UnitTest.2005.csproj │ │ ├── UnitTest.cs │ │ └── UnitTest.csproj │ │ ├── Whats_New.NET.txt │ │ └── clean.bat ├── FreeImagePlus │ ├── FreeImagePlus.2017.sln │ ├── FreeImagePlus.2017.vcxproj │ ├── FreeImagePlus.2017.vcxproj.filters │ ├── FreeImagePlus.h │ ├── FreeImagePlus.rc │ ├── WhatsNew_FIP.txt │ ├── clean.bat │ ├── dist │ │ └── delete.me │ ├── doc │ │ ├── FreeImagePlus.dox │ │ ├── footer.html │ │ ├── freeimage.png │ │ ├── freeimagedoc.jpg │ │ └── index.html │ ├── src │ │ ├── FreeImagePlus.cpp │ │ ├── fipImage.cpp │ │ ├── fipMemoryIO.cpp │ │ ├── fipMetadataFind.cpp │ │ ├── fipMultiPage.cpp │ │ ├── fipTag.cpp │ │ └── fipWinImage.cpp │ └── test │ │ ├── fipTest.2017.sln │ │ ├── fipTest.2017.vcxproj │ │ ├── fipTest.cpp │ │ ├── fipTest.h │ │ ├── fipTestMPage.cpp │ │ ├── fipTestMPageMemory.cpp │ │ ├── fipTestMPageStream.cpp │ │ ├── fipTestMemIO.cpp │ │ ├── test.jpg │ │ └── test.tif └── VB6 │ └── src │ ├── MFreeImage.bas │ └── WhatsNew_VB.txt ├── clean.bat ├── clean.sh ├── cmake └── FreeImageConfig.cmake.in ├── fipMakefile.srcs ├── genfipsrclist.sh ├── gensrclist.sh ├── license-fi.txt ├── license-gplv2.txt └── license-gplv3.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled # 2 | ############ 3 | *.com 4 | *.class 5 | *.dll 6 | *.dylib 7 | *.exe 8 | *.slo 9 | *.lo 10 | *.o 11 | *.so 12 | *.lai 13 | *.la 14 | *.a 15 | *.d 16 | 17 | # Make # 18 | ######## 19 | config.build 20 | config.make 21 | 22 | # CMake # 23 | ######## 24 | cmake_install.cmake 25 | cmake_uninstall.cmake 26 | CMakeCache.txt 27 | CPackConfig.cmake 28 | CPackSourceConfig.cmake 29 | 30 | # Packages # 31 | ############ 32 | # it's better to unpack these files and commit the raw source 33 | # git has its own built in compression methods 34 | *.7z 35 | *.dmg 36 | *.gz 37 | *.iso 38 | *.jar 39 | *.rar 40 | *.tar 41 | *.zip 42 | 43 | # Logs and databases # 44 | ###################### 45 | *.log* 46 | *.sqlite 47 | *.db 48 | test*.txt 49 | XML/testsuite/rss.xml 50 | 51 | # OS generated files # 52 | ###################### 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | Icon? 59 | ehthumbs.db 60 | Thumbs.db 61 | *~ 62 | 63 | # VS generated files # 64 | ###################### 65 | *.obj 66 | *.exe 67 | *.pdb 68 | *.user 69 | *.aps 70 | *.pch 71 | *.ipch 72 | *.ncb 73 | *.suo 74 | *.sdf 75 | *.opensdf 76 | *.tlb 77 | *.tlh 78 | *.ilk 79 | *.lib 80 | *.exp 81 | *.idb 82 | *.rc 83 | *.res 84 | *.manifest 85 | *.tlog 86 | *.lastbuildstate 87 | *.unsuccessfulbuild 88 | release_shared/ 89 | debug_shared/ 90 | release_static/ 91 | debug_static/ 92 | release_static_md/ 93 | debug_static_md/ 94 | release_static_mt/ 95 | debug_static_mt/ 96 | bin/ 97 | bin64/ 98 | lib/ 99 | lib64/ 100 | pocomsg.h 101 | 102 | # Eclipse generated files # 103 | ###################### 104 | .project 105 | .cproject 106 | .settings 107 | cmake-build/ 108 | 109 | # Temporary files # 110 | ################### 111 | *.bak 112 | 113 | *.o-i386 114 | 115 | # CMake and CTest build files # 116 | ############################### 117 | 118 | build*/ 119 | cmake-build-*/ 120 | Testing/ 121 | -------------------------------------------------------------------------------- /Dist/delete.me: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Dist/delete.me -------------------------------------------------------------------------------- /Examples/Generic/BatchLoad.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/BatchLoad.cpp -------------------------------------------------------------------------------- /Examples/Generic/CloneMultiPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/CloneMultiPage.cpp -------------------------------------------------------------------------------- /Examples/Generic/CreateAlpha.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/CreateAlpha.cpp -------------------------------------------------------------------------------- /Examples/Generic/FIFImportExport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/FIFImportExport.cpp -------------------------------------------------------------------------------- /Examples/Generic/LoadFromHandle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/LoadFromHandle.cpp -------------------------------------------------------------------------------- /Examples/Generic/ShowMetadata.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Generic/ShowMetadata.cpp -------------------------------------------------------------------------------- /Examples/Linux/Makefile: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | CPP = g++ 3 | COMPILERFLAGS = -O3 4 | INCLUDE = -I../../Dist 5 | VGALIBRARIES = -lfreeimage -lvga 6 | VGAINCLUDE = -I/usr/include/asm 7 | GTKLIBRARIES = -lfreeimage `pkg-config --libs gtk+-2.0` 8 | GTKINCLUDE = `pkg-config --cflags gtk+-2.0` 9 | CFLAGS = $(COMPILERFLAGS) $(INCLUDE) 10 | 11 | all: default 12 | 13 | default: linux-svgalib linux-gtk 14 | 15 | linux-svgalib: linux-svgalib.c 16 | $(CC) $(CFLAGS) $< -o $@ $(VGALIBRARIES) $(VGAINCLUDE) 17 | strip $@ 18 | 19 | linux-gtk: linux-gtk.c 20 | $(CC) $(CFLAGS) $< -o $@ $(GTKLIBRARIES) $(GTKINCLUDE) 21 | strip $@ 22 | 23 | clean: 24 | rm -f core linux-svgalib linux-gtk 25 | -------------------------------------------------------------------------------- /Examples/Linux/linux-svgalib.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "FreeImage.h" 3 | 4 | int main(void) 5 | { 6 | FIBITMAP *dib,*ptr; 7 | vga_modeinfo *inf; 8 | int length,height,bpp,y; 9 | 10 | // initialize the FreeImage library 11 | FreeImage_Initialise(); 12 | 13 | dib = FreeImage_Load(FIF_PNG, "freeimage.png", PNG_DEFAULT); 14 | 15 | vga_init(); 16 | vga_setmode(vga_getdefaultmode()); 17 | 18 | inf = vga_getmodeinfo(vga_getcurrentmode()); 19 | 20 | switch(inf->colors) { 21 | default: 22 | printf("Must be at least 256 color mode!\n"); 23 | return; 24 | 25 | case 1 << 8: 26 | bpp = 8; 27 | break; 28 | 29 | case 1 << 15: 30 | bpp = 15; 31 | break; 32 | 33 | case 1 << 16: 34 | bpp = 16; 35 | break; 36 | 37 | case 1 << 24: 38 | if( inf->bytesperpixel == 3 ) { 39 | bpp = 24; 40 | } else { 41 | bpp = 32; 42 | } 43 | break; 44 | } 45 | 46 | if(FreeImage_GetBPP(dib) != bpp) { 47 | switch(bpp) { 48 | case 8: 49 | ptr = FreeImage_ConvertTo8Bits(dib); 50 | break; 51 | 52 | case 15: 53 | ptr = FreeImage_ConvertTo16Bits555(dib); 54 | break; 55 | 56 | case 16: 57 | ptr = FreeImage_ConvertTo16Bits565(dib); 58 | break; 59 | 60 | case 24: 61 | ptr = FreeImage_ConvertTo24Bits(dib); 62 | break; 63 | 64 | default: 65 | case 32: 66 | ptr = FreeImage_ConvertTo32Bits(dib); 67 | break; 68 | } 69 | 70 | FreeImage_Unload(dib); 71 | dib = ptr; 72 | } 73 | 74 | length = FreeImage_GetWidth(dib); 75 | if( inf->width < length ) { 76 | length = inf->width; 77 | } 78 | height = FreeImage_GetHeight(dib); 79 | if( inf->height < height ) { 80 | height = inf->height; 81 | } 82 | 83 | for(y = 0; y < height; y++) { 84 | vga_drawscansegment(FreeImage_GetScanLine(dib, y), 0, y, length); 85 | } 86 | 87 | FreeImage_Unload(dib); 88 | 89 | vga_getch(); 90 | vga_setmode(TEXT); 91 | 92 | // release the FreeImage library 93 | FreeImage_DeInitialise(); 94 | 95 | return 0; 96 | } 97 | -------------------------------------------------------------------------------- /Examples/OpenGL/TextureManager/TextureManager.h: -------------------------------------------------------------------------------- 1 | //********************************************** 2 | //Singleton Texture Manager class 3 | //Written by Ben English 4 | //benjamin.english@oit.edu 5 | // 6 | //For use with OpenGL and the FreeImage library 7 | //********************************************** 8 | 9 | #ifndef TextureManager_H 10 | #define TextureManager_H 11 | 12 | #include 13 | #include 14 | #include "FreeImage.h" 15 | #include 16 | 17 | class TextureManager 18 | { 19 | public: 20 | static TextureManager* Inst(); 21 | virtual ~TextureManager(); 22 | 23 | //load a texture an make it the current texture 24 | //if texID is already in use, it will be unloaded and replaced with this texture 25 | bool LoadTexture(const char* filename, //where to load the file from 26 | const unsigned int texID, //arbitrary id you will reference the texture by 27 | //does not have to be generated with glGenTextures 28 | GLenum image_format = GL_RGB, //format the image is in 29 | GLint internal_format = GL_RGB, //format to store the image in 30 | GLint level = 0, //mipmapping level 31 | GLint border = 0); //border size 32 | 33 | //free the memory for a texture 34 | bool UnloadTexture(const unsigned int texID); 35 | 36 | //set the current texture 37 | bool BindTexture(const unsigned int texID); 38 | 39 | //free all texture memory 40 | void UnloadAllTextures(); 41 | 42 | protected: 43 | TextureManager(); 44 | TextureManager(const TextureManager& tm); 45 | TextureManager& operator=(const TextureManager& tm); 46 | 47 | static TextureManager* m_inst; 48 | std::map m_texID; 49 | }; 50 | 51 | #endif -------------------------------------------------------------------------------- /Examples/OpenGL/TextureManager/readme.txt: -------------------------------------------------------------------------------- 1 | Hello everyone, this is my 2D texture manager class for OpenGL using the FreeImage Library. 2 | 3 | Requirements: 4 | -------------------- 5 | OpenGL 6 | STL map class 7 | FreeImage (included) 8 | 9 | 10 | Usage 11 | -------------------- 12 | To load a texture, simply call the LoadTexture function: 13 | 14 | TextureManager::Inst()->LoadTexture("img\\bg.jpg", BACKGROUND_IMAGE_ID); 15 | 16 | This also binds the loaded texture as the current texture, so after calling it you may make any calls to glTexParameter you may need to specify the properties of the texture. 17 | 18 | When you are rendering, just call the TextureManager's BindImage function instead of glBindImage: 19 | 20 | TextureManager::Inst()->BindImage(BACKGROUND_IMAGE_ID); 21 | 22 | and then do your rendering as normal. 23 | -------------------- 24 | 25 | 26 | Feel free to distribute this as you like, but mind the FreeImage licence included in license-fi.txt, and please don't take credit for my code. If you modify it, be sure to mention me (Ben English) somewhere. 27 | 28 | Please send any comments or suggestions to me at benjamin.english@oit.edu 29 | 30 | 31 | Thanks to Herve Drolon for the FreeImage library, I've found it to be very useful! -------------------------------------------------------------------------------- /Examples/Plugin/PluginCradle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Examples/Plugin/PluginCradle.cpp -------------------------------------------------------------------------------- /Examples/Plugin/PluginCradle.h: -------------------------------------------------------------------------------- 1 | // ========================================================== 2 | // JBIG Plugin 3 | // 4 | // Design and implementation by 5 | // - Floris van den Berg (flvdberg@wxs.nl) 6 | // 7 | // This file is part of FreeImage 3 8 | // 9 | // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY 10 | // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES 11 | // THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE 12 | // OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED 13 | // CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT 14 | // THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY 15 | // SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL 16 | // PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER 17 | // THIS DISCLAIMER. 18 | // 19 | // Use at your own risk! 20 | // ========================================================== 21 | 22 | #ifndef PLUGINCRADLE_H 23 | #define PLUGINCRADLE_H 24 | 25 | #ifdef PLUGINCRADLE_EXPORTS 26 | #define PLUGIN_API __declspec(dllexport) 27 | #else 28 | #define PLUGIN_API __declspec(dllimport) 29 | #endif 30 | 31 | // ---------------------------------------------------------- 32 | 33 | struct Plugin; 34 | 35 | // ---------------------------------------------------------- 36 | 37 | #define DLL_CALLCONV __stdcall 38 | 39 | // ---------------------------------------------------------- 40 | 41 | extern "C" { 42 | PLUGIN_API void DLL_CALLCONV Init(Plugin *plugin, int format_id); 43 | } 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /FreeImage.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/FreeImage.rc -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Entry point for FreeImage makefiles 2 | # Default to 'make -f Makefile.gnu' for Linux and for unknown OS. 3 | # 4 | OS = $(shell uname) 5 | MAKEFILE = gnu 6 | 7 | ifeq ($(OS), Darwin) 8 | MAKEFILE = osx 9 | endif 10 | ifeq ($(OS), Cygwin) 11 | MAKEFILE = cygwin 12 | endif 13 | ifeq ($(OS), Solaris) 14 | MAKEFILE = solaris 15 | endif 16 | ifeq ($(OS), windows32) 17 | MAKEFILE = mingw 18 | endif 19 | 20 | default: 21 | $(MAKE) -f Makefile.$(MAKEFILE) 22 | 23 | all: 24 | $(MAKE) -f Makefile.$(MAKEFILE) all 25 | 26 | dist: 27 | $(MAKE) -f Makefile.$(MAKEFILE) dist 28 | 29 | install: 30 | $(MAKE) -f Makefile.$(MAKEFILE) install 31 | 32 | clean: 33 | $(MAKE) -f Makefile.$(MAKEFILE) clean 34 | 35 | -------------------------------------------------------------------------------- /Makefile.android: -------------------------------------------------------------------------------- 1 | # Linux makefile for FreeImage 2 | 3 | # This file can be generated by ./gensrclist.sh 4 | include Makefile.srcs 5 | 6 | # General configuration variables: 7 | DESTDIR ?= / 8 | INCDIR ?= $(DESTDIR)/usr/include 9 | INSTALLDIR ?= $(DESTDIR)/usr/lib 10 | 11 | # Converts cr/lf to just lf 12 | DOS2UNIX = dos2unix 13 | 14 | LIBRARIES = $(LDFLAGS) 15 | 16 | MODULES = $(SRCS:.c=.o) 17 | MODULES := $(MODULES:.cpp=.o) 18 | CFLAGS += -Oz -fPIC -fexceptions -fvisibility=hidden 19 | # OpenJPEG 20 | CFLAGS += -DOPJ_STATIC 21 | # LibRaw 22 | CFLAGS += -DNO_LCMS 23 | # LibJXR 24 | CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__ 25 | CFLAGS += $(INCLUDE) 26 | CXXFLAGS += -Oz -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy 27 | # LibJXR 28 | CXXFLAGS += -D__ANSI__ 29 | CXXFLAGS += $(INCLUDE) 30 | 31 | ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64) 32 | CFLAGS += -fPIC 33 | CXXFLAGS += -fPIC 34 | endif 35 | 36 | TARGET = freeimage 37 | STATICLIB = lib$(TARGET).a 38 | SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so 39 | LIBNAME = lib$(TARGET).so 40 | VERLIBNAME = $(LIBNAME).$(VER_MAJOR) 41 | HEADER = Source/FreeImage.h 42 | 43 | 44 | 45 | default: all 46 | 47 | all: dist 48 | 49 | dist: FreeImage 50 | mkdir -p Dist 51 | cp *.a Dist/ 52 | cp *.so Dist/ 53 | cp Source/FreeImage.h Dist/ 54 | 55 | dos2unix: 56 | @$(DOS2UNIX) $(SRCS) $(INCLS) 57 | 58 | FreeImage: $(STATICLIB) $(SHAREDLIB) 59 | 60 | .c.o: 61 | $(CC) $(CFLAGS) -c $< -o $@ 62 | 63 | .cpp.o: 64 | $(CXX) $(CXXFLAGS) -c $< -o $@ 65 | 66 | $(STATICLIB): $(MODULES) 67 | $(AR) r $@ $(MODULES) 68 | 69 | $(SHAREDLIB): $(MODULES) 70 | $(CC) -s -shared -Wl,-soname,$(VERLIBNAME) $(LDFLAGS) -o $@ $(MODULES) $(LIBRARIES) 71 | 72 | install: 73 | install -d $(INCDIR) $(INSTALLDIR) 74 | install -m 644 -o root -g root $(HEADER) $(INCDIR) 75 | install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR) 76 | install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR) 77 | ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME) 78 | ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME) 79 | # ldconfig 80 | 81 | clean: 82 | rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME) 83 | 84 | -------------------------------------------------------------------------------- /Makefile.cygwin: -------------------------------------------------------------------------------- 1 | # Cygwin makefile for FreeImage 2 | 3 | # This file can be generated by ./gensrclist.sh 4 | include Makefile.srcs 5 | 6 | # General configuration variables: 7 | CC = gcc 8 | CXX = g++ 9 | AR = ar 10 | 11 | INSTALLDIR = /usr 12 | 13 | # Converts cr/lf to just lf 14 | DOS2UNIX = dos2unix 15 | 16 | COMPILERFLAGS = -O3 -DNO_LCMS 17 | LIBRARIES = -lstdc++ 18 | 19 | MODULES = $(SRCS:.c=.o) 20 | MODULES := $(MODULES:.cpp=.o) 21 | CFLAGS = $(COMPILERFLAGS) $(INCLUDE) 22 | CXXFLAGS = $(COMPILERFLAGS) -Wno-ctor-dtor-privacy $(INCLUDE) 23 | 24 | TARGET = freeimage 25 | STATICLIB = lib$(TARGET).a 26 | SHAREDLIB = cyg$(TARGET)-$(VER_MAJOR).$(VER_MINOR).dll 27 | LIBNAME = lib$(TARGET).dll.a 28 | HEADER = Source/FreeImage.h 29 | 30 | 31 | default: all 32 | 33 | all: dist 34 | 35 | dist: FreeImage 36 | mkdir -p Dist 37 | cp *.a Dist/ 38 | cp *.dll Dist/ 39 | cp *.dll.a Dist/ 40 | cp $(HEADER) Dist/ 41 | 42 | dos2unix: 43 | @$(DOS2UNIX) $(SRCS) $(INCLS) 44 | 45 | FreeImage: $(STATICLIB) $(SHAREDLIB) 46 | 47 | .c.o: 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | .cpp.o: 51 | $(CXX) $(CXXFLAGS) -c $< -o $@ 52 | 53 | $(STATICLIB): $(MODULES) 54 | $(AR) r $@ $(MODULES) 55 | 56 | $(SHAREDLIB): $(MODULES) 57 | $(CC) -s -shared -o $@ \ 58 | -Wl,--out-implib=$(LIBNAME) \ 59 | -Wl,--export-all-symbols \ 60 | -Wl,--enable-auto-import \ 61 | -Wl,--enable-auto-image-base \ 62 | -Wl,--whole-archive $(STATICLIB) \ 63 | -Wl,--no-whole-archive $(LIBRARIES) 64 | 65 | 66 | install: 67 | install -m 644 $(STATICLIB) $(INSTALLDIR)/lib 68 | install -m 644 $(LIBNAME) $(INSTALLDIR)/lib 69 | install -m 755 $(SHAREDLIB) $(INSTALLDIR)/bin 70 | install -m 644 $(HEADER) $(INSTALLDIR)/include 71 | 72 | clean: 73 | rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME) 74 | 75 | -------------------------------------------------------------------------------- /Makefile.gnu: -------------------------------------------------------------------------------- 1 | # Linux makefile for FreeImage 2 | 3 | # This file can be generated by ./gensrclist.sh 4 | include Makefile.srcs 5 | 6 | # General configuration variables: 7 | DESTDIR ?= / 8 | INCDIR ?= $(DESTDIR)/usr/include 9 | INSTALLDIR ?= $(DESTDIR)/usr/lib 10 | 11 | # Converts cr/lf to just lf 12 | DOS2UNIX = dos2unix 13 | 14 | LIBRARIES = -lstdc++ 15 | 16 | MODULES = $(SRCS:.c=.o) 17 | MODULES := $(MODULES:.cpp=.o) 18 | 19 | # C flags 20 | CFLAGS ?= -std=c99 -O3 -fPIC -fexceptions -fvisibility=hidden 21 | # OpenJPEG 22 | CFLAGS += -DOPJ_STATIC 23 | # LibRaw 24 | CFLAGS += -DNO_LCMS 25 | # LibJXR 26 | CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__ 27 | CFLAGS += $(INCLUDE) 28 | 29 | # C++ flags 30 | CXXFLAGS ?= -std=c++0x -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy 31 | # LibJXR 32 | CXXFLAGS += -D__ANSI__ 33 | CXXFLAGS += $(INCLUDE) 34 | 35 | ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64) 36 | CFLAGS += -fPIC 37 | CXXFLAGS += -fPIC 38 | endif 39 | 40 | TARGET = freeimage 41 | STATICLIB = lib$(TARGET).a 42 | SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so 43 | LIBNAME = lib$(TARGET).so 44 | VERLIBNAME = $(LIBNAME).$(VER_MAJOR) 45 | HEADER = Source/FreeImage.h 46 | 47 | 48 | 49 | default: all 50 | 51 | all: dist 52 | 53 | dist: FreeImage 54 | mkdir -p Dist 55 | cp *.a Dist/ 56 | cp *.so Dist/ 57 | cp Source/FreeImage.h Dist/ 58 | 59 | dos2unix: 60 | @$(DOS2UNIX) $(SRCS) $(INCLS) 61 | 62 | FreeImage: $(STATICLIB) $(SHAREDLIB) 63 | 64 | .c.o: 65 | $(CC) $(CFLAGS) -c $< -o $@ 66 | 67 | .cpp.o: 68 | $(CXX) $(CXXFLAGS) -c $< -o $@ 69 | 70 | $(STATICLIB): $(MODULES) 71 | $(AR) r $@ $(MODULES) 72 | 73 | $(SHAREDLIB): $(MODULES) 74 | $(CC) -s -shared -Wl,-soname,$(VERLIBNAME) $(LDFLAGS) -o $@ $(MODULES) $(LIBRARIES) 75 | 76 | install: 77 | install -d $(INCDIR) $(INSTALLDIR) 78 | install -m 644 -o root -g root $(HEADER) $(INCDIR) 79 | install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR) 80 | install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR) 81 | ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME) 82 | ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME) 83 | # ldconfig 84 | 85 | clean: 86 | rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME) 87 | 88 | -------------------------------------------------------------------------------- /Makefile.ios: -------------------------------------------------------------------------------- 1 | # Configuration for iOS, making static libs 2 | # this will generate target architecures set via exports in oF Apothecary 3 | 4 | include Makefile.srcs 5 | 6 | ACFLAGS=$(INCLUDE) 7 | FCFLAGS=$(CFLAGS) $(ACFLAGS) 8 | FCXXFLAGS=$(CXXFLAGS) $(CFLAGS) $(ACFLAGS) 9 | 10 | 11 | .SUFFIXES: .o-$(ARCH) 12 | MODULES_IOS = $(SRCS:.c=.o-$(ARCH)) 13 | MODULES_IOS := $(MODULES_IOS:.cpp=.o-$(ARCH)) 14 | 15 | default: all 16 | 17 | all: dist 18 | 19 | dist: FreeImage 20 | cp Source/FreeImage.h Dist 21 | rm *.a 22 | 23 | FreeImage: $(TARGET_NAME) 24 | 25 | $(TARGET_NAME): $(MODULES_IOS) 26 | $(LIBTOOL) -arch_only $(ARCH) -o $@ $(MODULES_IOS) 27 | 28 | .c.o-$(ARCH): 29 | $(CC) $(FCFLAGS) -c $< -o $@ 30 | 31 | .cpp.o-$(ARCH): 32 | $(CXX) $(FCXXFLAGS) -c $< -o $@ 33 | 34 | 35 | clean: 36 | rm -f core Dist/*.* u2dtmp* $(MODULES_IOS) 37 | -------------------------------------------------------------------------------- /Makefile.mingw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Makefile.mingw -------------------------------------------------------------------------------- /Makefile.solaris: -------------------------------------------------------------------------------- 1 | # Solaris9 makefile for FreeImage. Tested on Solaris9 with tools from 2 | # Sunfreeware.com. 3 | 4 | # This file can be generated by ./gensrclist.sh 5 | include Makefile.srcs 6 | 7 | # General configuration variables: 8 | CC = gcc 9 | CPP = g++ 10 | AR = ar 11 | 12 | INSTALLDIR = /usr/local 13 | 14 | # Converts cr/lf to just lf 15 | DOS2UNIX = dos2unix 16 | 17 | COMPILERFLAGS = -O3 18 | LIBRARIES = -lstdc++ 19 | 20 | MODULES = $(SRCS:.c=.o) 21 | MODULES := $(MODULES:.cpp=.o) 22 | CFLAGS = $(COMPILERFLAGS) $(INCLUDE) 23 | CPPFLAGS = $(COMPILERFLAGS) -Wno-ctor-dtor-privacy $(INCLUDE) 24 | 25 | TARGET = freeimage 26 | STATICLIB = lib$(TARGET).a 27 | SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so 28 | LIBNAME = lib$(TARGET).so.$(VER_MAJOR) 29 | 30 | 31 | 32 | default: all 33 | 34 | all: dist 35 | 36 | dist: FreeImage 37 | mkdir -p Dist 38 | cp *.a Dist/ 39 | cp *.so Dist/ 40 | cp Source/FreeImage.h Dist/ 41 | 42 | dos2unix: 43 | @$(DOS2UNIX) $(SRCS) $(INCLS) 44 | 45 | FreeImage: $(STATICLIB) $(SHAREDLIB) 46 | 47 | .c.o: 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | .cpp.o: 51 | $(CPP) $(CPPFLAGS) -c $< -o $@ 52 | 53 | $(STATICLIB): $(MODULES) 54 | $(AR) r $@ $(MODULES) 55 | 56 | $(SHAREDLIB): $(MODULES) 57 | $(CC) -s -G -Wl,-soname=$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES) 58 | 59 | install: 60 | install -m 644 -o root -g root Source/FreeImage.h $(INSTALLDIR)/include 61 | install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)/lib 62 | install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)/lib 63 | ln -sf $(SHAREDLIB) $(INSTALLDIR)/lib/$(LIBNAME) 64 | 65 | clean: 66 | rm -rf core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME) 67 | -------------------------------------------------------------------------------- /README.iphone: -------------------------------------------------------------------------------- 1 | Makefile for iPhone 2 | 3 | found on the web, see 4 | http://robertcarlsen.net/2009/03/16/openframeworks-iphone-586 5 | http://robertcarlsen.net/2009/03/25/openframeworks-iphone-libs-593 6 | http://4u.jeffcrouse.info/of/ 7 | 8 | See also : 9 | 10 | Makefile for XCode 4.6 and iOS SDK 6.1 11 | http://sourceforge.net/p/freeimage/discussion/36109/thread/1f345192/ 12 | 13 | Building the FreeImage lib for PIE and armv7 14 | http://forum.openframeworks.cc/t/building-the-freeimage-lib-for-pie-and-armv7/13714 15 | 16 | ----------------------------------------------------------------------------- 17 | 18 | Run "make -f Makefile.iphone". 19 | This should build both the iPhone and iPhone Simulator libraries into the "Dist" folder. 20 | -------------------------------------------------------------------------------- /README.osx: -------------------------------------------------------------------------------- 1 | Release Notes 2 | -------------- 3 | This version of the library has been tested under OSX 10.3.9 PPC and OSX 10.4.8 Intel. 4 | 5 | While the makefiles will make a .dylib and a .a, it is recommended to simply staticly link with the .a file. 6 | 7 | FreeImage is now built as a Universal Binary and targets the 10.3.9 SDK for PPC and the 10.4u SDK for i386. 8 | This means that you must have both of these SDKs installed and that you must be running on OSX 10.4+ to build FreeImage. 9 | The library will run on 10.3 PPC, but probably not 10.2 or below anymore. wchar.h did not exist on 10.2. 10 | 11 | FreeImage is now built with gcc 4.0 and will thus only run on 10.3.9 or above (some libraries may not exist on 10.3.8 and below). 12 | 13 | The FreeImage makefile makes use of the gcc "-fvisibility=hidden" in order to avoid incompatibilities between 14 | internal third party libraries and the OS libraries. This feature is available with gcc 4 or greater. 15 | 16 | 17 | Ryan Rubley 18 | 19 | Building the Library 20 | -------------------- 21 | Makefile detects the environment by calling 'uname'. Assuming this reports 'Darwin' on your system, Makefile will automatically 22 | defer commands to Makefile.osx. If this doesn't work, type 'make -f Makefile.osx' in place of just 'make' 23 | 24 | The build process is as simple as this: 25 | 1) Enter the FreeImage directory 26 | 2) Build the distribution: 27 | make 28 | 3) The libraries and header will be in the Dist directory when the build is finished 29 | 30 | To install FreeImage in the /usr/local/lib and /usr/local/include directories (not recommended): 31 | make install 32 | 33 | To clean all files produced during the build process: 34 | make clean 35 | 36 | 37 | Additional notes 38 | ---------------- 39 | 40 | Building on Mac OS X Leopard : 41 | 42 | Install the xcode dev tools from the Leopard disk. 43 | When installing the dev tools make sure to have installed 10.3.9 SDK (it's not selected by default). 44 | 45 | -------------------------------------------------------------------------------- /Source/FreeImage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage.h -------------------------------------------------------------------------------- /Source/FreeImage/BitmapAccess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/BitmapAccess.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Conversion16_555.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Conversion16_555.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Conversion16_565.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Conversion16_565.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Conversion24.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Conversion24.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Conversion32.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Conversion32.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Conversion8.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Conversion8.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionFloat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionFloat.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionRGB16.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionRGB16.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionRGBA16.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionRGBA16.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionRGBAF.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionRGBAF.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionRGBF.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionRGBF.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionType.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionType.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ConversionUINT16.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ConversionUINT16.cpp -------------------------------------------------------------------------------- /Source/FreeImage/FreeImage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/FreeImage.cpp -------------------------------------------------------------------------------- /Source/FreeImage/FreeImageC.c: -------------------------------------------------------------------------------- 1 | // ========================================================== 2 | // Use from c compiler test file 3 | // 4 | // Design and implementation by 5 | // - Floris van den Berg (flvdberg@wxs.nl) 6 | // 7 | // This file is part of FreeImage 3 8 | // 9 | // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY 10 | // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES 11 | // THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE 12 | // OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED 13 | // CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT 14 | // THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY 15 | // SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL 16 | // PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER 17 | // THIS DISCLAIMER. 18 | // 19 | // Use at your own risk! 20 | // ========================================================== 21 | 22 | #include "FreeImage.h" 23 | -------------------------------------------------------------------------------- /Source/FreeImage/GetType.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/GetType.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Halftoning.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Halftoning.cpp -------------------------------------------------------------------------------- /Source/FreeImage/J2KHelper.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/J2KHelper.cpp -------------------------------------------------------------------------------- /Source/FreeImage/J2KHelper.h: -------------------------------------------------------------------------------- 1 | #ifndef FREEIMAGE_J2K_HELPER_H 2 | #define FREEIMAGE_J2K_HELPER_H 3 | 4 | // ========================================================== 5 | // Helper functions (see J2KHelper.cpp) 6 | // ========================================================== 7 | 8 | /** 9 | FreeImageIO wrapper 10 | */ 11 | typedef struct tagJ2KFIO_t { 12 | FreeImageIO *io; //! FreeImage IO 13 | fi_handle handle; //! FreeImage handle 14 | opj_stream_t *stream; //! OpenJPEG stream 15 | } J2KFIO_t; 16 | 17 | /** 18 | Stream constructor 19 | */ 20 | J2KFIO_t* opj_freeimage_stream_create(FreeImageIO *io, fi_handle handle, BOOL bRead); 21 | 22 | /** 23 | Stream destructor 24 | */ 25 | void opj_freeimage_stream_destroy(J2KFIO_t* fio); 26 | 27 | /** 28 | Conversion opj_image_t => FIBITMAP 29 | */ 30 | FIBITMAP* J2KImageToFIBITMAP(int format_id, const opj_image_t *image, BOOL header_only); 31 | /** 32 | Conversion FIBITMAP => opj_image_t 33 | */ 34 | opj_image_t* FIBITMAPToJ2KImage(int format_id, FIBITMAP *dib, const opj_cparameters_t *parameters); 35 | 36 | #endif // FREEIMAGE_J2K_HELPER_H 37 | -------------------------------------------------------------------------------- /Source/FreeImage/MNGHelper.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/MNGHelper.cpp -------------------------------------------------------------------------------- /Source/FreeImage/MemoryIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/MemoryIO.cpp -------------------------------------------------------------------------------- /Source/FreeImage/NNQuantizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/NNQuantizer.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PixelAccess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PixelAccess.cpp -------------------------------------------------------------------------------- /Source/FreeImage/Plugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/Plugin.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginBMP.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginBMP.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginDDS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginDDS.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginEXR.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginEXR.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginG3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginG3.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginGIF.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginGIF.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginHDR.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginHDR.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginICO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginICO.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginIFF.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginIFF.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginJ2K.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginJ2K.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginJP2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginJP2.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginJPEG.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginJPEG.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginPCX.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginPCX.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginPFM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginPFM.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginPNM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginPNM.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginRAS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginRAS.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginRAW.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginRAW.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginWBMP.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginWBMP.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginXBM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginXBM.cpp -------------------------------------------------------------------------------- /Source/FreeImage/PluginXPM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/PluginXPM.cpp -------------------------------------------------------------------------------- /Source/FreeImage/TIFFLogLuv.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/TIFFLogLuv.cpp -------------------------------------------------------------------------------- /Source/FreeImage/ToneMapping.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/ToneMapping.cpp -------------------------------------------------------------------------------- /Source/FreeImage/WuQuantizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/WuQuantizer.cpp -------------------------------------------------------------------------------- /Source/FreeImage/tmoColorConvert.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/tmoColorConvert.cpp -------------------------------------------------------------------------------- /Source/FreeImage/tmoDrago03.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/tmoDrago03.cpp -------------------------------------------------------------------------------- /Source/FreeImage/tmoFattal02.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/tmoFattal02.cpp -------------------------------------------------------------------------------- /Source/FreeImage/tmoReinhard05.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImage/tmoReinhard05.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/BSplineRotate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/BSplineRotate.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Channels.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Channels.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/ClassicRotate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/ClassicRotate.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Colors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Colors.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/CopyPaste.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/CopyPaste.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Display.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Display.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Filters.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Filters.h -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Flip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Flip.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/MultigridPoissonSolver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/MultigridPoissonSolver.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Rescale.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Rescale.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Resize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Resize.cpp -------------------------------------------------------------------------------- /Source/FreeImageToolkit/Resize.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/FreeImageToolkit/Resize.h -------------------------------------------------------------------------------- /Source/LibJPEG/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "9d 12-Jan-2020" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 2020, Thomas G. Lane, Guido Vollbeding" 15 | -------------------------------------------------------------------------------- /Source/LibJXR/LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/LICENCE -------------------------------------------------------------------------------- /Source/LibJXR/README: -------------------------------------------------------------------------------- 1 | see https://jxrlib.codeplex.com/ 2 | see https://github.com/4creators/jxrlib 3 | 4 | -------------------------------------------------------------------------------- /Source/LibJXR/common/include/guiddef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/guiddef.h -------------------------------------------------------------------------------- /Source/LibJXR/common/include/wmsal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/wmsal.h -------------------------------------------------------------------------------- /Source/LibJXR/common/include/wmspecstring.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/wmspecstring.h -------------------------------------------------------------------------------- /Source/LibJXR/common/include/wmspecstrings_adt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/wmspecstrings_adt.h -------------------------------------------------------------------------------- /Source/LibJXR/common/include/wmspecstrings_strict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/wmspecstrings_strict.h -------------------------------------------------------------------------------- /Source/LibJXR/common/include/wmspecstrings_undef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/common/include/wmspecstrings_undef.h -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/JXRTranscode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/JXRTranscode.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/decode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/decode.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/decode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/decode.h -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/postprocess.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/postprocess.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/segdec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/segdec.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/strInvTransform.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/strInvTransform.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/strPredQuantDec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/strPredQuantDec.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/strdec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/strdec.c -------------------------------------------------------------------------------- /Source/LibJXR/image/decode/strdec_x86.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/decode/strdec_x86.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/encode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/encode.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/encode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/encode.h -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/segenc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/segenc.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/strFwdTransform.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/strFwdTransform.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/strPredQuantEnc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/strPredQuantEnc.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/strenc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/strenc.c -------------------------------------------------------------------------------- /Source/LibJXR/image/encode/strenc_x86.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/encode/strenc_x86.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/adapthuff.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/adapthuff.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/ansi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/ansi.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/common.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/image.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/image.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/perfTimer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/perfTimer.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/perfTimerANSI.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/perfTimerANSI.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/strPredQuant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/strPredQuant.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/strTransform.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/strTransform.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/strTransform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/strTransform.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/strcodec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/strcodec.c -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/strcodec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/strcodec.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/windowsmediaphoto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/windowsmediaphoto.h -------------------------------------------------------------------------------- /Source/LibJXR/image/sys/xplatform_image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/sys/xplatform_image.h -------------------------------------------------------------------------------- /Source/LibJXR/image/x86/x86.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/image/x86/x86.h -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRGlue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRGlue.c -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRGlue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRGlue.h -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRGlueJxr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRGlueJxr.c -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRGluePFC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRGluePFC.c -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRMeta.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRMeta.c -------------------------------------------------------------------------------- /Source/LibJXR/jxrgluelib/JXRMeta.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibJXR/jxrgluelib/JXRMeta.h -------------------------------------------------------------------------------- /Source/LibOpenJPEG/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibOpenJPEG/AUTHORS -------------------------------------------------------------------------------- /Source/LibOpenJPEG/LICENSE: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002-2012, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium 3 | * Copyright (c) 2002-2012, Professor Benoit Macq 4 | * Copyright (c) 2003-2012, Antonin Descampe 5 | * Copyright (c) 2003-2009, Francois-Olivier Devaux 6 | * Copyright (c) 2005, Herve Drolon, FreeImage Team 7 | * Copyright (c) 2002-2003, Yannick Verschueren 8 | * Copyright (c) 2001-2003, David Janssens 9 | * Copyright (c) 2011-2012, Centre National d'Etudes Spatiales (CNES), France 10 | * Copyright (c) 2012, CS Systemes d'Information, France 11 | * 12 | * All rights reserved. 13 | * 14 | * Redistribution and use in source and binary forms, with or without 15 | * modification, are permitted provided that the following conditions 16 | * are met: 17 | * 1. Redistributions of source code must retain the above copyright 18 | * notice, this list of conditions and the following disclaimer. 19 | * 2. Redistributions in binary form must reproduce the above copyright 20 | * notice, this list of conditions and the following disclaimer in the 21 | * documentation and/or other materials provided with the distribution. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' 24 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 27 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | * POSSIBILITY OF SUCH DAMAGE. 34 | */ 35 | -------------------------------------------------------------------------------- /Source/LibOpenJPEG/NEWS: -------------------------------------------------------------------------------- 1 | 2 | OpenJPEG NEWS - user visible changes 3 | ==================================== 4 | 5 | Changes from OpenJPEG 1.5.x to OpenJPEG 2.0.0 6 | ---------------------------------------------- 7 | 8 | New Features: 9 | 10 | * streaming capabilities 11 | * merge JP3D 12 | 13 | API modifications: 14 | 15 | * Use a 64bits capable API 16 | 17 | Misc: 18 | 19 | * removed autotools build system 20 | * folders hierarchies reorganisation 21 | * Huge amount of bug fixes. See CHANGES for details. 22 | -------------------------------------------------------------------------------- /Source/LibOpenJPEG/THANKS: -------------------------------------------------------------------------------- 1 | OpenJPEG THANKS file 2 | 3 | Many people have contributed to OpenJPEG by reporting problems, suggesting various improvements, 4 | or submitting actual code. Here is a list of these people. Help me keep 5 | it complete and exempt of errors. 6 | 7 | Winfried Szukalski 8 | Vincent Torri 9 | Bob Friesenhahn 10 | Callum Lerwick 11 | Dzonatas Sol 12 | Julien Malik 13 | Jerôme Fimes 14 | Herve Drolon 15 | Yannick Verschueren 16 | Sebastien Lugan 17 | Kaori Hagihara 18 | Peter Wimmer 19 | Francois-Olivier Devaux 20 | Antonin Descampe 21 | David Janssens 22 | Pr. Benoit Macq 23 | Luis Ibanez 24 | Ben Boeckel 25 | Vincent Nicolas 26 | Glenn Pearson 27 | Giuseppe Baruffa 28 | Arnaud Maye 29 | Rex Dieter 30 | David Burken 31 | Parvatha Elangovan 32 | Hans Johnson 33 | Luc Hermitte -------------------------------------------------------------------------------- /Source/LibOpenJPEG/jp2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibOpenJPEG/jp2.c -------------------------------------------------------------------------------- /Source/LibOpenJPEG/opj_config.h: -------------------------------------------------------------------------------- 1 | #ifndef OPJ_CONFIG_H 2 | #define OPJ_CONFIG_H 3 | 4 | #ifndef _MSC_VER 5 | #define OPJ_HAVE_STDINT_H 6 | #define OPJ_HAVE_INTTYPES_H 7 | #endif 8 | 9 | #endif /* OPJ_CONFIG_H */ 10 | -------------------------------------------------------------------------------- /Source/LibOpenJPEG/opj_config_private.h: -------------------------------------------------------------------------------- 1 | #ifndef OPJ_CONFIG_PRIVATE_H 2 | #define OPJ_CONFIG_PRIVATE_H 3 | 4 | #define OPJ_PACKAGE_VERSION "2.0.0" 5 | 6 | /** 7 | Some versions of gcc may have BYTE_ORDER or __BYTE_ORDER defined 8 | If your big endian system isn't being detected, add an OS specific check 9 | */ 10 | #if (defined(BYTE_ORDER) && BYTE_ORDER==BIG_ENDIAN) || \ 11 | (defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || \ 12 | defined(__BIG_ENDIAN__) 13 | #define OPJ_BIG_ENDIAN 14 | #endif /* BYTE_ORDER */ 15 | 16 | #endif /* OPJ_CONFIG_PRIVATE_H */ 17 | -------------------------------------------------------------------------------- /Source/LibOpenJPEG/opj_inttypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, Mathieu Malaterre 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' 15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 | * POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | #ifndef OPJ_INTTYPES_H 27 | #define OPJ_INTTYPES_H 28 | 29 | #include "opj_config_private.h" 30 | #ifdef OPJ_HAVE_INTTYPES_H 31 | #include 32 | #else 33 | #if defined(_WIN32) 34 | #define PRId64 "I64d" 35 | #define PRIi64 "I64i" 36 | #define PRIu64 "I64u" 37 | #define PRIx64 "I64x" 38 | #else 39 | #error unsupported platform 40 | #endif 41 | #endif 42 | 43 | #endif /* OPJ_INTTYPES_H */ 44 | -------------------------------------------------------------------------------- /Source/LibOpenJPEG/opj_stdint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012, Mathieu Malaterre 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' 15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 | * POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | #ifndef OPJ_STDINT_H 27 | #define OPJ_STDINT_H 28 | 29 | #include "opj_config.h" 30 | #ifdef OPJ_HAVE_STDINT_H 31 | #include 32 | #else 33 | #if defined(_WIN32) 34 | typedef signed __int8 int8_t; 35 | typedef unsigned __int8 uint8_t; 36 | typedef signed __int16 int16_t; 37 | typedef unsigned __int16 uint16_t; 38 | typedef signed __int32 int32_t; 39 | typedef unsigned __int32 uint32_t; 40 | typedef signed __int64 int64_t; 41 | typedef unsigned __int64 uint64_t; 42 | #else 43 | #error unsupported platform 44 | #endif 45 | #endif 46 | 47 | #endif /* OPJ_STDINT_H */ 48 | -------------------------------------------------------------------------------- /Source/LibPNG/ANNOUNCE: -------------------------------------------------------------------------------- 1 | libpng 1.6.39 - November 20, 2022 2 | ================================= 3 | 4 | This is a public release of libpng, intended for use in production code. 5 | 6 | 7 | Files available for download 8 | ---------------------------- 9 | 10 | Source files with LF line endings (for Unix/Linux): 11 | 12 | * libpng-1.6.39.tar.xz (LZMA-compressed, recommended) 13 | * libpng-1.6.39.tar.gz 14 | 15 | Source files with CRLF line endings (for Windows): 16 | 17 | * lpng1639.7z (LZMA-compressed, recommended) 18 | * lpng1639.zip 19 | 20 | Other information: 21 | 22 | * README.md 23 | * LICENSE.md 24 | * AUTHORS.md 25 | * TRADEMARK.md 26 | 27 | 28 | Changes from version 1.6.38 to version 1.6.39 29 | --------------------------------------------- 30 | 31 | * Changed the error handler of oversized chunks (i.e. larger than 32 | PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error. 33 | * Fixed a buffer overflow error in contrib/tools/pngfix. 34 | * Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp. 35 | * Disabled the ARM Neon optimizations by default in the CMake file, 36 | following the default behavior of the configure script. 37 | * Allowed configure.ac to work with the trunk version of autoconf. 38 | * Removed the support for "install" targets from the legacy makefiles; 39 | removed the obsolete makefile.cegcc. 40 | * Cleaned up the code and updated the internal documentation. 41 | 42 | 43 | Send comments/corrections/commendations to png-mng-implement at lists.sf.net. 44 | Subscription is required; visit 45 | https://lists.sourceforge.net/lists/listinfo/png-mng-implement 46 | to subscribe. 47 | -------------------------------------------------------------------------------- /Source/LibPNG/AUTHORS: -------------------------------------------------------------------------------- 1 | PNG REFERENCE LIBRARY AUTHORS 2 | ============================= 3 | 4 | This is the list of PNG Reference Library ("libpng") Contributing 5 | Authors, for copyright and licensing purposes. 6 | 7 | * Andreas Dilger 8 | * Cosmin Truta 9 | * Dave Martindale 10 | * Eric S. Raymond 11 | * Gilles Vollant 12 | * Glenn Randers-Pehrson 13 | * Greg Roelofs 14 | * Guy Eric Schalnat 15 | * James Yu 16 | * John Bowler 17 | * Kevin Bracey 18 | * Magnus Holmgren 19 | * Mandar Sahastrabuddhe 20 | * Mans Rullgard 21 | * Matt Sarett 22 | * Mike Klein 23 | * Pascal Massimino 24 | * Paul Schmidt 25 | * Qiang Zhou 26 | * Sam Bushell 27 | * Samuel Williams 28 | * Simon-Pierre Cadieux 29 | * Tim Wegner 30 | * Tom Lane 31 | * Tom Tanner 32 | * Vadim Barkov 33 | * Willem van Schaik 34 | * Zhijie Liang 35 | * Arm Holdings 36 | - Richard Townsend 37 | * Google Inc. 38 | - Dan Field 39 | - Leon Scroggins III 40 | - Matt Sarett 41 | - Mike Klein 42 | - Sami Boukortt 43 | 44 | The build projects, the build scripts, the test scripts, and other 45 | files in the "ci", "projects", "scripts" and "tests" directories, have 46 | other copyright owners, but are released under the libpng license. 47 | 48 | Some files in the "contrib" directory, and some tools-generated files 49 | that are distributed with libpng, have other copyright owners, and are 50 | released under other open source licenses. 51 | -------------------------------------------------------------------------------- /Source/LibPNG/TODO: -------------------------------------------------------------------------------- 1 | TODO - list of things to do for libpng: 2 | 3 | * Fix all defects (duh!) 4 | * Better C++ wrapper / full C++ implementation (?) 5 | * Fix the problems with C++ and 'extern "C"'. 6 | * cHRM transformation. 7 | * Palette creation. 8 | * "grayscale->palette" transformation and "palette->grayscale" detection. 9 | * Improved dithering. 10 | * Multi-lingual error and warning message support. 11 | * Complete sRGB transformation. (Currently it simply uses gamma=0.45455.) 12 | * Man pages for function calls. 13 | * Better documentation. 14 | * Better filter selection 15 | (e.g., counting huffman bits/precompression; filter inertia; filter costs). 16 | * Histogram creation. 17 | * Text conversion between different code pages (e.g., Latin-1 -> Mac). 18 | * Avoid building gamma tables whenever possible. 19 | * Greater precision in changing to linear gamma for compositing against 20 | background, and in doing rgb-to-gray transformations. 21 | * Investigate pre-incremented loop counters and other loop constructions. 22 | * Interpolated method of handling interlacing. 23 | * More validations for libpng transformations. 24 | -------------------------------------------------------------------------------- /Source/LibPNG/TRADEMARK: -------------------------------------------------------------------------------- 1 | TRADEMARK 2 | ========= 3 | 4 | The name "libpng" has not been registered by the Copyright owners 5 | as a trademark in any jurisdiction. However, because libpng has 6 | been distributed and maintained world-wide, continually since 1995, 7 | the Copyright owners claim "common-law trademark protection" in any 8 | jurisdiction where common-law trademark is recognized. 9 | -------------------------------------------------------------------------------- /Source/LibPNG/libpngpf.3: -------------------------------------------------------------------------------- 1 | .TH LIBPNGPF 3 "November 20, 2022" 2 | .SH NAME 3 | libpng \- Portable Network Graphics (PNG) Reference Library 1.6.39 4 | (private functions) 5 | 6 | .SH SYNOPSIS 7 | \fB#include \fI"pngpriv.h" 8 | 9 | \fBAs of libpng version \fP\fI1.5.1\fP\fB, this section is no longer 10 | \fP\fImaintained\fP\fB, now that the private function prototypes are hidden in 11 | \fP\fIpngpriv.h\fP\fB and not accessible to applications. Look in 12 | \fP\fIpngpriv.h\fP\fB for the prototypes and a short description of each 13 | function. 14 | 15 | .SH DESCRIPTION 16 | The functions previously listed here are used privately by libpng and are not 17 | available for use by applications. They are not "exported" to applications 18 | using shared libraries. 19 | 20 | .SH "SEE ALSO" 21 | .BR "png"(5), " libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 22 | 23 | .SH AUTHORS 24 | Cosmin Truta, Glenn Randers-Pehrson 25 | -------------------------------------------------------------------------------- /Source/LibRawLite/COPYRIGHT: -------------------------------------------------------------------------------- 1 | ** LibRaw: Raw images processing library ** 2 | 3 | Copyright (C) 2008-2021 LibRaw LLC (http://www.libraw.org, info@libraw.org) 4 | 5 | LibRaw is free software; you can redistribute it and/or modify 6 | it under the terms of the one of two licenses as you choose: 7 | 8 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 9 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 10 | 11 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 12 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 13 | 14 | LibRaw uses code from dcraw.c -- Dave Coffin's raw photo decoder, 15 | dcraw.c is copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net. 16 | LibRaw do not use RESTRICTED code from dcraw.c 17 | 18 | LibRaw uses DCB demosaic and FBDD denoise licensed under BSD-like 3-clause license 19 | DCB and FBDD are Copyright (C) 2010, Jacek Gozdz (cuniek@kft.umcs.lublin.pl) 20 | 21 | LibRaw uses X3F library to unpack Foveon Files, licensed BSD-style license 22 | Copyright (c) 2010, Roland Karlsson (roland@proxel.se) 23 | All rights reserved. 24 | 25 | LibRaw uses pieces of code from Adobe DNG SDK 1.4, 26 | Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license 27 | 28 | -------------------------------------------------------------------------------- /Source/LibRawLite/DEVELOPER-NOTES: -------------------------------------------------------------------------------- 1 | 2 | === Notes for LibRaw contributor === 3 | 4 | 0. Repository 5 | LibRaw public repository is located on GitHub 6 | URL: 7 | http://github.com/LibRaw/LibRaw - main page 8 | git://github.com/LibRaw/LibRaw.git - git URL 9 | 10 | If you wish to participate in LibRaw development please use GitHub fork. 11 | 12 | LibRaw distribution files are prepared by ./mkdist.sh script 13 | This script 14 | - generates ./configure script from autotools stuff 15 | - removes developer Makefile 16 | - fetches 'Official' dcraw.c from Dave Coffin's site 17 | - removes itself 18 | 19 | Feel free to contact us (info@libraw.org or Contact form on www.libraw.org) if 20 | you have any questions or suggestions. 21 | -------------------------------------------------------------------------------- /Source/LibRawLite/README: -------------------------------------------------------------------------------- 1 | ====================== LibRaw ============================== 2 | == Library for reading and processing of RAW digicam images == 3 | 4 | LibRaw is a library for reading RAW files from digital photo cameras 5 | (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are 6 | supported). 7 | 8 | It pays special attention to correct retrieval of data required for subsequent 9 | RAW conversion. 10 | 11 | The library is intended for embedding in RAW converters, data analyzers, and 12 | other programs using RAW files as the initial data. 13 | 14 | LibRaw library, Copyright (C) 2008-2018 LibRaw LLC (info@libraw.org) 15 | The library includes source code from 16 | 17 | dcraw.c, Dave Coffin's raw photo decoder 18 | Copyright 1997-2016 by Dave Coffin, dcoffin a cybercom o net 19 | 20 | LibRaw is distributed for free under two different licenses: 21 | * GNU Lesser General Public License, version 2.1 22 | * COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 23 | 24 | You may use one of these licensing modes and switch between them. 25 | 26 | If you modify LibRaw source and made your changes public, you should accept 27 | both two licensing modes for your changes/additions. 28 | -------------------------------------------------------------------------------- /Source/LibRawLite/README.cmake: -------------------------------------------------------------------------------- 1 | Due to inability to support (user contributed) Cmake scripts, 2 | the cmake builds are not officially supported by LibRaw team 3 | since October 23, 2014 4 | 5 | The scripts are moved to separate github repository 6 | github.com:LibRaw/LibRaw-cmake.git 7 | 8 | Checkout from this repo if you want to use Cmake to build LibRaw. 9 | 10 | -------------------------------------------------------------------------------- /Source/LibRawLite/README.demosaic-packs: -------------------------------------------------------------------------------- 1 | ======================= LibRaw demosaic pack(s) =============================== 2 | 3 | We were forced to stop supporting LibRaw demosaic packs: the contributed code 4 | is out of date for several years, initial contributors has no interest in it. 5 | 6 | We too: we (LibRaw team) focused on RAW decode and metadata extraction, but not 7 | on postprocessing (demosaic, noise suppression, etc). 8 | 9 | So, LibRaw-demosaic-pack-GPLn are abandoned now. We will be happy to convey 10 | their support and development to any developer who will show interest. 11 | 12 | LibRaw 0.19 contains callback calls placed instead of calls to demosaic pack routines. 13 | So, adaptation of demosaic packs to new LibRaw should be easy (and, of course, we'll 14 | provide some support and/or implement additional callbacks if needed). 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Source/LibRawLite/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/LibRawLite/README.md -------------------------------------------------------------------------------- /Source/LibRawLite/internal/dcraw_fileio_defs.h: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | 5 | LibRaw is free software; you can redistribute it and/or modify 6 | it under the terms of the one of two licenses as you choose: 7 | 8 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 9 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 10 | 11 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 12 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 13 | 14 | */ 15 | 16 | #ifndef DCRAW_FILEIO_DEFS_H 17 | #define DCRAW_FILEIO_DEFS_H 18 | 19 | #include 20 | #define LIBRAW_LIBRARY_BUILD 21 | #include "libraw/libraw.h" 22 | #include "internal/defines.h" 23 | #include "internal/var_defines.h" 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /Source/LibRawLite/internal/dmp_include.h: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | 5 | LibRaw is free software; you can redistribute it and/or modify 6 | it under the terms of the one of two licenses as you choose: 7 | 8 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 9 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 10 | 11 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 12 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 13 | 14 | */ 15 | 16 | #ifndef DMP_INCLUDE_H 17 | #define DMP_INCLUDE_H 18 | 19 | #define LIBRAW_LIBRARY_BUILD 20 | #define LIBRAW_IO_REDEFINED 21 | #include "libraw/libraw.h" 22 | #include "internal/defines.h" 23 | #define SRC_USES_SHRINK 24 | #define SRC_USES_BLACK 25 | #define SRC_USES_CURVE 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /Source/LibRawLite/src/postprocessing/postprocessing_ph.cpp: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | Placeholder functions to build LibRaw w/o postprocessing tools 5 | 6 | LibRaw is free software; you can redistribute it and/or modify 7 | it under the terms of the one of two licenses as you choose: 8 | 9 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 10 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 11 | 12 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 13 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 14 | 15 | */ 16 | 17 | #include "../../internal/libraw_cxx_defs.h" 18 | 19 | int LibRaw::dcraw_process(void) 20 | { 21 | return LIBRAW_NOT_IMPLEMENTED; 22 | } 23 | 24 | void LibRaw::fuji_rotate() {} 25 | void LibRaw::convert_to_rgb_loop(float /*out_cam*/ [3][4]) {} 26 | libraw_processed_image_t *LibRaw::dcraw_make_mem_image(int *) { 27 | return NULL; 28 | } 29 | libraw_processed_image_t *LibRaw::dcraw_make_mem_thumb(int *){ return NULL;} 30 | void LibRaw::lin_interpolate_loop(int * /*code*/, int /*size*/) {} 31 | void LibRaw::scale_colors_loop(float /*scale_mul*/[4]) {} 32 | -------------------------------------------------------------------------------- /Source/LibRawLite/src/preprocessing/preprocessing_ph.cpp: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | Placeholder functions to build LibRaw w/o postprocessing 5 | and preprocessing calls 6 | 7 | LibRaw is free software; you can redistribute it and/or modify 8 | it under the terms of the one of two licenses as you choose: 9 | 10 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 11 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 12 | 13 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 14 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 15 | 16 | */ 17 | 18 | #include "../../internal/libraw_cxx_defs.h" 19 | 20 | void LibRaw::copy_fuji_uncropped(unsigned short /*cblack*/[4], 21 | unsigned short * /*dmaxp*/) {} 22 | void LibRaw::copy_bayer(unsigned short /*cblack*/[4], unsigned short * /*dmaxp*/){} 23 | void LibRaw::raw2image_start(){} 24 | 25 | -------------------------------------------------------------------------------- /Source/LibRawLite/src/write/tiff_writer.cpp: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | LibRaw uses code from dcraw.c -- Dave Coffin's raw photo decoder, 5 | dcraw.c is copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net. 6 | LibRaw do not use RESTRICTED code from dcraw.c 7 | 8 | LibRaw is free software; you can redistribute it and/or modify 9 | it under the terms of the one of two licenses as you choose: 10 | 11 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 12 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 13 | 14 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 15 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 16 | 17 | */ 18 | 19 | #include "../../internal/libraw_cxx_defs.h" 20 | 21 | int LibRaw::dcraw_ppm_tiff_writer(const char *filename) 22 | { 23 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_LOAD_RAW); 24 | 25 | if (!imgdata.image) 26 | return LIBRAW_OUT_OF_ORDER_CALL; 27 | 28 | if (!filename) 29 | return ENOENT; 30 | FILE *f = NULL; 31 | if (!strcmp(filename, "-")) 32 | { 33 | #ifdef LIBRAW_WIN32_CALLS 34 | _setmode(_fileno(stdout), _O_BINARY); 35 | #endif 36 | f = stdout; 37 | } 38 | else 39 | f = fopen(filename, "wb"); 40 | 41 | if (!f) 42 | return errno; 43 | 44 | try 45 | { 46 | if (!libraw_internal_data.output_data.histogram) 47 | { 48 | libraw_internal_data.output_data.histogram = 49 | (int(*)[LIBRAW_HISTOGRAM_SIZE])malloc( 50 | sizeof(*libraw_internal_data.output_data.histogram) * 4); 51 | } 52 | libraw_internal_data.internal_data.output = f; 53 | write_ppm_tiff(); 54 | SET_PROC_FLAG(LIBRAW_PROGRESS_FLIP); 55 | libraw_internal_data.internal_data.output = NULL; 56 | if (strcmp(filename, "-")) 57 | fclose(f); 58 | return 0; 59 | } 60 | catch (const LibRaw_exceptions& err) 61 | { 62 | if (strcmp(filename, "-")) 63 | fclose(f); 64 | EXCEPTION_HANDLER(err); 65 | } 66 | catch (const std::bad_alloc&) 67 | { 68 | if (strcmp(filename, "-")) 69 | fclose(f); 70 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Source/LibRawLite/src/write/write_ph.cpp: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- 2 | * Copyright 2019-2021 LibRaw LLC (info@libraw.org) 3 | * 4 | Placeholder functions to build LibRaw w/o postprocessing 5 | and preprocessing calls 6 | 7 | LibRaw is free software; you can redistribute it and/or modify 8 | it under the terms of the one of two licenses as you choose: 9 | 10 | 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 11 | (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 12 | 13 | 2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 14 | (See file LICENSE.CDDL provided in LibRaw distribution archive for details). 15 | 16 | */ 17 | 18 | 19 | #include "../../internal/dcraw_defs.h" 20 | int LibRaw::flip_index(int row, int col) 21 | { 22 | if (flip & 4) 23 | SWAP(row, col); 24 | if (flip & 2) 25 | row = iheight - 1 - row; 26 | if (flip & 1) 27 | col = iwidth - 1 - col; 28 | return row * iwidth + col; 29 | } 30 | 31 | void LibRaw::write_ppm_tiff(){} 32 | void LibRaw::jpeg_thumb_writer(FILE *tfp, char *t_humb, int t_humb_length){} 33 | #if 0 34 | void LibRaw::ppm_thumb(){} 35 | void LibRaw::jpeg_thumb(){} 36 | void LibRaw::rollei_thumb(){} 37 | void LibRaw::ppm16_thumb(){} 38 | void LibRaw::layer_thumb(){} 39 | #endif -------------------------------------------------------------------------------- /Source/LibTIFF4/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright (c) 1988-1997 Sam Leffler 2 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and 5 | its documentation for any purpose is hereby granted without fee, provided 6 | that (i) the above copyright notices and this permission notice appear in 7 | all copies of the software and related documentation, and (ii) the names of 8 | Sam Leffler and Silicon Graphics may not be used in any advertising or 9 | publicity relating to the software without the specific, prior written 10 | permission of Sam Leffler and Silicon Graphics. 11 | 12 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 13 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 14 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 15 | 16 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 17 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 18 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 19 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 20 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 21 | OF THIS SOFTWARE. 22 | -------------------------------------------------------------------------------- /Source/LibTIFF4/RELEASE-DATE: -------------------------------------------------------------------------------- 1 | 20230908 2 | -------------------------------------------------------------------------------- /Source/LibTIFF4/libport.h: -------------------------------------------------------------------------------- 1 | /* $Id: libport.h,v 1.2.2.2 2009-11-02 14:47:41 bfriesen Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 2009 Frank Warmerdam 5 | * 6 | * Permission to use, copy, modify, distribute, and sell this software and 7 | * its documentation for any purpose is hereby granted without fee, provided 8 | * that (i) the above copyright notices and this permission notice appear in 9 | * all copies of the software and related documentation, and (ii) the names of 10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or 11 | * publicity relating to the software without the specific, prior written 12 | * permission of Sam Leffler and Silicon Graphics. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 17 | * 18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 23 | * OF THIS SOFTWARE. 24 | */ 25 | 26 | #ifndef _LIBPORT_ 27 | #define _LIBPORT_ 28 | 29 | int getopt(int argc, char * const argv[], const char *optstring); 30 | extern char *optarg; 31 | extern int opterr; 32 | extern int optind; 33 | extern int optopt; 34 | 35 | int strcasecmp(const char *s1, const char *s2); 36 | 37 | #ifndef HAVE_GETOPT 38 | # define HAVE_GETOPT 1 39 | #endif 40 | 41 | #if 0 42 | unsigned long strtoul(const char *nptr, char **endptr, int base); 43 | #endif 44 | 45 | #if 0 46 | void * 47 | lfind(const void *key, const void *base, size_t *nmemb, size_t size, 48 | int(*compar)(const void *, const void *)); 49 | #endif 50 | 51 | #endif /* ndef _LIBPORT_ */ -------------------------------------------------------------------------------- /Source/LibTIFF4/libtiffxx.map: -------------------------------------------------------------------------------- 1 | LIBTIFFXX_4.0 { 2 | global: 3 | *; 4 | }; 5 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tif_config.wince.h: -------------------------------------------------------------------------------- 1 | /* 2 | * TIFF library configuration header for Windows CE platform. 3 | */ 4 | #ifndef _WIN32_WCE 5 | # error This version of tif_config.h header is dedicated for Windows CE platform! 6 | #endif 7 | 8 | /* Define to 1 if you have the header file. */ 9 | #define HAVE_ASSERT_H 1 10 | 11 | /* Define to 1 if you have the header file. */ 12 | #define HAVE_FCNTL_H 1 13 | 14 | /* Define as 0 or 1 according to the floating point format suported by the 15 | machine */ 16 | #define HAVE_IEEEFP 1 17 | 18 | /* Define to 1 if you have the `jbg_newlen' function. */ 19 | #define HAVE_JBG_NEWLEN 1 20 | 21 | /* Define to 1 if you have the header file. */ 22 | #define HAVE_STRING_H 1 23 | 24 | /* Define to 1 if you have the header file. */ 25 | #undef HAVE_SYS_TYPES_H 26 | 27 | /* Define to 1 if you have the header file. */ 28 | #define HAVE_IO_H 1 29 | 30 | /* Define to 1 if you have the header file. */ 31 | #define HAVE_SEARCH_H 1 32 | 33 | /* Define to 1 if you have the `setmode' function. */ 34 | #define HAVE_SETMODE 1 35 | 36 | /* Define to 1 if you have the `bsearch' function. */ 37 | #define HAVE_BSEARCH 1 38 | #define bsearch wceex_bsearch 39 | 40 | /* Define to 1 if you have the `lfind' function. */ 41 | #define HAVE_LFIND 1 42 | #define lfind wceex_lfind 43 | 44 | /* The size of a `int', as computed by sizeof. */ 45 | #define SIZEOF_INT 4 46 | 47 | /* Set the native cpu bit order */ 48 | #define HOST_FILLORDER FILLORDER_LSB2MSB 49 | 50 | /* Define to 1 if your processor stores words with the most significant byte 51 | first (like Motorola and SPARC, unlike Intel and VAX). */ 52 | /* #undef WORDS_BIGENDIAN */ 53 | 54 | /* Define to `__inline__' or `__inline' if that's what the C compiler 55 | calls it, or to nothing if 'inline' is not supported under any name. */ 56 | #ifndef __cplusplus 57 | # ifndef inline 58 | # define inline __inline 59 | # endif 60 | #endif 61 | 62 | 63 | /* 64 | * Local Variables: 65 | * mode: c 66 | * c-basic-offset: 8 67 | * fill-column: 78 68 | * End: 69 | */ 70 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tif_jpeg_12.c: -------------------------------------------------------------------------------- 1 | 2 | #include "tiffiop.h" 3 | 4 | #if defined(HAVE_JPEGTURBO_DUAL_MODE_8_12) 5 | #define JPEG_DUAL_MODE_8_12 6 | #endif 7 | 8 | #if defined(JPEG_DUAL_MODE_8_12) 9 | 10 | #define FROM_TIF_JPEG_12 11 | 12 | #ifdef TIFFInitJPEG 13 | #undef TIFFInitJPEG 14 | #endif 15 | #define TIFFInitJPEG TIFFInitJPEG_12 16 | 17 | #ifdef TIFFJPEGIsFullStripRequired 18 | #undef TIFFJPEGIsFullStripRequired 19 | #endif 20 | #define TIFFJPEGIsFullStripRequired TIFFJPEGIsFullStripRequired_12 21 | 22 | int TIFFInitJPEG_12(TIFF *tif, int scheme); 23 | 24 | #if !defined(HAVE_JPEGTURBO_DUAL_MODE_8_12) 25 | #include LIBJPEG_12_PATH 26 | #endif 27 | 28 | #include "tif_jpeg.c" 29 | 30 | int TIFFReInitJPEG_12(TIFF *tif, const JPEGOtherSettings *otherSettings, 31 | int scheme, int is_encode) 32 | { 33 | JPEGState *sp; 34 | uint8_t *new_tif_data; 35 | 36 | (void)scheme; 37 | assert(scheme == COMPRESSION_JPEG); 38 | 39 | new_tif_data = 40 | (uint8_t *)_TIFFreallocExt(tif, tif->tif_data, sizeof(JPEGState)); 41 | 42 | if (new_tif_data == NULL) 43 | { 44 | TIFFErrorExtR(tif, "TIFFReInitJPEG_12", 45 | "No space for JPEG state block"); 46 | return 0; 47 | } 48 | 49 | tif->tif_data = new_tif_data; 50 | _TIFFmemset(tif->tif_data, 0, sizeof(JPEGState)); 51 | 52 | TIFFInitJPEGCommon(tif); 53 | 54 | sp = JState(tif); 55 | sp->otherSettings = *otherSettings; 56 | 57 | if (is_encode) 58 | return JPEGSetupEncode(tif); 59 | else 60 | return JPEGSetupDecode(tif); 61 | } 62 | 63 | #endif /* defined(JPEG_DUAL_MODE_8_12) */ 64 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tif_version.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1992-1997 Sam Leffler 3 | * Copyright (c) 1992-1997 Silicon Graphics, Inc. 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and 6 | * its documentation for any purpose is hereby granted without fee, provided 7 | * that (i) the above copyright notices and this permission notice appear in 8 | * all copies of the software and related documentation, and (ii) the names of 9 | * Sam Leffler and Silicon Graphics may not be used in any advertising or 10 | * publicity relating to the software without the specific, prior written 11 | * permission of Sam Leffler and Silicon Graphics. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 14 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 15 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 16 | * 17 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 18 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 19 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 20 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 21 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 22 | * OF THIS SOFTWARE. 23 | */ 24 | #include "tiffiop.h" 25 | 26 | static const char TIFFVersion[] = TIFFLIB_VERSION_STR; 27 | 28 | const char *TIFFGetVersion(void) { return (TIFFVersion); } 29 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tiffio.hxx: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1988-1997 Sam Leffler 3 | * Copyright (c) 1991-1997 Silicon Graphics, Inc. 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and 6 | * its documentation for any purpose is hereby granted without fee, provided 7 | * that (i) the above copyright notices and this permission notice appear in 8 | * all copies of the software and related documentation, and (ii) the names of 9 | * Sam Leffler and Silicon Graphics may not be used in any advertising or 10 | * publicity relating to the software without the specific, prior written 11 | * permission of Sam Leffler and Silicon Graphics. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 14 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 15 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 16 | * 17 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 18 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 19 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 20 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 21 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 22 | * OF THIS SOFTWARE. 23 | */ 24 | 25 | #ifndef _TIFFIO_HXX_ 26 | #define _TIFFIO_HXX_ 27 | 28 | /* 29 | * TIFF I/O library definitions which provide C++ streams API. 30 | */ 31 | 32 | #include "tiff.h" 33 | #include "tiffio.h" 34 | #include 35 | 36 | extern TIFF *TIFFStreamOpen(const char *, std::ostream *); 37 | extern TIFF *TIFFStreamOpen(const char *, std::istream *); 38 | 39 | #endif /* _TIFFIO_HXX_ */ 40 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tiffvers.h: -------------------------------------------------------------------------------- 1 | /* tiffvers.h version information is updated according to version information 2 | * in configure.ac */ 3 | 4 | /* clang-format off */ 5 | 6 | /* clang-format disabled because FindTIFF.cmake is very sensitive to the 7 | * formatting of below line being a single line. 8 | * Furthermore, configure_file variables of type "@VAR@" are 9 | * modified by clang-format and won't be substituted by CMake. 10 | */ 11 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." 12 | /* 13 | * This define can be used in code that requires 14 | * compilation-related definitions specific to a 15 | * version or versions of the library. Runtime 16 | * version checking should be done based on the 17 | * string returned by TIFFGetVersion. 18 | */ 19 | #define TIFFLIB_VERSION 20230908 20 | 21 | /* The following defines have been added in 4.5.0 */ 22 | #define TIFFLIB_MAJOR_VERSION 4 23 | #define TIFFLIB_MINOR_VERSION 6 24 | #define TIFFLIB_MICRO_VERSION 0 25 | #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0" 26 | 27 | /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is 28 | * greater or equal to major.minor.micro 29 | */ 30 | #define TIFFLIB_AT_LEAST(major, minor, micro) \ 31 | (TIFFLIB_MAJOR_VERSION > (major) || \ 32 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \ 33 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \ 34 | TIFFLIB_MICRO_VERSION >= (micro))) 35 | 36 | /* clang-format on */ 37 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tiffvers.h.cmake.in: -------------------------------------------------------------------------------- 1 | /* tiffvers.h version information is updated according to version information 2 | * in configure.ac */ 3 | 4 | /* clang-format off */ 5 | 6 | /* clang-format disabled because FindTIFF.cmake is very sensitive to the 7 | * formatting of below line being a single line. 8 | * Furthermore, configure_file variables of type "@VAR@" are 9 | * modified by clang-format and won't be substituted by CMake. 10 | */ 11 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version @LIBTIFF_VERSION@\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." 12 | /* 13 | * This define can be used in code that requires 14 | * compilation-related definitions specific to a 15 | * version or versions of the library. Runtime 16 | * version checking should be done based on the 17 | * string returned by TIFFGetVersion. 18 | */ 19 | #define TIFFLIB_VERSION @LIBTIFF_RELEASE_DATE@ 20 | 21 | /* The following defines have been added in 4.5.0 */ 22 | #define TIFFLIB_MAJOR_VERSION @LIBTIFF_MAJOR_VERSION@ 23 | #define TIFFLIB_MINOR_VERSION @LIBTIFF_MINOR_VERSION@ 24 | #define TIFFLIB_MICRO_VERSION @LIBTIFF_MICRO_VERSION@ 25 | #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "@LIBTIFF_VERSION@" 26 | 27 | /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is 28 | * greater or equal to major.minor.micro 29 | */ 30 | #define TIFFLIB_AT_LEAST(major, minor, micro) \ 31 | (TIFFLIB_MAJOR_VERSION > (major) || \ 32 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \ 33 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \ 34 | TIFFLIB_MICRO_VERSION >= (micro))) 35 | 36 | /* clang-format on */ 37 | -------------------------------------------------------------------------------- /Source/LibTIFF4/tiffvers.h.in: -------------------------------------------------------------------------------- 1 | /* tiffvers.h version information is updated according to version information 2 | * in configure.ac */ 3 | 4 | /* clang-format off */ 5 | 6 | /* clang-format disabled because FindTIFF.cmake is very sensitive to the 7 | * formatting of below line being a single line. 8 | * Furthermore, configure_file variables of type "@VAR@" are 9 | * modified by clang-format and won't be substituted by CMake. 10 | */ 11 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version @LIBTIFF_VERSION@\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." 12 | /* 13 | * This define can be used in code that requires 14 | * compilation-related definitions specific to a 15 | * version or versions of the library. Runtime 16 | * version checking should be done based on the 17 | * string returned by TIFFGetVersion. 18 | */ 19 | #define TIFFLIB_VERSION @LIBTIFF_RELEASE_DATE@ 20 | 21 | /* The following defines have been added in 4.5.0 */ 22 | #define TIFFLIB_MAJOR_VERSION @LIBTIFF_MAJOR_VERSION@ 23 | #define TIFFLIB_MINOR_VERSION @LIBTIFF_MINOR_VERSION@ 24 | #define TIFFLIB_MICRO_VERSION @LIBTIFF_MICRO_VERSION@ 25 | #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "@LIBTIFF_VERSION@" 26 | 27 | /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is 28 | * greater or equal to major.minor.micro 29 | */ 30 | #define TIFFLIB_AT_LEAST(major, minor, micro) \ 31 | (TIFFLIB_MAJOR_VERSION > (major) || \ 32 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \ 33 | (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \ 34 | TIFFLIB_MICRO_VERSION >= (micro))) 35 | 36 | /* clang-format on */ 37 | -------------------------------------------------------------------------------- /Source/LibWebP/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010, Google Inc. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in 12 | the documentation and/or other materials provided with the 13 | distribution. 14 | 15 | * Neither the name of Google nor the names of its contributors may 16 | be used to endorse or promote products derived from this software 17 | without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | -------------------------------------------------------------------------------- /Source/LibWebP/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | ------------------------------------ 3 | 4 | "These implementations" means the copyrightable works that implement the WebM 5 | codecs distributed by Google as part of the WebM Project. 6 | 7 | Google hereby grants to you a perpetual, worldwide, non-exclusive, no-charge, 8 | royalty-free, irrevocable (except as stated in this section) patent license to 9 | make, have made, use, offer to sell, sell, import, transfer, and otherwise 10 | run, modify and propagate the contents of these implementations of WebM, where 11 | such license applies only to those patent claims, both currently owned by 12 | Google and acquired in the future, licensable by Google that are necessarily 13 | infringed by these implementations of WebM. This grant does not include claims 14 | that would be infringed only as a consequence of further modification of these 15 | implementations. If you or your agent or exclusive licensee institute or order 16 | or agree to the institution of patent litigation or any other patent 17 | enforcement activity against any entity (including a cross-claim or 18 | counterclaim in a lawsuit) alleging that any of these implementations of WebM 19 | or any code incorporated within any of these implementations of WebM 20 | constitute direct or contributory patent infringement, or inducement of 21 | patent infringement, then any patent rights granted to you under this License 22 | for these implementations of WebM shall terminate as of the date such 23 | litigation is filed. 24 | -------------------------------------------------------------------------------- /Source/LibWebP/src/dec/alphai_dec.h: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Alpha decoder: internal header. 11 | // 12 | // Author: Urvang (urvang@google.com) 13 | 14 | #ifndef WEBP_DEC_ALPHAI_DEC_H_ 15 | #define WEBP_DEC_ALPHAI_DEC_H_ 16 | 17 | #include "src/dec/webpi_dec.h" 18 | #include "src/utils/filters_utils.h" 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | struct VP8LDecoder; // Defined in dec/vp8li.h. 25 | 26 | typedef struct ALPHDecoder ALPHDecoder; 27 | struct ALPHDecoder { 28 | int width_; 29 | int height_; 30 | int method_; 31 | WEBP_FILTER_TYPE filter_; 32 | int pre_processing_; 33 | struct VP8LDecoder* vp8l_dec_; 34 | VP8Io io_; 35 | int use_8b_decode_; // Although alpha channel requires only 1 byte per 36 | // pixel, sometimes VP8LDecoder may need to allocate 37 | // 4 bytes per pixel internally during decode. 38 | uint8_t* output_; 39 | const uint8_t* prev_line_; // last output row (or NULL) 40 | }; 41 | 42 | //------------------------------------------------------------------------------ 43 | // internal functions. Not public. 44 | 45 | // Deallocate memory associated to dec->alpha_plane_ decoding 46 | void WebPDeallocateAlphaMemory(VP8Decoder* const dec); 47 | 48 | //------------------------------------------------------------------------------ 49 | 50 | #ifdef __cplusplus 51 | } // extern "C" 52 | #endif 53 | 54 | #endif // WEBP_DEC_ALPHAI_DEC_H_ 55 | -------------------------------------------------------------------------------- /Source/LibWebP/src/dec/common_dec.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Definitions and macros common to encoding and decoding 11 | // 12 | // Author: Skal (pascal.massimino@gmail.com) 13 | 14 | #ifndef WEBP_DEC_COMMON_DEC_H_ 15 | #define WEBP_DEC_COMMON_DEC_H_ 16 | 17 | // intra prediction modes 18 | enum { B_DC_PRED = 0, // 4x4 modes 19 | B_TM_PRED = 1, 20 | B_VE_PRED = 2, 21 | B_HE_PRED = 3, 22 | B_RD_PRED = 4, 23 | B_VR_PRED = 5, 24 | B_LD_PRED = 6, 25 | B_VL_PRED = 7, 26 | B_HD_PRED = 8, 27 | B_HU_PRED = 9, 28 | NUM_BMODES = B_HU_PRED + 1 - B_DC_PRED, // = 10 29 | 30 | // Luma16 or UV modes 31 | DC_PRED = B_DC_PRED, V_PRED = B_VE_PRED, 32 | H_PRED = B_HE_PRED, TM_PRED = B_TM_PRED, 33 | B_PRED = NUM_BMODES, // refined I4x4 mode 34 | NUM_PRED_MODES = 4, 35 | 36 | // special modes 37 | B_DC_PRED_NOTOP = 4, 38 | B_DC_PRED_NOLEFT = 5, 39 | B_DC_PRED_NOTOPLEFT = 6, 40 | NUM_B_DC_MODES = 7 }; 41 | 42 | enum { MB_FEATURE_TREE_PROBS = 3, 43 | NUM_MB_SEGMENTS = 4, 44 | NUM_REF_LF_DELTAS = 4, 45 | NUM_MODE_LF_DELTAS = 4, // I4x4, ZERO, *, SPLIT 46 | MAX_NUM_PARTITIONS = 8, 47 | // Probabilities 48 | NUM_TYPES = 4, // 0: i16-AC, 1: i16-DC, 2:chroma-AC, 3:i4-AC 49 | NUM_BANDS = 8, 50 | NUM_CTX = 3, 51 | NUM_PROBAS = 11 52 | }; 53 | 54 | #endif // WEBP_DEC_COMMON_DEC_H_ 55 | -------------------------------------------------------------------------------- /Source/LibWebP/src/dsp/dec_sse41.c: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // SSE4 version of some decoding functions. 11 | // 12 | // Author: Skal (pascal.massimino@gmail.com) 13 | 14 | #include "src/dsp/dsp.h" 15 | 16 | #if defined(WEBP_USE_SSE41) 17 | 18 | #include 19 | #include "src/dec/vp8i_dec.h" 20 | #include "src/utils/utils.h" 21 | 22 | static void HE16_SSE41(uint8_t* dst) { // horizontal 23 | int j; 24 | const __m128i kShuffle3 = _mm_set1_epi8(3); 25 | for (j = 16; j > 0; --j) { 26 | const __m128i in = _mm_cvtsi32_si128(WebPMemToUint32(dst - 4)); 27 | const __m128i values = _mm_shuffle_epi8(in, kShuffle3); 28 | _mm_storeu_si128((__m128i*)dst, values); 29 | dst += BPS; 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // Entry point 35 | 36 | extern void VP8DspInitSSE41(void); 37 | 38 | WEBP_TSAN_IGNORE_FUNCTION void VP8DspInitSSE41(void) { 39 | VP8PredLuma16[3] = HE16_SSE41; 40 | } 41 | 42 | #else // !WEBP_USE_SSE41 43 | 44 | WEBP_DSP_INIT_STUB(VP8DspInitSSE41) 45 | 46 | #endif // WEBP_USE_SSE41 47 | -------------------------------------------------------------------------------- /Source/LibWebP/src/dsp/enc_avx2.c: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // AVX2 version of speed-critical encoding functions. 11 | 12 | #include "src/dsp/dsp.h" 13 | 14 | #if defined(WEBP_USE_AVX2) 15 | 16 | #endif // WEBP_USE_AVX2 17 | 18 | //------------------------------------------------------------------------------ 19 | // Entry point 20 | 21 | WEBP_DSP_INIT_STUB(VP8EncDspInitAVX2) 22 | -------------------------------------------------------------------------------- /Source/LibWebP/src/mux/animi.h: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Internal header for animation related functions. 11 | // 12 | // Author: Hui Su (huisu@google.com) 13 | 14 | #ifndef WEBP_MUX_ANIMI_H_ 15 | #define WEBP_MUX_ANIMI_H_ 16 | 17 | #include "src/webp/mux.h" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | // Picks the optimal rectangle between two pictures, starting with initial 24 | // values of offsets and dimensions that are passed in. The initial 25 | // values will be clipped, if necessary, to make sure the rectangle is 26 | // within the canvas. "use_argb" must be true for both pictures. 27 | // Parameters: 28 | // prev_canvas, curr_canvas - (in) two input pictures to compare. 29 | // is_lossless, quality - (in) encoding settings. 30 | // x_offset, y_offset, width, height - (in/out) rectangle between the two 31 | // input pictures. 32 | // Returns true on success. 33 | int WebPAnimEncoderRefineRect( 34 | const struct WebPPicture* const prev_canvas, 35 | const struct WebPPicture* const curr_canvas, 36 | int is_lossless, float quality, int* const x_offset, int* const y_offset, 37 | int* const width, int* const height); 38 | 39 | #ifdef __cplusplus 40 | } // extern "C" 41 | #endif 42 | 43 | #endif // WEBP_MUX_ANIMI_H_ 44 | -------------------------------------------------------------------------------- /Source/LibWebP/src/utils/color_cache_utils.c: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Color Cache for WebP Lossless 11 | // 12 | // Author: Jyrki Alakuijala (jyrki@google.com) 13 | 14 | #include 15 | #include 16 | #include 17 | #include "src/utils/color_cache_utils.h" 18 | #include "src/utils/utils.h" 19 | 20 | //------------------------------------------------------------------------------ 21 | // VP8LColorCache. 22 | 23 | int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits) { 24 | const int hash_size = 1 << hash_bits; 25 | assert(color_cache != NULL); 26 | assert(hash_bits > 0); 27 | color_cache->colors_ = (uint32_t*)WebPSafeCalloc( 28 | (uint64_t)hash_size, sizeof(*color_cache->colors_)); 29 | if (color_cache->colors_ == NULL) return 0; 30 | color_cache->hash_shift_ = 32 - hash_bits; 31 | color_cache->hash_bits_ = hash_bits; 32 | return 1; 33 | } 34 | 35 | void VP8LColorCacheClear(VP8LColorCache* const color_cache) { 36 | if (color_cache != NULL) { 37 | WebPSafeFree(color_cache->colors_); 38 | color_cache->colors_ = NULL; 39 | } 40 | } 41 | 42 | void VP8LColorCacheCopy(const VP8LColorCache* const src, 43 | VP8LColorCache* const dst) { 44 | assert(src != NULL); 45 | assert(dst != NULL); 46 | assert(src->hash_bits_ == dst->hash_bits_); 47 | memcpy(dst->colors_, src->colors_, 48 | ((size_t)1u << dst->hash_bits_) * sizeof(*dst->colors_)); 49 | } 50 | -------------------------------------------------------------------------------- /Source/LibWebP/src/utils/filters_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Spatial prediction using various filters 11 | // 12 | // Author: Urvang (urvang@google.com) 13 | 14 | #ifndef WEBP_UTILS_FILTERS_UTILS_H_ 15 | #define WEBP_UTILS_FILTERS_UTILS_H_ 16 | 17 | #include "src/webp/types.h" 18 | #include "src/dsp/dsp.h" 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | // Fast estimate of a potentially good filter. 25 | WEBP_FILTER_TYPE WebPEstimateBestFilter(const uint8_t* data, 26 | int width, int height, int stride); 27 | 28 | #ifdef __cplusplus 29 | } // extern "C" 30 | #endif 31 | 32 | #endif // WEBP_UTILS_FILTERS_UTILS_H_ 33 | -------------------------------------------------------------------------------- /Source/LibWebP/src/utils/quant_levels_dec_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Alpha plane de-quantization utility 11 | // 12 | // Author: Vikas Arora (vikasa@google.com) 13 | 14 | #ifndef WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_ 15 | #define WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_ 16 | 17 | #include "src/webp/types.h" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | // Apply post-processing to input 'data' of size 'width'x'height' assuming that 24 | // the source was quantized to a reduced number of levels. 'stride' is in bytes. 25 | // Strength is in [0..100] and controls the amount of dithering applied. 26 | // Returns false in case of error (data is NULL, invalid parameters, 27 | // malloc failure, ...). 28 | int WebPDequantizeLevels(uint8_t* const data, int width, int height, int stride, 29 | int strength); 30 | 31 | #ifdef __cplusplus 32 | } // extern "C" 33 | #endif 34 | 35 | #endif // WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_ 36 | -------------------------------------------------------------------------------- /Source/LibWebP/src/utils/quant_levels_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Alpha plane quantization utility 11 | // 12 | // Author: Vikas Arora (vikasa@google.com) 13 | 14 | #ifndef WEBP_UTILS_QUANT_LEVELS_UTILS_H_ 15 | #define WEBP_UTILS_QUANT_LEVELS_UTILS_H_ 16 | 17 | #include 18 | 19 | #include "src/webp/types.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | // Replace the input 'data' of size 'width'x'height' with 'num-levels' 26 | // quantized values. If not NULL, 'sse' will contain the sum of squared error. 27 | // Valid range for 'num_levels' is [2, 256]. 28 | // Returns false in case of error (data is NULL, or parameters are invalid). 29 | int QuantizeLevels(uint8_t* const data, int width, int height, int num_levels, 30 | uint64_t* const sse); 31 | 32 | #ifdef __cplusplus 33 | } // extern "C" 34 | #endif 35 | 36 | #endif // WEBP_UTILS_QUANT_LEVELS_UTILS_H_ 37 | -------------------------------------------------------------------------------- /Source/LibWebP/src/utils/random_utils.c: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Pseudo-random utilities 11 | // 12 | // Author: Skal (pascal.massimino@gmail.com) 13 | 14 | #include 15 | #include "src/utils/random_utils.h" 16 | 17 | //------------------------------------------------------------------------------ 18 | 19 | // 31b-range values 20 | static const uint32_t kRandomTable[VP8_RANDOM_TABLE_SIZE] = { 21 | 0x0de15230, 0x03b31886, 0x775faccb, 0x1c88626a, 0x68385c55, 0x14b3b828, 22 | 0x4a85fef8, 0x49ddb84b, 0x64fcf397, 0x5c550289, 0x4a290000, 0x0d7ec1da, 23 | 0x5940b7ab, 0x5492577d, 0x4e19ca72, 0x38d38c69, 0x0c01ee65, 0x32a1755f, 24 | 0x5437f652, 0x5abb2c32, 0x0faa57b1, 0x73f533e7, 0x685feeda, 0x7563cce2, 25 | 0x6e990e83, 0x4730a7ed, 0x4fc0d9c6, 0x496b153c, 0x4f1403fa, 0x541afb0c, 26 | 0x73990b32, 0x26d7cb1c, 0x6fcc3706, 0x2cbb77d8, 0x75762f2a, 0x6425ccdd, 27 | 0x24b35461, 0x0a7d8715, 0x220414a8, 0x141ebf67, 0x56b41583, 0x73e502e3, 28 | 0x44cab16f, 0x28264d42, 0x73baaefb, 0x0a50ebed, 0x1d6ab6fb, 0x0d3ad40b, 29 | 0x35db3b68, 0x2b081e83, 0x77ce6b95, 0x5181e5f0, 0x78853bbc, 0x009f9494, 30 | 0x27e5ed3c 31 | }; 32 | 33 | void VP8InitRandom(VP8Random* const rg, float dithering) { 34 | memcpy(rg->tab_, kRandomTable, sizeof(rg->tab_)); 35 | rg->index1_ = 0; 36 | rg->index2_ = 31; 37 | rg->amp_ = (dithering < 0.0) ? 0 38 | : (dithering > 1.0) ? (1 << VP8_RANDOM_DITHER_FIX) 39 | : (uint32_t)((1 << VP8_RANDOM_DITHER_FIX) * dithering); 40 | } 41 | 42 | //------------------------------------------------------------------------------ 43 | 44 | -------------------------------------------------------------------------------- /Source/Metadata/Exif.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/Exif.cpp -------------------------------------------------------------------------------- /Source/Metadata/FIRational.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/FIRational.cpp -------------------------------------------------------------------------------- /Source/Metadata/FIRational.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/FIRational.h -------------------------------------------------------------------------------- /Source/Metadata/FreeImageTag.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/FreeImageTag.cpp -------------------------------------------------------------------------------- /Source/Metadata/FreeImageTag.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/FreeImageTag.h -------------------------------------------------------------------------------- /Source/Metadata/IPTC.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/IPTC.cpp -------------------------------------------------------------------------------- /Source/Metadata/TagConversion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/TagConversion.cpp -------------------------------------------------------------------------------- /Source/Metadata/TagLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Metadata/TagLib.cpp -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/AUTHORS: -------------------------------------------------------------------------------- 1 | Developers: 2 | ----------- 3 | 4 | Florian Kainz 5 | Rod Bogart 6 | Drew Hess 7 | Bill Anderson 8 | Wojciech Jarosz 9 | 10 | Contributors: 11 | ------------- 12 | 13 | Rito Trevino 14 | Josh Pines 15 | Christian Rouet 16 | 17 | Win32 build system: 18 | ------------------- 19 | 20 | Nick Porcino 21 | Kimball Thurston 22 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Industrial Light & Magic, a division of Lucasfilm 2 | Entertainment Company Ltd. Portions contributed and copyright held by 3 | others as indicated. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided with 16 | the distribution. 17 | 18 | * Neither the name of Industrial Light & Magic nor the names of 19 | any other contributors to this software may be used to endorse or 20 | promote products derived from this software without specific prior 21 | written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 24 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/INSTALL: -------------------------------------------------------------------------------- 1 | See the README file for instructions on how to build IlmBase from 2 | source. 3 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Industrial Light & Magic, a division of Lucasfilm 2 | Entertainment Company Ltd. Portions contributed and copyright held by 3 | others as indicated. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided with 16 | the distribution. 17 | 18 | * Neither the name of Industrial Light & Magic nor the names of 19 | any other contributors to this software may be used to endorse or 20 | promote products derived from this software without specific prior 21 | written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 24 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/NEWS: -------------------------------------------------------------------------------- 1 | Version 0.9.0: 2 | - Initial release 3 | 4 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/README.CVS: -------------------------------------------------------------------------------- 1 | If you're using IlmBase from CVS, you should run the bootstrap script 2 | to create the auto* files. It's a good idea to run this whenever you 3 | update IlmBase from CVS. 4 | 5 | Then run './configure' and make. 6 | 7 | Note that the configure.ac file requires a fairly new version of 8 | automake. If you get this error message: 9 | 10 | running aclocal ... 11 | aclocal: configure.ac: 142: macro `AM_CFLAGS' not found in library 12 | aclocal: configure.ac: 143: macro `AM_CXXFLAGS' not found in library 13 | failed! 14 | 15 | you should upgrade your automake to version 1.6 or better. 16 | 17 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/ilmbase/README.git: -------------------------------------------------------------------------------- 1 | If you're using IlmBase from github, you should run the bootstrap script 2 | to create the auto* files. It's a good idea to run this whenever you 3 | update IlmBase from github. 4 | 5 | Then run './configure' and make. 6 | 7 | Note that the configure.ac file requires a fairly new version of 8 | automake. If you get this error message: 9 | 10 | running aclocal ... 11 | aclocal: configure.ac: 142: macro `AM_CFLAGS' not found in library 12 | aclocal: configure.ac: 143: macro `AM_CXXFLAGS' not found in library 13 | failed! 14 | 15 | you should upgrade your automake to version 1.6 or better. 16 | 17 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/AUTHORS: -------------------------------------------------------------------------------- 1 | Developers: 2 | ----------- 3 | 4 | Florian Kainz 5 | Rod Bogart 6 | Drew Hess 7 | Paul Schneider 8 | Bill Anderson 9 | Wojciech Jarosz 10 | Andrew Kunz 11 | Piotr Stanczyk 12 | Peter Hillman 13 | 14 | Contributors: 15 | ------------- 16 | 17 | Simon Green 18 | Rito Trevino 19 | Josh Pines 20 | Christian Rouet 21 | Rodrigo Damazio 22 | Greg Ward 23 | Joseph Goldstone 24 | Loren Carpenter, Pixar Animation Studios 25 | Nicholas Yue 26 | Yunfeng Bai (ILM) 27 | Pascal Jette (Autodesk) 28 | Karl Rasche, DreamWorks Animation 29 | 30 | Win32 build system: 31 | ------------------- 32 | 33 | Nick Porcino 34 | Kimball Thurston 35 | 36 | Win32 port contributors: 37 | ------------------------ 38 | 39 | Dustin Graves 40 | Jukka Liimatta 41 | Baumann Konstantin 42 | Daniel Koch 43 | E. Scott Larsen 44 | stephan mantler 45 | Andreas Kahler 46 | Frank Jargstorff 47 | Lutz Latta 48 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Industrial Light & Magic, a division of Lucasfilm 2 | Entertainment Company Ltd. Portions contributed and copyright held by 3 | others as indicated. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided with 16 | the distribution. 17 | 18 | * Neither the name of Industrial Light & Magic nor the names of 19 | any other contributors to this software may be used to endorse or 20 | promote products derived from this software without specific prior 21 | written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 24 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/INSTALL: -------------------------------------------------------------------------------- 1 | See the README file for instructions on how to build OpenEXR from 2 | source. 3 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Industrial Light & Magic, a division of Lucasfilm 2 | Entertainment Company Ltd. Portions contributed and copyright held by 3 | others as indicated. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided with 16 | the distribution. 17 | 18 | * Neither the name of Industrial Light & Magic nor the names of 19 | any other contributors to this software may be used to endorse or 20 | promote products derived from this software without specific prior 21 | written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 24 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) "DreamWorks Lossy Compression" means the 2 | copyrightable works distributed by DreamWorks Animation as part of the OpenEXR 3 | Project. Within the OpenEXR project, DreamWorks Animation hereby grants to you 4 | a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable 5 | (except as stated in this section) patent license to make, have made, use, 6 | import, sell products which incorporate this IP as part of the OpenEXR 7 | standard, transfer, and otherwise run, modify and propagate the contents of 8 | this implementation of DreamWorks Lossy Compression within the OpenEXR standard, 9 | where such license applies only to those patent claims, both currently owned by 10 | DreamWorks Animation and acquired in the future, licensable by DreamWorks 11 | Animation that are necessarily infringed by this implementation of DreamWorks 12 | Lossy Compression. This grant does not include use of DreamWorks Lossy 13 | Compression outside of the OpenEXR standard. This grant does not include claims 14 | that would be infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or order 16 | or agree to the institution of patent litigation against any entity (including 17 | a cross-claim or counterclaim in a lawsuit) alleging that this implementation 18 | of DreamWorks Lossy Compression or any code incorporated within this 19 | implementation of DreamWorks Lossy Compression constitutes direct or 20 | contributory patent infringement, or inducement of patent infringement, then 21 | any patent rights granted to you under this License for this implementation 22 | of DreamWorks Lossy Compression shall terminate as of the date such litigation 23 | is filed. 24 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/README.CVS: -------------------------------------------------------------------------------- 1 | If you're using OpenEXR from CVS, you should run the bootstrap script 2 | to create the auto* files. It's a good idea to run this whenever you 3 | update OpenEXR from CVS. 4 | 5 | Then run './configure' and make. 6 | 7 | Note that the configure.ac file requires a fairly new version of 8 | automake. If you get this error message: 9 | 10 | running aclocal ... 11 | aclocal: configure.ac: 142: macro `AM_CFLAGS' not found in library 12 | aclocal: configure.ac: 143: macro `AM_CXXFLAGS' not found in library 13 | failed! 14 | 15 | you should upgrade your automake to version 1.6 or better. 16 | 17 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/README.OSX: -------------------------------------------------------------------------------- 1 | OpenEXR on MacOS X 2 | ------------------ 3 | 4 | Building OpenEXR on MacOS X is just like building it on GNU/Linux. 5 | Follow the instructions in the README file under BUILDLING OPENEXR, 6 | but see below re: shared libraries. 7 | 8 | Missing gnu automake tools on Mac OS X 10.8+ 9 | ------------------ 10 | Later versions of OS X ,10.8+, do not, by default have all the necessary 11 | tools for building. In particular, Autoconf and Automake may be missing. 12 | 13 | The following commands will download and install the necessary components: 14 | 15 | cd ~/myDevLoc 16 | curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.64.tar.gz 17 | tar xzf autoconf-2.64.tar.gz 18 | cd autoconf-2.64 19 | ./configure --prefix=~/myDevLoc/autotools-bin 20 | make; make install 21 | 22 | cd ~/myDevLoc 23 | curl -OL http://ftpmirror.gnu.org/automake/automake-1.12.tar.gz 24 | tar xzf automake-1.12.tar.gz 25 | cd automake-1.12 26 | ./configure --prefix=~/myDevLoc/autotools-bin 27 | make; make install 28 | 29 | cd ~/myDevLoc 30 | curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz 31 | tar xzf libtool-2.4.tar.gz 32 | cd libtool-2.4 33 | ./configure --prefix=~/myDevLoc/autotools-bin 34 | make; make install 35 | 36 | 37 | You may want to export the installation path for your convenience. 38 | Finally, make sure that you have installed the command line tools for XCode. 39 | 40 | 41 | Universal Builds on Mac OS X 42 | ------------------ 43 | 44 | On OS X 10.4, you can build universal binaries by passing 45 | '--enable-osx-universal-binaries --disable-dependency-tracking' to the 46 | configure script. The default is *not* to build universal binaries. 47 | 48 | 49 | Shared libraries 50 | ---------------- 51 | 52 | OpenEXR requires the "flat namespace" option when built as a shared 53 | library. You may have problems trying to use OpenEXR shared libraries 54 | with applications that expect OS X's two-level namespace. We have not 55 | tested the shared libs extensively, though they appear to work with 56 | exrdisplay and exrheader, but use them at your own risk. We will 57 | support two-level namespace shared libs in a future release. 58 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/README.git: -------------------------------------------------------------------------------- 1 | If you're using IlmBase from github, you should run the bootstrap script 2 | to create the auto* files. It's a good idea to run this whenever you 3 | update IlmBase from github. 4 | 5 | Then run './configure' and make. 6 | 7 | Note that the configure.ac file requires a fairly new version of 8 | automake. If you get this error message: 9 | 10 | running aclocal ... 11 | aclocal: configure.ac: 142: macro `AM_CFLAGS' not found in library 12 | aclocal: configure.ac: 143: macro `AM_CXXFLAGS' not found in library 13 | failed! 14 | 15 | you should upgrade your automake to version 1.6 or better. 16 | 17 | -------------------------------------------------------------------------------- /Source/OpenEXR/Copyrights/openexr/README.win32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/OpenEXR/Copyrights/openexr/README.win32 -------------------------------------------------------------------------------- /Source/OpenEXR/Half/half.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/OpenEXR/Half/half.cpp -------------------------------------------------------------------------------- /Source/OpenEXR/Half/halfExport.h: -------------------------------------------------------------------------------- 1 | #ifndef HALFEXPORT_H 2 | #define HALFEXPORT_H 3 | 4 | // 5 | // Copyright (c) 2008 Lucasfilm Entertainment Company Ltd. 6 | // All rights reserved. Used under authorization. 7 | // This material contains the confidential and proprietary 8 | // information of Lucasfilm Entertainment Company and 9 | // may not be copied in whole or in part without the express 10 | // written permission of Lucasfilm Entertainment Company. 11 | // This copyright notice does not imply publication. 12 | // 13 | 14 | #if defined(OPENEXR_DLL) 15 | #if defined(HALF_EXPORTS) 16 | #define HALF_EXPORT __declspec(dllexport) 17 | #else 18 | #define HALF_EXPORT __declspec(dllimport) 19 | #endif 20 | #define HALF_EXPORT_CONST 21 | #else 22 | #define HALF_EXPORT 23 | #define HALF_EXPORT_CONST const 24 | #endif 25 | 26 | #endif // #ifndef HALFEXPORT_H 27 | 28 | -------------------------------------------------------------------------------- /Source/OpenEXR/IlmBaseConfig.h: -------------------------------------------------------------------------------- 1 | /** 2 | Define and set to 1 if the target system has POSIX thread support 3 | and you want IlmBase to use it for multithreaded file I/O. 4 | */ 5 | #if defined(_MSC_VER) || defined(__MINGW32__) 6 | #undef HAVE_PTHREAD 7 | #else 8 | #undef HAVE_PTHREAD 9 | #endif 10 | 11 | /** 12 | Define and set to 1 if the target system supports POSIX semaphores 13 | and you want OpenEXR to use them; otherwise, OpenEXR will use its 14 | own semaphore implementation. 15 | */ 16 | #if defined(_MSC_VER) || defined(__MINGW32__) 17 | #undef HAVE_POSIX_SEMAPHORES 18 | #else 19 | #undef HAVE_POSIX_SEMAPHORES 20 | #endif 21 | 22 | /** 23 | Define and set to 1 if the target system has support for large stack sizes. 24 | */ 25 | #undef ILMBASE_HAVE_LARGE_STACK 26 | 27 | /** 28 | Current (internal) library namepace name and corresponding public client namespaces. 29 | */ 30 | #define ILMBASE_INTERNAL_NAMESPACE_CUSTOM 1 31 | #define IMATH_INTERNAL_NAMESPACE Imath_2_2 32 | #define IEX_INTERNAL_NAMESPACE Iex_2_2 33 | #define ILMTHREAD_INTERNAL_NAMESPACE IlmThread_2_2 34 | 35 | #define IMATH_NAMESPACE Imath 36 | #define IEX_NAMESPACE Iex 37 | #define ILMTHREAD_NAMESPACE IlmThread 38 | 39 | /** 40 | Required for system-specific debug trap code in IexBaseExc.cpp 41 | */ 42 | #ifdef _WIN32 43 | #define PLATFORM_WINDOWS 1 44 | #endif 45 | 46 | // 47 | // Version information 48 | // 49 | #define ILMBASE_VERSION_STRING "2.2.1" 50 | #define ILMBASE_PACKAGE_STRING "IlmBase 2.2.1" 51 | 52 | #define ILMBASE_VERSION_MAJOR 2 53 | #define ILMBASE_VERSION_MINOR 2 54 | #define ILMBASE_VERSION_PATCH 1 55 | 56 | // Version as a single hex number, e.g. 0x01000300 == 1.0.3 57 | #define ILMBASE_VERSION_HEX ((ILMBASE_VERSION_MAJOR << 24) | \ 58 | (ILMBASE_VERSION_MINOR << 16) | \ 59 | (ILMBASE_VERSION_PATCH << 8)) 60 | 61 | 62 | -------------------------------------------------------------------------------- /Source/OpenEXR/Imath/ImathBox.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright (c) 2004, Industrial Light & Magic, a division of Lucas 4 | // Digital Ltd. LLC 5 | // 6 | // All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without 9 | // modification, are permitted provided that the following conditions are 10 | // met: 11 | // * Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // * Redistributions in binary form must reproduce the above 14 | // copyright notice, this list of conditions and the following disclaimer 15 | // in the documentation and/or other materials provided with the 16 | // distribution. 17 | // * Neither the name of Industrial Light & Magic nor the names of 18 | // its contributors may be used to endorse or promote products derived 19 | // from this software without specific prior written permission. 20 | // 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | // 33 | /////////////////////////////////////////////////////////////////////////// 34 | 35 | #include "ImathBox.h" 36 | 37 | // this file is necessary for template instantiation on windows 38 | -------------------------------------------------------------------------------- /Source/OpenEXR/OpenEXRConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // Define and set to 1 if the target system supports a proc filesystem 3 | // compatible with the Linux kernel's proc filesystem. Note that this 4 | // is only used by a program in the IlmImfTest test suite, it's not 5 | // used by any OpenEXR library or application code. 6 | // 7 | 8 | #undef OPENEXR_IMF_HAVE_LINUX_PROCFS 9 | 10 | // 11 | // Define and set to 1 if the target system is a Darwin-based system 12 | // (e.g., OS X). 13 | // 14 | 15 | /* #undef OPENEXR_IMF_HAVE_DARWIN */ 16 | 17 | // 18 | // Define and set to 1 if the target system has a complete 19 | // implementation, specifically if it supports the std::right 20 | // formatter. 21 | // 22 | 23 | #define OPENEXR_IMF_HAVE_COMPLETE_IOMANIP 1 24 | 25 | // 26 | // Define and set to 1 if the target system has support for large 27 | // stack sizes. 28 | // 29 | 30 | #define OPENEXR_IMF_HAVE_LARGE_STACK 1 31 | 32 | // 33 | // Define if we can support GCC style inline asm with AVX instructions 34 | // 35 | 36 | #undef OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX 37 | 38 | // 39 | // Define if we can use sysconf(_SC_NPROCESSORS_ONLN) to get CPU count 40 | // 41 | 42 | #undef OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN 43 | 44 | // 45 | // Current internal library namepace name 46 | // 47 | #define OPENEXR_IMF_INTERNAL_NAMESPACE_CUSTOM 1 48 | #define OPENEXR_IMF_INTERNAL_NAMESPACE Imf_2_2 49 | 50 | // 51 | // Current public user namepace name 52 | // 53 | 54 | /* #undef OPENEXR_IMF_NAMESPACE_CUSTOM */ 55 | #define OPENEXR_IMF_NAMESPACE Imf 56 | 57 | // 58 | // Version string for runtime access 59 | // 60 | 61 | #define OPENEXR_VERSION_STRING "2.2.0" 62 | #define OPENEXR_PACKAGE_STRING "OpenEXR 2.2.0" 63 | 64 | #define OPENEXR_VERSION_MAJOR 2 65 | #define OPENEXR_VERSION_MINOR 2 66 | #define OPENEXR_VERSION_PATCH 0 67 | 68 | // Version as a single hex number, e.g. 0x01000300 == 1.0.3 69 | #define OPENEXR_VERSION_HEX ((OPENEXR_VERSION_MAJOR << 24) | \ 70 | (OPENEXR_VERSION_MINOR << 16) | \ 71 | (OPENEXR_VERSION_PATCH << 8)) 72 | 73 | -------------------------------------------------------------------------------- /Source/Quantizers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/Quantizers.h -------------------------------------------------------------------------------- /Source/ToneMapping.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Source/ToneMapping.h -------------------------------------------------------------------------------- /Source/ZLib/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright notice: 2 | 3 | (C) 1995-2022 Jean-loup Gailly and Mark Adler 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Jean-loup Gailly Mark Adler 22 | jloup@gzip.org madler@alumni.caltech.edu 23 | -------------------------------------------------------------------------------- /Source/ZLib/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /Source/ZLib/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /Source/ZLib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /TestAPI/.gitignore: -------------------------------------------------------------------------------- 1 | # Test Suite output files # 2 | ########################### 3 | 4 | blob.png 5 | buffer.png 6 | clone-stream.tif 7 | clone.tif 8 | dump.png 9 | mpage-mstream-redirect.tif 10 | mpage-mstream.tif 11 | mpages.tif 12 | page0.TIFF 13 | page1.TIFF 14 | page2.TIFF 15 | raw_exif.jpg 16 | redirect-stream.tif 17 | sample.gif 18 | sample.ico 19 | sample.tif 20 | test.jpg 21 | TestImageType.tif 22 | test_view.bmp 23 | viewport.png 24 | zoneplate.png 25 | -------------------------------------------------------------------------------- /TestAPI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_executable(MainTestSuite 3 | MainTestSuite.cpp 4 | testChannels.cpp 5 | testHeaderOnly.cpp 6 | testImageType.cpp 7 | testJPEG.cpp 8 | testMemIO.cpp 9 | testMPage.cpp 10 | testMPageMemory.cpp 11 | testMPageStream.cpp 12 | testPlugins.cpp 13 | testThumbnail.cpp 14 | testTools.cpp 15 | testWrappedBuffer.cpp 16 | ) 17 | 18 | if (BUILD_TESTS) 19 | target_link_libraries(MainTestSuite FreeImage) 20 | if (DEFINED PNG_LIBRARY) 21 | target_link_libraries(MainTestSuite ${PNG_LIBRARY}) 22 | endif() 23 | if (DEFINED ZLIB_LIBRARY) 24 | target_link_libraries(MainTestSuite ${ZLIB_LIBRARY}) 25 | endif() 26 | 27 | if(APPLE) 28 | set_target_properties(MainTestSuite PROPERTIES 29 | MACOSX_BUNDLE TRUE 30 | XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "com.yourcompany.MainTestSuite" 31 | ) 32 | endif() 33 | 34 | add_test(NAME MainTestSuite WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/TestAPI COMMAND $) 35 | endif () 36 | -------------------------------------------------------------------------------- /TestAPI/MainTestSuite.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/MainTestSuite.cpp -------------------------------------------------------------------------------- /TestAPI/Makefile: -------------------------------------------------------------------------------- 1 | 2 | default: all 3 | 4 | all: 5 | g++ -I../Dist/ *.cpp ../Dist/libfreeimage.a -o testAPI 6 | 7 | clean: 8 | rm -f *.o testAPI *.png *.tif 9 | -------------------------------------------------------------------------------- /TestAPI/Test.2017.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 15 3 | VisualStudioVersion = 15.0.28307.1433 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "Test.2017.vcxproj", "{47EC92F9-8B13-4A52-B80E-9EEC1BFFED99}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|x64 = Debug|x64 10 | Release|x64 = Release|x64 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {47EC92F9-8B13-4A52-B80E-9EEC1BFFED99}.Debug|x64.ActiveCfg = Debug|x64 14 | {47EC92F9-8B13-4A52-B80E-9EEC1BFFED99}.Debug|x64.Build.0 = Debug|x64 15 | {47EC92F9-8B13-4A52-B80E-9EEC1BFFED99}.Release|x64.ActiveCfg = Release|x64 16 | {47EC92F9-8B13-4A52-B80E-9EEC1BFFED99}.Release|x64.Build.0 = Release|x64 17 | EndGlobalSection 18 | GlobalSection(SolutionProperties) = preSolution 19 | HideSolutionNode = FALSE 20 | EndGlobalSection 21 | GlobalSection(ExtensibilityGlobals) = postSolution 22 | SolutionGuid = {19FF9B86-98DD-4DE8-ACFA-AFC6B0481C15} 23 | EndGlobalSection 24 | EndGlobal 25 | -------------------------------------------------------------------------------- /TestAPI/TestSuite.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/TestSuite.h -------------------------------------------------------------------------------- /TestAPI/exif.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/exif.jpg -------------------------------------------------------------------------------- /TestAPI/exif.jxr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/exif.jxr -------------------------------------------------------------------------------- /TestAPI/sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/sample.png -------------------------------------------------------------------------------- /TestAPI/testChannels.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testChannels.cpp -------------------------------------------------------------------------------- /TestAPI/testHeaderOnly.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testHeaderOnly.cpp -------------------------------------------------------------------------------- /TestAPI/testImageType.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testImageType.cpp -------------------------------------------------------------------------------- /TestAPI/testJPEG.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testJPEG.cpp -------------------------------------------------------------------------------- /TestAPI/testMPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testMPage.cpp -------------------------------------------------------------------------------- /TestAPI/testMPageMemory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testMPageMemory.cpp -------------------------------------------------------------------------------- /TestAPI/testMPageStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testMPageStream.cpp -------------------------------------------------------------------------------- /TestAPI/testMemIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testMemIO.cpp -------------------------------------------------------------------------------- /TestAPI/testPlugins.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testPlugins.cpp -------------------------------------------------------------------------------- /TestAPI/testThumbnail.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testThumbnail.cpp -------------------------------------------------------------------------------- /TestAPI/testTools.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testTools.cpp -------------------------------------------------------------------------------- /TestAPI/testWrappedBuffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/TestAPI/testWrappedBuffer.cpp -------------------------------------------------------------------------------- /Whatsnew.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Whatsnew.txt -------------------------------------------------------------------------------- /Wrapper/Delphi/WhatsNew_Delphi.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/WhatsNew_Delphi.txt -------------------------------------------------------------------------------- /Wrapper/Delphi/_clean.bat: -------------------------------------------------------------------------------- 1 | del /S *.~* 2 | del /S *.dcu 3 | del /S *.dsk 4 | del /S *.cfg 5 | del /S *.dof 6 | del /S *.obj 7 | del /S *.hpp 8 | del /S *.ddp 9 | del /S *.mps 10 | del /S *.mpt 11 | del /S *.bak 12 | del /S *.exe 13 | del /S *.stat -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/ImagePreview/ImagePreview.dpr: -------------------------------------------------------------------------------- 1 | program ImagePreview; 2 | 3 | uses 4 | Forms, 5 | MainFrm in 'MainFrm.pas' {MainForm}; 6 | 7 | {$R *.res} 8 | 9 | begin 10 | Application.Initialize; 11 | Application.CreateForm(TMainForm, MainForm); 12 | Application.Run; 13 | end. 14 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/ImagePreview/ImagePreview.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/demo/ImagePreview/ImagePreview.res -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/ImagePreview/Readme.txt: -------------------------------------------------------------------------------- 1 | This is a simple image viewing application that uses the FreeImage library to display images in many different formats. 2 | 3 | The app displays the image whose name is passed in as a command line argument. 4 | 5 | 6 | To compile the app you will also need the Graphics32 library available from www.g32.org. It has been tested with version 1.5.1 of Graphics32. 7 | 8 | SJB. 9 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/ImagePreview/Tiger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/demo/ImagePreview/Tiger.jpg -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/MultiBitmap/MultiBitmap.dpr: -------------------------------------------------------------------------------- 1 | program MultiBitmap; 2 | 3 | uses 4 | Forms, 5 | mbMainForm in 'mbMainForm.pas' {MainForm}; 6 | 7 | {$R *.res} 8 | 9 | begin 10 | Application.Initialize; 11 | Application.CreateForm(TMainForm, MainForm); 12 | Application.Run; 13 | end. 14 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/MultiBitmap/MultiBitmap.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/demo/MultiBitmap/MultiBitmap.res -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/MultiBitmap/MultiBitmap.stat: -------------------------------------------------------------------------------- 1 | [Stats] 2 | EditorSecs=82 3 | DesignerSecs=5 4 | InspectorSecs=1 5 | CompileSecs=850 6 | OtherSecs=5 7 | StartTime=20.12.2004 11:40:22 8 | RealKeys=0 9 | EffectiveKeys=0 10 | DebugSecs=19 11 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/TargaUnit/Readme.txt: -------------------------------------------------------------------------------- 1 | TargaImage.pas is a TGraphic descendant for Delphi. Installing it 2 | will allow Delphi TImage and TDBImage components to read Targa files 3 | just like BMP & WMF files with no coding on your part. 4 | 5 | It also adds the TGA file type to the Delphi Open/Save Picture dialog 6 | boxes. 7 | 8 | To install this unit, place it in your one of your library folders 9 | and make it available to all your Delphi projects by using 10 | Component>Install Component from the Delphi menus. 11 | 12 | NOTE: any Delphi applications using this *must* have FreeImage.dll 13 | installed in your application's folder, or somewhere in the path. 14 | 15 | ----------------------- 16 | 17 | Tommy 18 | Edinburgh, Scotland 19 | LeTene@battlefieldeurope.org 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/WinBitmap/MainDemo.dpr: -------------------------------------------------------------------------------- 1 | program MainDemo; 2 | 3 | uses 4 | Forms, 5 | MainForm in 'MainForm.pas' {fwbMainForm}; 6 | 7 | {$R *.res} 8 | 9 | begin 10 | Application.Initialize; 11 | Application.CreateForm(TfwbMainForm, fwbMainForm); 12 | Application.Run; 13 | end. 14 | -------------------------------------------------------------------------------- /Wrapper/Delphi/demo/WinBitmap/MainDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/demo/WinBitmap/MainDemo.res -------------------------------------------------------------------------------- /Wrapper/Delphi/license.txt: -------------------------------------------------------------------------------- 1 | The contents of FreeImageDW package are subject to the FreeImage Public License Version 1.0 (the "License"); you may not use this package except in compliance with the License. You may obtain a copy of the License at http://home.wxs.nl/~flvdberg/freeimage-license.txt 2 | 3 | Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. -------------------------------------------------------------------------------- /Wrapper/Delphi/src/FreeBitmap.pas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/src/FreeBitmap.pas -------------------------------------------------------------------------------- /Wrapper/Delphi/src/FreeImage.pas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/src/FreeImage.pas -------------------------------------------------------------------------------- /Wrapper/Delphi/src/Version.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/Delphi/src/Version.inc -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/FreeImageIO.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeImageIO.Net", "FreeImageIO.Net.vcproj", "{E87923FF-1FBD-450D-9287-539A90DE9776}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {E87923FF-1FBD-450D-9287-539A90DE9776}.Debug.ActiveCfg = Debug|Win32 13 | {E87923FF-1FBD-450D-9287-539A90DE9776}.Debug.Build.0 = Debug|Win32 14 | {E87923FF-1FBD-450D-9287-539A90DE9776}.Release.ActiveCfg = Release|Win32 15 | {E87923FF-1FBD-450D-9287-539A90DE9776}.Release.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | FreeImageIO.Net 3 | 4 | Author: Marcos Pernambuco Motta (marcos.pernambuco@gmail.com) 5 | ======================================================================== 6 | 7 | This library allows programs that use FreeImage.Net to save images to or 8 | to load images from .Net Streams. 9 | 10 | The class FreeImageStream implements a FreeImageIO handler and routes 11 | IO calls (read,write,tell and seek) to a wrapped System.IO.Stream. 12 | 13 | Example: 14 | 15 | using FreeImageAPI; 16 | using FreeImageIODotNet; 17 | 18 | uint dib = FreeImageAPI.FreeImage.Allocate(width,height,32,0,0,0); 19 | 20 | // ... Image handling code goes here 21 | 22 | System.IO.FileStream stream = new System.IO.FileStream(@"c:\sample.png",System.IO.FileMode.Create); 23 | FreeImageStream imageStream = new FreeImageStream(stream); 24 | imageStream.SaveImage((int)FREE_IMAGE_FORMAT.FIF_PNG,dib,0); 25 | stream.Close(); 26 | 27 | Compile with VS2003. 28 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/Stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // FreeImageIO.Net.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/Stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, 3 | // but are changed infrequently 4 | 5 | #pragma once 6 | 7 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/app.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cpp/FreeImageIO/app.ico -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/app.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | 7 | ///////////////////////////////////////////////////////////////////////////// 8 | #undef APSTUDIO_READONLY_SYMBOLS 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // English (U.S.) resources 12 | 13 | 14 | ///////////////////////////////////////////////////////////////////////////// 15 | // 16 | // Icon 17 | // 18 | 19 | // Icon placed first or with lowest ID value becomes application icon 20 | 21 | LANGUAGE 9, 1 22 | #pragma code_page(1252) 23 | 1 ICON "app.ico" 24 | 25 | #ifdef APSTUDIO_INVOKED 26 | ///////////////////////////////////////////////////////////////////////////// 27 | // 28 | // TEXTINCLUDE 29 | // 30 | 31 | 1 TEXTINCLUDE 32 | BEGIN 33 | "resource.h\0" 34 | "\0" 35 | END 36 | 37 | #endif // APSTUDIO_INVOKED 38 | 39 | ///////////////////////////////////////////////////////////////////////////// 40 | 41 | 42 | 43 | #ifndef APSTUDIO_INVOKED 44 | ///////////////////////////////////////////////////////////////////////////// 45 | // 46 | // Generated from the TEXTINCLUDE 3 resource. 47 | // 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | #endif // not APSTUDIO_INVOKED 52 | 53 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cpp/FreeImageIO/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by app.rc 4 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Bin/delete.me: -------------------------------------------------------------------------------- 1 | You may safely delete this file. 2 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Content.txt: -------------------------------------------------------------------------------- 1 | 2 | This file gives you a short description of the .NET wrapper's folders 3 | and what's located in them. 4 | 5 | 6 | "Doc" 7 | Sandcastle Help File Builder project file for creating a Microsoft Help API 8 | documentation (CHM file). 9 | FreeImage.NET uses Eric Woodruff's Sandcastle Help File Builder GUI to 10 | generate the API documentation. See http://www.codeplex.com/SHFB 11 | 12 | "Library" 13 | Source code of the C# .NET wrapper. Builds the FreeImageNET.dll. 14 | 15 | "Samples" 16 | Example projects showing how to use the wrapper. 17 | 18 | "SourceFileMerger" 19 | Program to merge all the wrapper's source files into a single source file 20 | for easy integration into your projects on source code basis. 21 | 22 | "UnitTest" 23 | NUnit-based test project for the .NET wrapper. NUnit needs to be installed 24 | for this project to work. 25 | 26 | "UnitTestData" (not in CVS) 27 | Several images in each available color depth used by "UnitTest". 28 | 29 | "clear.bat" 30 | Batch file to clear the whole project, removing all temporary files. 31 | 32 | "FreeImage.chm" (not in CVS) 33 | The .NET wrapper's API documentation. Build with Microsoft's Sandcastle 34 | project from C# source code documentation. 35 | 36 | "FreeImage.NET.nunit" 37 | NUnit project file. NUnit needs to be installed for this project to work. 38 | 39 | "FreeImage.NET.sln" 40 | The Microsoft Visual Studio 2005 solution file. 41 | 42 | "Whats_New.NET.txt" 43 | The changelog. -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Doc/SHFB.txt: -------------------------------------------------------------------------------- 1 | Eric Woodruff's Sandcastle Help File Builder 1.6.x.x (SHFB) is needed for FreeImage.NET wrapper 2 | help file creation. It can be downloaded from http://www.codeplex.com/SHFB 3 | 4 | As of FreeImage.NET version 1.08, version 1.8.01 of Sandcastle Help File Builder is used by FreeImage.NET 5 | and thus needed for FreeImage.NET wrapper help file creation. It can still be downloaded 6 | from http://www.codeplex.com/SHFB 7 | 8 | Microsoft's Sandcaste is also needed for SHFB to run correctly. It can be downloaded from 9 | http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE-A715-696E3A4873B2&displaylang=en 10 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/FreeImage.NET.nunit: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Classes/MetadataModels.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Library/Classes/MetadataModels.cs -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Classes/Scanline.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace FreeImageAPI 7 | { 8 | /// 9 | /// Provides methods for working with generic bitmap scanlines. 10 | /// 11 | /// Type of the bitmaps' scanlines. 12 | public sealed class Scanline : MemoryArray where T : struct 13 | { 14 | /// 15 | /// Initializes a new instance based on the specified FreeImage bitmap. 16 | /// 17 | /// Handle to a FreeImage bitmap. 18 | public Scanline(FIBITMAP dib) 19 | : this(dib, 0) 20 | { 21 | } 22 | 23 | /// 24 | /// Initializes a new instance based on the specified FreeImage bitmap. 25 | /// 26 | /// Handle to a FreeImage bitmap. 27 | /// Index of the zero based scanline. 28 | public Scanline(FIBITMAP dib, int scanline) 29 | : this(dib, scanline, (int)(typeof(T) == typeof(FI1BIT) ? 30 | FreeImage.GetBPP(dib) * FreeImage.GetWidth(dib) : 31 | typeof(T) == typeof(FI4BIT) ? 32 | FreeImage.GetBPP(dib) * FreeImage.GetWidth(dib) / 4 : 33 | (FreeImage.GetBPP(dib) * FreeImage.GetWidth(dib)) / (Marshal.SizeOf(typeof(T)) * 8))) 34 | { 35 | } 36 | 37 | internal Scanline(FIBITMAP dib, int scanline, int length) 38 | : base(FreeImage.GetScanLine(dib, scanline), length) 39 | { 40 | if (dib.IsNull) 41 | { 42 | throw new ArgumentNullException("dib"); 43 | } 44 | if ((scanline < 0) || (scanline >= FreeImage.GetHeight(dib))) 45 | { 46 | throw new ArgumentOutOfRangeException("scanline"); 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Enumerations/DisposalMethodType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace FreeImageAPI.Metadata 6 | { 7 | /// 8 | /// Specifies how a single frame will be handled after being displayed. 9 | /// 10 | public enum DisposalMethodType : byte 11 | { 12 | /// 13 | /// Same behavior as but should not be used. 14 | /// 15 | Unspecified, 16 | 17 | /// 18 | /// The image is left in place and will be overdrawn by the next image. 19 | /// 20 | Leave, 21 | 22 | /// 23 | /// The area of the image will be blanked out by its background. 24 | /// 25 | Background, 26 | 27 | /// 28 | /// Restores the the area of the image to the state it was before it 29 | /// has been dawn. 30 | /// 31 | Previous, 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Enumerations/FREE_IMAGE_QUANTIZE.cs: -------------------------------------------------------------------------------- 1 | // ========================================================== 2 | // FreeImage 3 .NET wrapper 3 | // Original FreeImage 3 functions and .NET compatible derived functions 4 | // 5 | // Design and implementation by 6 | // - Jean-Philippe Goerke (jpgoerke@users.sourceforge.net) 7 | // - Carsten Klein (cklein05@users.sourceforge.net) 8 | // 9 | // Contributors: 10 | // - David Boland (davidboland@vodafone.ie) 11 | // 12 | // Main reference : MSDN Knowlede Base 13 | // 14 | // This file is part of FreeImage 3 15 | // 16 | // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY 17 | // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES 18 | // THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE 19 | // OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED 20 | // CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT 21 | // THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY 22 | // SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL 23 | // PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER 24 | // THIS DISCLAIMER. 25 | // 26 | // Use at your own risk! 27 | // ========================================================== 28 | 29 | // ========================================================== 30 | // CVS 31 | // $Revision: 1.1 $ 32 | // $Date: 2007/11/28 15:33:39 $ 33 | // $Id: FREE_IMAGE_QUANTIZE.cs,v 1.1 2007/11/28 15:33:39 cklein05 Exp $ 34 | // ========================================================== 35 | 36 | namespace FreeImageAPI 37 | { 38 | /// 39 | /// Color quantization algorithms. 40 | /// Constants used in FreeImage_ColorQuantize. 41 | /// 42 | public enum FREE_IMAGE_QUANTIZE 43 | { 44 | /// 45 | /// Xiaolin Wu color quantization algorithm 46 | /// 47 | FIQ_WUQUANT = 0, 48 | /// 49 | /// NeuQuant neural-net quantization algorithm by Anthony Dekker 50 | /// 51 | FIQ_NNQUANT = 1 52 | } 53 | } -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Enumerations/ICC_FLAGS.cs: -------------------------------------------------------------------------------- 1 | // ========================================================== 2 | // FreeImage 3 .NET wrapper 3 | // Original FreeImage 3 functions and .NET compatible derived functions 4 | // 5 | // Design and implementation by 6 | // - Jean-Philippe Goerke (jpgoerke@users.sourceforge.net) 7 | // - Carsten Klein (cklein05@users.sourceforge.net) 8 | // 9 | // Contributors: 10 | // - David Boland (davidboland@vodafone.ie) 11 | // 12 | // Main reference : MSDN Knowlede Base 13 | // 14 | // This file is part of FreeImage 3 15 | // 16 | // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY 17 | // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES 18 | // THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE 19 | // OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED 20 | // CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT 21 | // THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY 22 | // SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL 23 | // PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER 24 | // THIS DISCLAIMER. 25 | // 26 | // Use at your own risk! 27 | // ========================================================== 28 | 29 | // ========================================================== 30 | // CVS 31 | // $Revision: 1.1 $ 32 | // $Date: 2007/11/28 15:33:38 $ 33 | // $Id: ICC_FLAGS.cs,v 1.1 2007/11/28 15:33:38 cklein05 Exp $ 34 | // ========================================================== 35 | 36 | namespace FreeImageAPI 37 | { 38 | /// 39 | /// Flags for ICC profiles. 40 | /// 41 | [System.Flags] 42 | public enum ICC_FLAGS : ushort 43 | { 44 | /// 45 | /// Default value. 46 | /// 47 | FIICC_DEFAULT = 0x00, 48 | /// 49 | /// The color is CMYK. 50 | /// 51 | FIICC_COLOR_IS_CMYK = 0x01 52 | } 53 | } -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/FreeImageStaticImports.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Library/FreeImageStaticImports.cs -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/FreeImageWrapper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Library/FreeImageWrapper.cs -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | // 6 | [assembly: AssemblyTitle("FreeImage.NET")] 7 | [assembly: AssemblyDescription(".NET wrapper for the FreeImage 3.15.1 Library")] 8 | [assembly: AssemblyConfiguration("All")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("FreeImage.NET Wrapper")] 11 | [assembly: AssemblyCopyright("Copyright 2003-2011, FreeImage, DataGis")] 12 | [assembly: AssemblyTrademark("")] 13 | [assembly: AssemblyCulture("")] 14 | [assembly: AssemblyVersion("3.15.1.0")] 15 | [assembly: AssemblyDelaySign(false)] 16 | [assembly: AssemblyKeyFile("")] 17 | [assembly: AssemblyFileVersionAttribute("3.15.1.0")] 18 | [assembly: ComVisibleAttribute(false)] 19 | [assembly: NeutralResourcesLanguageAttribute("")] 20 | [assembly: GuidAttribute("64a4c935-b757-499c-ab8c-6110316a9e51")] 21 | // -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Library/build.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | IF NOT EXIST bin MD bin 3 | IF NOT EXIST bin\Release MD bin\Release 4 | csc.exe /out:bin\Release\FreeImageNET.dll /target:library /doc:bin\Release\FreeImageNET.XML /debug- /o /nowarn:419 /unsafe+ /filealign:512 /recurse:*.cs 5 | IF EXIST ..\Bin copy bin\Release\FreeImageNET.dll ..\Bin > NUL 6 | IF EXIST ..\Bin copy bin\Release\FreeImageNET.XML ..\Bin > NUL 7 | pause -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 01 - Loading and saving/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("ac0569fe-c021-4f40-bfe9-275baf0fd21a")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 01 - Loading and saving/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 01 - Loading and saving/Sample.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 02 - Multipaged bitmaps/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("35960522-c01a-40d2-a86b-37b9839b131c")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 02 - Multipaged bitmaps/multipaged.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 02 - Multipaged bitmaps/multipaged.tif -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 03 - Allocating/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("7139f1dc-3312-4c76-aeb3-891f869409b3")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 04 - Getting bitmap informations/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("7c8fdc9a-a8f9-4996-99c8-9df47513edeb")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 05 - Working with pixels/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("fd43331d-5ea4-40f8-86d5-8f820d606912")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 05 - Working with pixels/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 05 - Working with pixels/Sample.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 05 - Working with pixels/Sample.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 05 - Working with pixels/Sample.tif -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 06 - Converting/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("69a8cbdd-43da-49e3-8d0b-2680c4ca2851")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 06 - Converting/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 06 - Converting/Sample.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 07 - ICC Profiles/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("c9991d1d-684a-4736-b088-369a216b35b6")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 07 - ICC Profiles/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 07 - ICC Profiles/Sample.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 08 - Creating a plugin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("dc891ffc-ab5c-451f-97da-2c0d5d90edcc")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 08 - Creating a plugin/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/Samples/Sample 08 - Creating a plugin/Sample.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 09 - Working with streams/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("7f29fbaa-d2b3-4011-b34f-5a109bc282af")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 10 - Metadata/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("e8da4fa8-cc15-4b0e-8c57-d55ceb771559")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 11 - Using the FreeImageBitmap class/MetaDataFrame.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Windows.Forms; 4 | using FreeImageAPI; 5 | using FreeImageAPI.Metadata; 6 | 7 | namespace Sample11 8 | { 9 | public partial class MetaDataFrame : Form 10 | { 11 | public MetaDataFrame() 12 | { 13 | InitializeComponent(); 14 | } 15 | 16 | private void MetaDataFrame_Load(object sender, EventArgs e) 17 | { 18 | ImageMetadata iMetadata = this.Tag as ImageMetadata; 19 | if (iMetadata != null) 20 | { 21 | bool backup = iMetadata.HideEmptyModels; 22 | iMetadata.HideEmptyModels = false; 23 | try 24 | { 25 | // Get each metadata model 26 | foreach (MetadataModel metadataModel in iMetadata) 27 | { 28 | // Create a new node for each model 29 | TreeNode modelNode = tvMetadata.Nodes.Add(metadataModel.ToString()); 30 | 31 | // Get each metadata tag and create a subnode for it 32 | foreach (MetadataTag metadataTag in metadataModel) 33 | { 34 | modelNode.Nodes.Add(metadataTag.Key + ": " + metadataTag.ToString()); 35 | } 36 | } 37 | } 38 | // Display error message 39 | catch (Exception ex) 40 | { 41 | while (ex.InnerException != null) 42 | ex = ex.InnerException; 43 | MessageBox.Show(ex.ToString(), "Exception caught"); 44 | } 45 | iMetadata.HideEmptyModels = backup; 46 | } 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/Samples/Sample 11 - Using the FreeImageBitmap class/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("219019e1-9a57-46c7-b9d7-3928a9277fd6")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/SourceFileMerger/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("")] 10 | [assembly: AssemblyCopyright("")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("4fcae9f3-1b12-4137-9c5b-047124da37e9")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/UnitTest/NUnit.txt: -------------------------------------------------------------------------------- 1 | NUnit 2.x is needed for FreeImage .NET wrapper unit tests. It can be 2 | downloaded from http://www.nunit.org/ 3 | 4 | After installing NUnit, double click on the NUnit project file 5 | FreeImage.NET.nunit located in the FreeImage .NET wrapper Source folder 6 | to load the project. 7 | 8 | The FreeImage .NET wrapper unit test project UnitTest.csproj, located 9 | under Source\UnitTest, must be compiled in 'Debug' mode prior to opening 10 | the NUnit project. 11 | 12 | The FreeImage .NET wrapper unit test project UnitTest.csproj currently 13 | relies on the FreeImage .NET wrapper single source file, created by the 14 | Source File Merger, located in the Source\SourceFileMerger folder. -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/UnitTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("FreeImageAPI.Properties")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("DataGis")] 9 | [assembly: AssemblyProduct("FreeImageAPI.Properties")] 10 | [assembly: AssemblyCopyright("Copyright © DataGis 2007")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: Guid("51678252-9a4b-492d-96c9-37ebe08d1f29")] 15 | [assembly: AssemblyVersion("1.0.0.0")] 16 | [assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/UnitTest/UnitTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImage.NET/cs/UnitTest/UnitTest.cs -------------------------------------------------------------------------------- /Wrapper/FreeImage.NET/cs/clean.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | rd "Library\bin" /s /q 4 | rd "Library\obj" /s /q 5 | 6 | rd "Samples\Sample 01 - Loading and saving\bin" /s /q 7 | rd "Samples\Sample 01 - Loading and saving\obj" /s /q 8 | 9 | rd "Samples\Sample 02 - Multipaged bitmaps\bin" /s /q 10 | rd "Samples\Sample 02 - Multipaged bitmaps\obj" /s /q 11 | 12 | rd "Samples\Sample 03 - Allocating\bin" /s /q 13 | rd "Samples\Sample 03 - Allocating\obj" /s /q 14 | 15 | rd "Samples\Sample 04 - Getting bitmap informations\bin" /s /q 16 | rd "Samples\Sample 04 - Getting bitmap informations\obj" /s /q 17 | 18 | rd "Samples\Sample 05 - Working with pixels\bin" /s /q 19 | rd "Samples\Sample 05 - Working with pixels\obj" /s /q 20 | 21 | rd "Samples\Sample 06 - Converting\bin" /s /q 22 | rd "Samples\Sample 06 - Converting\obj" /s /q 23 | 24 | rd "Samples\Sample 07 - ICC Profiles\bin" /s /q 25 | rd "Samples\Sample 07 - ICC Profiles\obj" /s /q 26 | 27 | rd "Samples\Sample 08 - Creating a plugin\bin" /s /q 28 | rd "Samples\Sample 08 - Creating a plugin\obj" /s /q 29 | 30 | rd "Samples\Sample 09 - Working with streams\bin" /s /q 31 | rd "Samples\Sample 09 - Working with streams\obj" /s /q 32 | 33 | rd "Samples\Sample 10 - Metadata\bin" /s /q 34 | rd "Samples\Sample 10 - Metadata\obj" /s /q 35 | 36 | rd "Samples\Sample 11 - Using the FreeImageBitmap class\bin" /s /q 37 | rd "Samples\Sample 11 - Using the FreeImageBitmap class\obj" /s /q 38 | 39 | rd "SourceFileMerger\bin" /s /q 40 | rd "SourceFileMerger\obj" /s /q 41 | 42 | rd "UnitTest\bin" /s /q 43 | rd "UnitTest\obj" /s /q 44 | 45 | del "FreeImage.net.VisualState.xml" 46 | del "TestResult.xml" 47 | del *.suo /A:H /S /Q 48 | del *.user /S /Q -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/FreeImagePlus.2017.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio Express 2017 for Windows Desktop 3 | VisualStudioVersion = 12.0.21005.1 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FreeImagePlus", "FreeImagePlus.2017.vcxproj", "{94F36908-A4E2-4533-939D-64FF6EADA5A1}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Win32 = Debug|Win32 10 | Release|Win32 = Release|Win32 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {94F36908-A4E2-4533-939D-64FF6EADA5A1}.Debug|Win32.ActiveCfg = Debug|Win32 14 | {94F36908-A4E2-4533-939D-64FF6EADA5A1}.Debug|Win32.Build.0 = Debug|Win32 15 | {94F36908-A4E2-4533-939D-64FF6EADA5A1}.Release|Win32.ActiveCfg = Release|Win32 16 | {94F36908-A4E2-4533-939D-64FF6EADA5A1}.Release|Win32.Build.0 = Release|Win32 17 | EndGlobalSection 18 | GlobalSection(SolutionProperties) = preSolution 19 | HideSolutionNode = FALSE 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/FreeImagePlus.2017.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {89854f66-f6c5-4c88-bcc7-6141f29b56a1} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {76efef1d-9bed-435d-b007-8156aca779dc} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {b0cfb0e2-0615-4c08-8674-2678f135b147} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files 26 | 27 | 28 | Source Files 29 | 30 | 31 | Source Files 32 | 33 | 34 | Source Files 35 | 36 | 37 | Source Files 38 | 39 | 40 | 41 | 42 | Source Files 43 | 44 | 45 | 46 | 47 | Header Files 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/FreeImagePlus.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/FreeImagePlus.h -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/FreeImagePlus.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/FreeImagePlus.rc -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/clean.bat: -------------------------------------------------------------------------------- 1 | : go the the directory of this script 2 | : drive letter 3 | %~d0 4 | : directory 5 | cd %~dp0 6 | 7 | del dist\*.dll /s /q 8 | del dist\*.lib /s /q 9 | del dist\*.h /s /q 10 | del *.ncb /s /q 11 | del *.plg /s /q 12 | del *.opt /s /q 13 | del *.suo /s /q /a:h 14 | del *.user /s /q 15 | del *.log /s /q 16 | del *.sdf /s /q 17 | del test\page*.tiff 18 | del test\*.png 19 | del test\mpage*.tif 20 | del test\clone*.tif 21 | del test\redirect-stream.tif 22 | rd dist\x64 /s /q 23 | rd dist\x32 /s /q 24 | rd Release /s /q 25 | rd Debug /s /q 26 | rd x64 /s /q 27 | rd Win32 /s /q 28 | rd test\x64 /s /q 29 | rd test\Win32 /s /q 30 | rd test\Debug /s /q 31 | rd test\Release /s /q 32 | rd .vs /s /q 33 | 34 | 35 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/dist/delete.me: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/dist/delete.me -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/doc/footer.html: -------------------------------------------------------------------------------- 1 |
2 |

3 |
4 |

5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/doc/freeimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/doc/freeimage.png -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/doc/freeimagedoc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/doc/freeimagedoc.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FreeImagePlus: Main Page 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 | 15 | 16 | 19 | 20 | 21 |
17 |
FreeImagePlus - FreeImage 3.18.0
18 |
22 |
23 | 30 |
31 |
32 |
33 |
FreeImagePlus Documentation
34 |
35 |
36 |
37 |

38 |
39 |

40 |

A C++ wrapper for FreeImage 3

41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/FreeImagePlus.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/FreeImagePlus.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipImage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipImage.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipMemoryIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipMemoryIO.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipMetadataFind.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipMetadataFind.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipMultiPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipMultiPage.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipTag.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipTag.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/src/fipWinImage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/src/fipWinImage.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTest.2017.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Express 2013 for Windows Desktop 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fipTest", "fipTest.2017.vcxproj", "{66DCA866-A381-42D5-97FB-9792066C0F20}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Debug|Win32.Build.0 = Debug|Win32 18 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Debug|x64.ActiveCfg = Debug|x64 19 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Debug|x64.Build.0 = Debug|x64 20 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Release|Win32.ActiveCfg = Release|Win32 21 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Release|Win32.Build.0 = Release|Win32 22 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Release|x64.ActiveCfg = Release|x64 23 | {66DCA866-A381-42D5-97FB-9792066C0F20}.Release|x64.Build.0 = Release|x64 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTest.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTest.h -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTestMPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTestMPage.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTestMPageMemory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTestMPageMemory.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTestMPageStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTestMPageStream.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/fipTestMemIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/fipTestMemIO.cpp -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/test.jpg -------------------------------------------------------------------------------- /Wrapper/FreeImagePlus/test/test.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/FreeImagePlus/test/test.tif -------------------------------------------------------------------------------- /Wrapper/VB6/src/MFreeImage.bas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/VB6/src/MFreeImage.bas -------------------------------------------------------------------------------- /Wrapper/VB6/src/WhatsNew_VB.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/Wrapper/VB6/src/WhatsNew_VB.txt -------------------------------------------------------------------------------- /clean.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | rm -rf Release 3 | rm -rf Debug 4 | rm -rf Source/FreeImageLib/Debug 5 | rm -rf Source/FreeImageLib/Release 6 | rm -rf Source/Source/Release 7 | rm -rf Source/Source/Debug 8 | rm -rf Source/LibJPEG/Debug 9 | rm -rf Source/LibJPEG/Release 10 | rm -rf Source/LibPNG/Debug 11 | rm -rf Source/LibPNG/Release 12 | rm -rf Source/LibMNG/Debug 13 | rm -rf Source/LibMNG/Release 14 | rm -rf Source/LibTIFF/Debug 15 | rm -rf Source/LibTIFF/Release 16 | rm -rf Source/LibTIFF4/Debug 17 | rm -rf Source/LibTIFF4/Release 18 | rm -rf Source/Zlib/Debug 19 | rm -rf Source/Zlib/Release 20 | rm -rf Source/OpenEXR/Debug 21 | rm -rf Source/OpenEXR/Release 22 | rm -rf Source/LibOpenJPEG/Debug 23 | rm -rf Source/LibOpenJPEG/Release 24 | rm -rf Source/LibRawLite/Debug 25 | rm -rf Source/LibRawLite/Release 26 | rm -rf Source/LibWebP/Debug 27 | rm -rf Source/LibWebP/Release 28 | rm -rf Source/LibJXR/Debug 29 | rm -rf Source/LibJXR/Release 30 | rm -rf TestAPI/Debug 31 | rm -rf TestAPI/Release 32 | find . -name '*.pch' -exec rm -f {} ";" 33 | find . -name '*.ncb' -exec rm -f {} ";" 34 | find . -name '*.opt' -exec rm -f {} ";" 35 | find . -name '*.plg' -exec rm -f {} ";" 36 | find . -name '*.obj' -exec rm -f {} ";" 37 | find . -name '*.dll' -exec rm -f {} ";" 38 | find . -name '*.exe' -exec rm -f {} ";" 39 | find . -name '*.bsc' -exec rm -f {} ";" 40 | find . -name '*.bak' -exec rm -f {} ";" 41 | find . -name '*.pdb' -exec rm -f {} ";" 42 | find . -name '*.sql' -exec rm -f {} ";" 43 | find . -name '*.mdb' -exec rm -f {} ";" 44 | find . -name '*.lib' -exec rm -f {} ";" 45 | find . -name '*.exp' -exec rm -f {} ";" 46 | find . -name '*.ilk' -exec rm -f {} ";" 47 | find . -name '*.idb' -exec rm -f {} ";" 48 | find . -name '*.o' -exec rm -f {} ";" 49 | find . -name '*.o-ppc' -exec rm -f {} ";" 50 | find . -name '*.o-i386' -exec rm -f {} ";" 51 | -------------------------------------------------------------------------------- /cmake/FreeImageConfig.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include("${CMAKE_CURRENT_LIST_DIR}/FreeImageTargets.cmake") 4 | -------------------------------------------------------------------------------- /genfipsrclist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibJPEG Source/LibPNG Source/LibTIFF4 Source/ZLib Source/LibOpenJPEG Source/OpenEXR Source/OpenEXR/Half Source/OpenEXR/Iex Source/OpenEXR/IlmImf Source/OpenEXR/IlmThread Source/OpenEXR/Imath Source/OpenEXR/IexMath Source/LibRawLite Source/LibRawLite/dcraw Source/LibRawLite/internal Source/LibRawLite/libraw Source/LibRawLite/src Source/LibWebP Source/LibJXR Source/LibJXR/common/include Source/LibJXR/image/sys Source/LibJXR/jxrgluelib Wrapper/FreeImagePlus" 4 | 5 | 6 | echo "VER_MAJOR = 3" > fipMakefile.srcs 7 | echo "VER_MINOR = 19.0" >> fipMakefile.srcs 8 | 9 | echo -n "SRCS = " >> fipMakefile.srcs 10 | for DIR in $DIRLIST; do 11 | VCPRJS=`echo $DIR/*.2017.vcxproj` 12 | if [ "$VCPRJS" != "$DIR/*.2017.vcxproj" ]; then 13 | egrep 'ClCompile Include=.*\.(c|cpp)' $DIR/*.2017.vcxproj | cut -d'"' -f2 | tr '\\' '/' | awk '{print "'$DIR'/"$0}' | tr '\r\n' ' ' | tr -s ' ' >> fipMakefile.srcs 14 | fi 15 | done 16 | echo >> fipMakefile.srcs 17 | 18 | echo -n "INCLUDE =" >> fipMakefile.srcs 19 | for DIR in $DIRLIST; do 20 | echo -n " -I$DIR" >> fipMakefile.srcs 21 | done 22 | echo >> fipMakefile.srcs 23 | 24 | -------------------------------------------------------------------------------- /gensrclist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibJPEG Source/LibPNG Source/LibTIFF4 Source/ZLib Source/LibOpenJPEG Source/OpenEXR Source/OpenEXR/Half Source/OpenEXR/Iex Source/OpenEXR/IlmImf Source/OpenEXR/IlmThread Source/OpenEXR/Imath Source/OpenEXR/IexMath Source/LibRawLite Source/LibRawLite/dcraw Source/LibRawLite/internal Source/LibRawLite/libraw Source/LibRawLite/src Source/LibWebP Source/LibJXR Source/LibJXR/common/include Source/LibJXR/image/sys Source/LibJXR/jxrgluelib" 4 | 5 | echo "VER_MAJOR = 3" > Makefile.srcs 6 | echo "VER_MINOR = 19.0" >> Makefile.srcs 7 | 8 | echo -n "SRCS = " >> Makefile.srcs 9 | for DIR in $DIRLIST; do 10 | VCPRJS=`echo $DIR/*.2017.vcxproj` 11 | if [ "$VCPRJS" != "$DIR/*.2017.vcxproj" ]; then 12 | egrep 'ClCompile Include=.*\.(c|cpp)' $DIR/*.2017.vcxproj | cut -d'"' -f2 | tr '\\' '/' | awk '{print "'$DIR'/"$0}' | tr '\r\n' ' ' | tr -s ' ' >> Makefile.srcs 13 | fi 14 | done 15 | echo >> Makefile.srcs 16 | 17 | echo -n "INCLS = " >> Makefile.srcs 18 | find . -name "*.h" -print | xargs echo >> Makefile.srcs 19 | echo >> Makefile.srcs 20 | 21 | echo -n "INCLUDE =" >> Makefile.srcs 22 | for DIR in $DIRLIST; do 23 | echo -n " -I$DIR" >> Makefile.srcs 24 | done 25 | echo >> Makefile.srcs 26 | 27 | -------------------------------------------------------------------------------- /license-gplv3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danoli3/FreeImage/8268e809b0827870763444e8a8e58e0a83a733f5/license-gplv3.txt --------------------------------------------------------------------------------