rfreeimage 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +1 -0
- data/Rakefile +34 -0
- data/ext/rfreeimage/extconf.rb +35 -0
- data/ext/rfreeimage/rfi_main.c +389 -0
- data/lib/rfreeimage/image.rb +26 -0
- data/lib/rfreeimage/version.rb +3 -0
- data/lib/rfreeimage.rb +3 -0
- data/rfreeimage.gemspec +32 -0
- data/vendor/FreeImage/Makefile +34 -0
- data/vendor/FreeImage/Makefile.cygwin +74 -0
- data/vendor/FreeImage/Makefile.fip +84 -0
- data/vendor/FreeImage/Makefile.gnu +83 -0
- data/vendor/FreeImage/Makefile.iphone +96 -0
- data/vendor/FreeImage/Makefile.mingw +136 -0
- data/vendor/FreeImage/Makefile.osx +115 -0
- data/vendor/FreeImage/Makefile.solaris +66 -0
- data/vendor/FreeImage/Makefile.srcs +6 -0
- data/vendor/FreeImage/README.iphone +19 -0
- data/vendor/FreeImage/README.linux +50 -0
- data/vendor/FreeImage/README.minGW +236 -0
- data/vendor/FreeImage/README.osx +44 -0
- data/vendor/FreeImage/README.solaris +67 -0
- data/vendor/FreeImage/Source/CacheFile.h +92 -0
- data/vendor/FreeImage/Source/DeprecationManager/Deprecated.cpp +36 -0
- data/vendor/FreeImage/Source/DeprecationManager/DeprecationMgr.cpp +103 -0
- data/vendor/FreeImage/Source/DeprecationManager/DeprecationMgr.h +83 -0
- data/vendor/FreeImage/Source/FreeImage/BitmapAccess.cpp +1573 -0
- data/vendor/FreeImage/Source/FreeImage/CacheFile.cpp +271 -0
- data/vendor/FreeImage/Source/FreeImage/ColorLookup.cpp +785 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion.cpp +551 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion16_555.cpp +209 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion16_565.cpp +204 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion24.cpp +252 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion32.cpp +345 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion4.cpp +246 -0
- data/vendor/FreeImage/Source/FreeImage/Conversion8.cpp +305 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionFloat.cpp +194 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionRGB16.cpp +144 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionRGBA16.cpp +147 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionRGBAF.cpp +250 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionRGBF.cpp +243 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionType.cpp +699 -0
- data/vendor/FreeImage/Source/FreeImage/ConversionUINT16.cpp +134 -0
- data/vendor/FreeImage/Source/FreeImage/FreeImage.cpp +226 -0
- data/vendor/FreeImage/Source/FreeImage/FreeImageC.c +22 -0
- data/vendor/FreeImage/Source/FreeImage/FreeImageIO.cpp +175 -0
- data/vendor/FreeImage/Source/FreeImage/GetType.cpp +92 -0
- data/vendor/FreeImage/Source/FreeImage/Halftoning.cpp +474 -0
- data/vendor/FreeImage/Source/FreeImage/J2KHelper.cpp +591 -0
- data/vendor/FreeImage/Source/FreeImage/J2KHelper.h +36 -0
- data/vendor/FreeImage/Source/FreeImage/LFPQuantizer.cpp +208 -0
- data/vendor/FreeImage/Source/FreeImage/MNGHelper.cpp +1320 -0
- data/vendor/FreeImage/Source/FreeImage/MemoryIO.cpp +237 -0
- data/vendor/FreeImage/Source/FreeImage/MultiPage.cpp +974 -0
- data/vendor/FreeImage/Source/FreeImage/NNQuantizer.cpp +507 -0
- data/vendor/FreeImage/Source/FreeImage/PSDParser.cpp +1057 -0
- data/vendor/FreeImage/Source/FreeImage/PSDParser.h +271 -0
- data/vendor/FreeImage/Source/FreeImage/PixelAccess.cpp +197 -0
- data/vendor/FreeImage/Source/FreeImage/Plugin.cpp +822 -0
- data/vendor/FreeImage/Source/FreeImage/PluginBMP.cpp +1494 -0
- data/vendor/FreeImage/Source/FreeImage/PluginCUT.cpp +240 -0
- data/vendor/FreeImage/Source/FreeImage/PluginDDS.cpp +655 -0
- data/vendor/FreeImage/Source/FreeImage/PluginEXR.cpp +773 -0
- data/vendor/FreeImage/Source/FreeImage/PluginG3.cpp +433 -0
- data/vendor/FreeImage/Source/FreeImage/PluginGIF.cpp +1407 -0
- data/vendor/FreeImage/Source/FreeImage/PluginHDR.cpp +722 -0
- data/vendor/FreeImage/Source/FreeImage/PluginICO.cpp +824 -0
- data/vendor/FreeImage/Source/FreeImage/PluginIFF.cpp +459 -0
- data/vendor/FreeImage/Source/FreeImage/PluginJ2K.cpp +328 -0
- data/vendor/FreeImage/Source/FreeImage/PluginJNG.cpp +162 -0
- data/vendor/FreeImage/Source/FreeImage/PluginJP2.cpp +328 -0
- data/vendor/FreeImage/Source/FreeImage/PluginJPEG.cpp +1706 -0
- data/vendor/FreeImage/Source/FreeImage/PluginJXR.cpp +1475 -0
- data/vendor/FreeImage/Source/FreeImage/PluginKOALA.cpp +243 -0
- data/vendor/FreeImage/Source/FreeImage/PluginMNG.cpp +153 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPCD.cpp +251 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPCX.cpp +659 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPFM.cpp +409 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPICT.cpp +1343 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPNG.cpp +1115 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPNM.cpp +838 -0
- data/vendor/FreeImage/Source/FreeImage/PluginPSD.cpp +131 -0
- data/vendor/FreeImage/Source/FreeImage/PluginRAS.cpp +512 -0
- data/vendor/FreeImage/Source/FreeImage/PluginRAW.cpp +793 -0
- data/vendor/FreeImage/Source/FreeImage/PluginSGI.cpp +425 -0
- data/vendor/FreeImage/Source/FreeImage/PluginTARGA.cpp +1591 -0
- data/vendor/FreeImage/Source/FreeImage/PluginTIFF.cpp +2631 -0
- data/vendor/FreeImage/Source/FreeImage/PluginWBMP.cpp +372 -0
- data/vendor/FreeImage/Source/FreeImage/PluginWebP.cpp +698 -0
- data/vendor/FreeImage/Source/FreeImage/PluginXBM.cpp +399 -0
- data/vendor/FreeImage/Source/FreeImage/PluginXPM.cpp +487 -0
- data/vendor/FreeImage/Source/FreeImage/TIFFLogLuv.cpp +65 -0
- data/vendor/FreeImage/Source/FreeImage/ToneMapping.cpp +75 -0
- data/vendor/FreeImage/Source/FreeImage/WuQuantizer.cpp +559 -0
- data/vendor/FreeImage/Source/FreeImage/ZLibInterface.cpp +223 -0
- data/vendor/FreeImage/Source/FreeImage/tmoColorConvert.cpp +479 -0
- data/vendor/FreeImage/Source/FreeImage/tmoDrago03.cpp +295 -0
- data/vendor/FreeImage/Source/FreeImage/tmoFattal02.cpp +689 -0
- data/vendor/FreeImage/Source/FreeImage/tmoReinhard05.cpp +260 -0
- data/vendor/FreeImage/Source/FreeImage.h +1153 -0
- data/vendor/FreeImage/Source/FreeImageIO.h +63 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/BSplineRotate.cpp +730 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Background.cpp +895 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Channels.cpp +488 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/ClassicRotate.cpp +917 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Colors.cpp +967 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/CopyPaste.cpp +861 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Display.cpp +230 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Filters.h +287 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Flip.cpp +166 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/JPEGTransform.cpp +623 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/MultigridPoissonSolver.cpp +505 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Rescale.cpp +192 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Resize.cpp +2116 -0
- data/vendor/FreeImage/Source/FreeImageToolkit/Resize.h +196 -0
- data/vendor/FreeImage/Source/LibJPEG/ansi2knr.c +739 -0
- data/vendor/FreeImage/Source/LibJPEG/cderror.h +134 -0
- data/vendor/FreeImage/Source/LibJPEG/cdjpeg.c +181 -0
- data/vendor/FreeImage/Source/LibJPEG/cdjpeg.h +187 -0
- data/vendor/FreeImage/Source/LibJPEG/cjpeg.c +664 -0
- data/vendor/FreeImage/Source/LibJPEG/ckconfig.c +402 -0
- data/vendor/FreeImage/Source/LibJPEG/djpeg.c +617 -0
- data/vendor/FreeImage/Source/LibJPEG/example.c +433 -0
- data/vendor/FreeImage/Source/LibJPEG/jaricom.c +153 -0
- data/vendor/FreeImage/Source/LibJPEG/jcapimin.c +288 -0
- data/vendor/FreeImage/Source/LibJPEG/jcapistd.c +162 -0
- data/vendor/FreeImage/Source/LibJPEG/jcarith.c +944 -0
- data/vendor/FreeImage/Source/LibJPEG/jccoefct.c +454 -0
- data/vendor/FreeImage/Source/LibJPEG/jccolor.c +604 -0
- data/vendor/FreeImage/Source/LibJPEG/jcdctmgr.c +477 -0
- data/vendor/FreeImage/Source/LibJPEG/jchuff.c +1573 -0
- data/vendor/FreeImage/Source/LibJPEG/jcinit.c +84 -0
- data/vendor/FreeImage/Source/LibJPEG/jcmainct.c +297 -0
- data/vendor/FreeImage/Source/LibJPEG/jcmarker.c +719 -0
- data/vendor/FreeImage/Source/LibJPEG/jcmaster.c +856 -0
- data/vendor/FreeImage/Source/LibJPEG/jcomapi.c +106 -0
- data/vendor/FreeImage/Source/LibJPEG/jconfig.h +161 -0
- data/vendor/FreeImage/Source/LibJPEG/jcparam.c +675 -0
- data/vendor/FreeImage/Source/LibJPEG/jcprepct.c +358 -0
- data/vendor/FreeImage/Source/LibJPEG/jcsample.c +545 -0
- data/vendor/FreeImage/Source/LibJPEG/jctrans.c +385 -0
- data/vendor/FreeImage/Source/LibJPEG/jdapimin.c +399 -0
- data/vendor/FreeImage/Source/LibJPEG/jdapistd.c +276 -0
- data/vendor/FreeImage/Source/LibJPEG/jdarith.c +796 -0
- data/vendor/FreeImage/Source/LibJPEG/jdatadst.c +270 -0
- data/vendor/FreeImage/Source/LibJPEG/jdatasrc.c +275 -0
- data/vendor/FreeImage/Source/LibJPEG/jdcoefct.c +741 -0
- data/vendor/FreeImage/Source/LibJPEG/jdcolor.c +748 -0
- data/vendor/FreeImage/Source/LibJPEG/jdct.h +393 -0
- data/vendor/FreeImage/Source/LibJPEG/jddctmgr.c +384 -0
- data/vendor/FreeImage/Source/LibJPEG/jdhuff.c +1554 -0
- data/vendor/FreeImage/Source/LibJPEG/jdinput.c +662 -0
- data/vendor/FreeImage/Source/LibJPEG/jdmainct.c +513 -0
- data/vendor/FreeImage/Source/LibJPEG/jdmarker.c +1511 -0
- data/vendor/FreeImage/Source/LibJPEG/jdmaster.c +543 -0
- data/vendor/FreeImage/Source/LibJPEG/jdmerge.c +401 -0
- data/vendor/FreeImage/Source/LibJPEG/jdpostct.c +290 -0
- data/vendor/FreeImage/Source/LibJPEG/jdsample.c +361 -0
- data/vendor/FreeImage/Source/LibJPEG/jdtrans.c +140 -0
- data/vendor/FreeImage/Source/LibJPEG/jerror.c +253 -0
- data/vendor/FreeImage/Source/LibJPEG/jerror.h +304 -0
- data/vendor/FreeImage/Source/LibJPEG/jfdctflt.c +174 -0
- data/vendor/FreeImage/Source/LibJPEG/jfdctfst.c +230 -0
- data/vendor/FreeImage/Source/LibJPEG/jfdctint.c +4406 -0
- data/vendor/FreeImage/Source/LibJPEG/jidctflt.c +235 -0
- data/vendor/FreeImage/Source/LibJPEG/jidctfst.c +368 -0
- data/vendor/FreeImage/Source/LibJPEG/jidctint.c +5179 -0
- data/vendor/FreeImage/Source/LibJPEG/jinclude.h +91 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemansi.c +167 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemdos.c +638 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemmac.c +289 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemmgr.c +1119 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemname.c +276 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemnobs.c +109 -0
- data/vendor/FreeImage/Source/LibJPEG/jmemsys.h +198 -0
- data/vendor/FreeImage/Source/LibJPEG/jmorecfg.h +442 -0
- data/vendor/FreeImage/Source/LibJPEG/jpegint.h +426 -0
- data/vendor/FreeImage/Source/LibJPEG/jpeglib.h +1180 -0
- data/vendor/FreeImage/Source/LibJPEG/jpegtran.c +577 -0
- data/vendor/FreeImage/Source/LibJPEG/jquant1.c +857 -0
- data/vendor/FreeImage/Source/LibJPEG/jquant2.c +1311 -0
- data/vendor/FreeImage/Source/LibJPEG/jutils.c +227 -0
- data/vendor/FreeImage/Source/LibJPEG/jversion.h +14 -0
- data/vendor/FreeImage/Source/LibJPEG/rdbmp.c +480 -0
- data/vendor/FreeImage/Source/LibJPEG/rdcolmap.c +253 -0
- data/vendor/FreeImage/Source/LibJPEG/rdgif.c +38 -0
- data/vendor/FreeImage/Source/LibJPEG/rdjpgcom.c +515 -0
- data/vendor/FreeImage/Source/LibJPEG/rdppm.c +459 -0
- data/vendor/FreeImage/Source/LibJPEG/rdrle.c +387 -0
- data/vendor/FreeImage/Source/LibJPEG/rdswitch.c +365 -0
- data/vendor/FreeImage/Source/LibJPEG/rdtarga.c +500 -0
- data/vendor/FreeImage/Source/LibJPEG/transupp.c +1763 -0
- data/vendor/FreeImage/Source/LibJPEG/transupp.h +219 -0
- data/vendor/FreeImage/Source/LibJPEG/wrbmp.c +442 -0
- data/vendor/FreeImage/Source/LibJPEG/wrgif.c +399 -0
- data/vendor/FreeImage/Source/LibJPEG/wrjpgcom.c +583 -0
- data/vendor/FreeImage/Source/LibJPEG/wrppm.c +269 -0
- data/vendor/FreeImage/Source/LibJPEG/wrrle.c +305 -0
- data/vendor/FreeImage/Source/LibJPEG/wrtarga.c +253 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/guiddef.h +230 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/wmsal.h +757 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/wmspecstring.h +342 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/wmspecstrings_adt.h +71 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/wmspecstrings_strict.h +1096 -0
- data/vendor/FreeImage/Source/LibJXR/common/include/wmspecstrings_undef.h +406 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/JXRTranscode.c +987 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/decode.c +200 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/decode.h +143 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/postprocess.c +288 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/segdec.c +1205 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/strInvTransform.c +1888 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/strPredQuantDec.c +539 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/strdec.c +3628 -0
- data/vendor/FreeImage/Source/LibJXR/image/decode/strdec_x86.c +1640 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/encode.c +144 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/encode.h +113 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/segenc.c +1186 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/strFwdTransform.c +1111 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/strPredQuantEnc.c +511 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/strenc.c +2370 -0
- data/vendor/FreeImage/Source/LibJXR/image/encode/strenc_x86.c +409 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/adapthuff.c +511 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/ansi.h +61 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/common.h +131 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/image.c +183 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/perfTimer.h +115 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/perfTimerANSI.c +274 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/strPredQuant.c +306 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/strTransform.c +85 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/strTransform.h +50 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/strcodec.c +1251 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/strcodec.h +681 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/windowsmediaphoto.h +515 -0
- data/vendor/FreeImage/Source/LibJXR/image/sys/xplatform_image.h +84 -0
- data/vendor/FreeImage/Source/LibJXR/image/x86/x86.h +58 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRGlue.c +930 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRGlue.h +636 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRGlueJxr.c +2246 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRGluePFC.c +2338 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRMeta.c +905 -0
- data/vendor/FreeImage/Source/LibJXR/jxrgluelib/JXRMeta.h +258 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/bio.c +188 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/bio.h +128 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/cidx_manager.c +239 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/cidx_manager.h +68 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/cio.c +644 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/cio.h +393 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/dwt.c +919 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/dwt.h +116 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/event.c +141 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/event.h +97 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/function_list.c +114 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/function_list.h +126 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/image.c +235 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/image.h +63 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/indexbox_manager.h +148 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/invert.c +289 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/invert.h +59 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/j2k.c +10238 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/j2k.h +838 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/jp2.c +2776 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/jp2.h +490 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/mct.c +319 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/mct.h +149 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/mqc.c +604 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/mqc.h +201 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/openjpeg.c +955 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/openjpeg.h +1475 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_clock.c +59 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_clock.h +54 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_codec.h +160 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_config.h +9 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_config_private.h +16 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_includes.h +175 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_intmath.h +172 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_inttypes.h +43 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_malloc.h +180 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/opj_stdint.h +47 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/phix_manager.c +191 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/pi.c +1870 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/pi.h +182 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/ppix_manager.c +194 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/raw.c +89 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/raw.h +100 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t1.c +1751 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t1.h +157 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t1_generate_luts.c +276 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t1_luts.h +143 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t2.c +1334 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/t2.h +127 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/tcd.c +2123 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/tcd.h +348 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/tgt.c +331 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/tgt.h +140 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/thix_manager.c +134 -0
- data/vendor/FreeImage/Source/LibOpenJPEG/tpix_manager.c +185 -0
- data/vendor/FreeImage/Source/LibPNG/example.c +1061 -0
- data/vendor/FreeImage/Source/LibPNG/png.c +4493 -0
- data/vendor/FreeImage/Source/LibPNG/png.h +3282 -0
- data/vendor/FreeImage/Source/LibPNG/pngconf.h +644 -0
- data/vendor/FreeImage/Source/LibPNG/pngdebug.h +154 -0
- data/vendor/FreeImage/Source/LibPNG/pngerror.c +963 -0
- data/vendor/FreeImage/Source/LibPNG/pngget.c +1213 -0
- data/vendor/FreeImage/Source/LibPNG/pnginfo.h +260 -0
- data/vendor/FreeImage/Source/LibPNG/pnglibconf.h +218 -0
- data/vendor/FreeImage/Source/LibPNG/pngmem.c +281 -0
- data/vendor/FreeImage/Source/LibPNG/pngpread.c +1168 -0
- data/vendor/FreeImage/Source/LibPNG/pngpriv.h +1944 -0
- data/vendor/FreeImage/Source/LibPNG/pngread.c +4121 -0
- data/vendor/FreeImage/Source/LibPNG/pngrio.c +120 -0
- data/vendor/FreeImage/Source/LibPNG/pngrtran.c +4994 -0
- data/vendor/FreeImage/Source/LibPNG/pngrutil.c +4474 -0
- data/vendor/FreeImage/Source/LibPNG/pngset.c +1611 -0
- data/vendor/FreeImage/Source/LibPNG/pngstruct.h +489 -0
- data/vendor/FreeImage/Source/LibPNG/pngtest.c +2011 -0
- data/vendor/FreeImage/Source/LibPNG/pngtrans.c +849 -0
- data/vendor/FreeImage/Source/LibPNG/pngwio.c +168 -0
- data/vendor/FreeImage/Source/LibPNG/pngwrite.c +2455 -0
- data/vendor/FreeImage/Source/LibPNG/pngwtran.c +574 -0
- data/vendor/FreeImage/Source/LibPNG/pngwutil.c +3029 -0
- data/vendor/FreeImage/Source/LibRawLite/dcraw/dcraw.c +15462 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/aahd_demosaic.cpp +706 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/dcb_demosaicing.c +710 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/dcraw_common.cpp +13593 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/dcraw_fileio.cpp +240 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/defines.h +167 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/demosaic_packs.cpp +99 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/dht_demosaic.cpp +873 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/libraw_internal_funcs.h +282 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/libraw_x3f.cpp +1919 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/var_defines.h +216 -0
- data/vendor/FreeImage/Source/LibRawLite/internal/wf_filtering.cpp +1950 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw.h +338 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_alloc.h +99 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_const.h +233 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_datastream.h +238 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_internal.h +225 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_types.h +442 -0
- data/vendor/FreeImage/Source/LibRawLite/libraw/libraw_version.h +62 -0
- data/vendor/FreeImage/Source/LibRawLite/src/libraw_c_api.cpp +230 -0
- data/vendor/FreeImage/Source/LibRawLite/src/libraw_cxx.cpp +4533 -0
- data/vendor/FreeImage/Source/LibRawLite/src/libraw_datastream.cpp +703 -0
- data/vendor/FreeImage/Source/LibTIFF4/mkg3states.c +451 -0
- data/vendor/FreeImage/Source/LibTIFF4/mkspans.c +82 -0
- data/vendor/FreeImage/Source/LibTIFF4/t4.h +292 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_aux.c +358 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_close.c +140 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_codec.c +166 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_color.c +287 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_compress.c +304 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_config.h +97 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_config.vc.h +74 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_config.wince.h +71 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dir.c +1700 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dir.h +308 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dirinfo.c +959 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dirread.c +5640 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dirwrite.c +2910 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_dumpmode.c +143 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_error.c +80 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_extension.c +118 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_fax3.c +1595 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_fax3.h +538 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_fax3sm.c +1260 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_flush.c +118 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_getimage.c +2890 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_jbig.c +213 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_jpeg.c +2354 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_jpeg_12.c +65 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_luv.c +1683 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_lzma.c +495 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_lzw.c +1169 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_next.c +181 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_ojpeg.c +2501 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_open.c +725 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_packbits.c +300 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_pixarlog.c +1442 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_predict.c +764 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_predict.h +77 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_print.c +716 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_read.c +1086 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_strip.c +383 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_swab.c +310 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_thunder.c +207 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_tile.c +299 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_unix.c +325 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_version.c +40 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_vms.c +603 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_warning.c +81 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_win32.c +443 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_wince.c +293 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_write.c +771 -0
- data/vendor/FreeImage/Source/LibTIFF4/tif_zip.c +472 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiff.h +681 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffconf.h +170 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffconf.vc.h +160 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffconf.wince.h +121 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffio.h +557 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffiop.h +367 -0
- data/vendor/FreeImage/Source/LibTIFF4/tiffvers.h +9 -0
- data/vendor/FreeImage/Source/LibTIFF4/uvcode.h +180 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/alphai.h +55 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.alpha.c +167 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.buffer.c +249 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.frame.c +827 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.idec.c +857 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.io.c +640 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.quant.c +110 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.tree.c +525 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.vp8.c +663 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.vp8l.c +1584 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/dec.webp.c +834 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/decode_vp8.h +185 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/vp8i.h +353 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/vp8li.h +136 -0
- data/vendor/FreeImage/Source/LibWebP/src/dec/webpi.h +120 -0
- data/vendor/FreeImage/Source/LibWebP/src/demux/demux.demux.c +957 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.alpha_processing.c +377 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.alpha_processing_mips_dsp_r2.c +139 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.alpha_processing_sse2.c +296 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.argb.c +68 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.argb_mips_dsp_r2.c +108 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.argb_sse2.c +62 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.cost.c +412 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.cost_mips32.c +154 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.cost_mips_dsp_r2.c +107 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.cost_sse2.c +121 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.cpu.c +138 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec.c +760 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec_clip_tables.c +366 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec_mips32.c +585 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c +992 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec_neon.c +1489 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.dec_sse2.c +1284 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc.c +788 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc_avx2.c +24 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc_mips32.c +670 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c +1510 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc_neon.c +932 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.enc_sse2.c +940 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.filters.c +240 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c +404 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.filters_sse2.c +349 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.h +434 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.lossless.c +1838 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.lossless_mips32.c +416 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c +921 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.lossless_neon.c +357 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.lossless_sse2.c +535 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.rescaler.c +115 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.rescaler_mips32.c +192 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.rescaler_mips_dsp_r2.c +210 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.upsampling.c +252 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c +280 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_neon.c +267 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_sse2.c +214 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.yuv.c +166 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.yuv_mips32.c +100 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c +131 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/dsp.yuv_sse2.c +322 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/lossless.h +313 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/mips_macro.h +200 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/neon.h +82 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/yuv.h +321 -0
- data/vendor/FreeImage/Source/LibWebP/src/dsp/yuv_tables_sse2.h +536 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/backward_references.h +202 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/cost.h +69 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.alpha.c +440 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.analysis.c +501 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.backward_references.c +1076 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.config.c +163 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.cost.c +355 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.filter.c +296 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.frame.c +850 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.histogram.c +897 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.iterator.c +456 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.near_lossless.c +160 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.picture.c +290 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.picture_csp.c +1100 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.picture_psnr.c +150 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.picture_rescale.c +285 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.picture_tools.c +206 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.quant.c +1191 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.syntax.c +383 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.token.c +285 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.tree.c +504 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.vp8l.c +1437 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/enc.webpenc.c +379 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/histogram.h +114 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/vp8enci.h +551 -0
- data/vendor/FreeImage/Source/LibWebP/src/enc/vp8li.h +78 -0
- data/vendor/FreeImage/Source/LibWebP/src/mux/mux.anim_encode.c +1241 -0
- data/vendor/FreeImage/Source/LibWebP/src/mux/mux.muxedit.c +696 -0
- data/vendor/FreeImage/Source/LibWebP/src/mux/mux.muxinternal.c +551 -0
- data/vendor/FreeImage/Source/LibWebP/src/mux/mux.muxread.c +544 -0
- data/vendor/FreeImage/Source/LibWebP/src/mux/muxi.h +232 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/bit_reader.h +168 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/bit_reader_inl.h +172 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/bit_writer.h +120 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/color_cache.h +74 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/endian_inl.h +100 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/filters.h +32 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/huffman.h +67 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/huffman_encode.h +60 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/quant_levels.h +36 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/quant_levels_dec.h +35 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/random.h +63 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/rescaler.h +78 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/thread.h +93 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.bit_reader.c +208 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.bit_writer.c +308 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.color_cache.c +49 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.filters.c +76 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.h +121 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.huffman.c +205 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.huffman_encode.c +417 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.quant_levels.c +140 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.quant_levels_dec.c +279 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.random.c +43 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.rescaler.c +82 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.thread.c +309 -0
- data/vendor/FreeImage/Source/LibWebP/src/utils/utils.utils.c +211 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/decode.h +493 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/demux.h +224 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/encode.h +515 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/format_constants.h +88 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/mux.h +507 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/mux_types.h +97 -0
- data/vendor/FreeImage/Source/LibWebP/src/webp/types.h +52 -0
- data/vendor/FreeImage/Source/MapIntrospector.h +212 -0
- data/vendor/FreeImage/Source/Metadata/Exif.cpp +1253 -0
- data/vendor/FreeImage/Source/Metadata/FIRational.cpp +176 -0
- data/vendor/FreeImage/Source/Metadata/FIRational.h +108 -0
- data/vendor/FreeImage/Source/Metadata/FreeImageTag.cpp +353 -0
- data/vendor/FreeImage/Source/Metadata/FreeImageTag.h +500 -0
- data/vendor/FreeImage/Source/Metadata/IPTC.cpp +342 -0
- data/vendor/FreeImage/Source/Metadata/TagConversion.cpp +1094 -0
- data/vendor/FreeImage/Source/Metadata/TagLib.cpp +1618 -0
- data/vendor/FreeImage/Source/Metadata/XTIFF.cpp +766 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/eLut.cpp +114 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/eLut.h +71 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/half.cpp +310 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/half.h +757 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/halfExport.h +27 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/halfFunction.h +179 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/halfLimits.h +102 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/toFloat.cpp +164 -0
- data/vendor/FreeImage/Source/OpenEXR/Half/toFloat.h +16391 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/Iex.h +60 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexBaseExc.cpp +156 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexBaseExc.h +264 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexErrnoExc.h +208 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexExport.h +51 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexForward.h +229 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexMacros.h +170 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexMathExc.h +57 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexNamespace.h +112 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexThrowErrnoExc.cpp +873 -0
- data/vendor/FreeImage/Source/OpenEXR/Iex/IexThrowErrnoExc.h +97 -0
- data/vendor/FreeImage/Source/OpenEXR/IexMath/IexMathFloatExc.cpp +113 -0
- data/vendor/FreeImage/Source/OpenEXR/IexMath/IexMathFloatExc.h +146 -0
- data/vendor/FreeImage/Source/OpenEXR/IexMath/IexMathFpu.cpp +530 -0
- data/vendor/FreeImage/Source/OpenEXR/IexMath/IexMathFpu.h +91 -0
- data/vendor/FreeImage/Source/OpenEXR/IexMath/IexMathIeeeExc.h +62 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmBaseConfig.h +61 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfAcesFile.cpp +633 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfAcesFile.h +324 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfArray.h +285 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.cpp +158 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.h +407 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfAutoArray.h +95 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfB44Compressor.cpp +1072 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfB44Compressor.h +118 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfBoxAttribute.cpp +111 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfBoxAttribute.h +87 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCRgbaFile.cpp +1438 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCRgbaFile.h +555 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChannelList.cpp +322 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChannelList.h +436 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChannelListAttribute.cpp +150 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChannelListAttribute.h +74 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCheckedArithmetic.h +163 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChromaticities.cpp +151 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChromaticities.h +131 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChromaticitiesAttribute.cpp +87 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfChromaticitiesAttribute.h +73 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompositeDeepScanLine.cpp +591 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompositeDeepScanLine.h +142 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompression.h +84 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompressionAttribute.cpp +78 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompressionAttribute.h +64 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompressor.cpp +226 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfCompressor.h +265 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfConvert.cpp +143 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfConvert.h +107 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepCompositing.cpp +110 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepCompositing.h +132 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepFrameBuffer.cpp +230 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepFrameBuffer.h +339 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepImageState.h +96 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepImageStateAttribute.cpp +78 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepImageStateAttribute.h +68 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineInputFile.cpp +2025 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineInputFile.h +276 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineInputPart.cpp +149 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineInputPart.h +181 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineOutputFile.cpp +1552 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineOutputFile.h +244 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineOutputPart.cpp +107 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepScanLineOutputPart.h +168 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp +1979 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledInputFile.h +437 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledInputPart.cpp +273 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledInputPart.h +362 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledOutputFile.cpp +2055 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledOutputFile.h +475 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledOutputPart.cpp +250 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDeepTiledOutputPart.h +394 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDoubleAttribute.cpp +57 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDoubleAttribute.h +59 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDwaCompressor.cpp +3424 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDwaCompressor.h +210 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfDwaCompressorSimd.h +2145 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfEnvmap.cpp +335 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfEnvmap.h +336 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfEnvmapAttribute.cpp +76 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfEnvmapAttribute.h +68 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfExport.h +46 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFastHuf.cpp +768 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFastHuf.h +148 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFloatAttribute.cpp +57 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFloatAttribute.h +58 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFloatVectorAttribute.cpp +84 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFloatVectorAttribute.h +76 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfForward.h +127 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFrameBuffer.cpp +228 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFrameBuffer.h +386 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFramesPerSecond.cpp +76 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfFramesPerSecond.h +94 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfGenericInputFile.cpp +76 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfGenericInputFile.h +58 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfGenericOutputFile.cpp +112 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfGenericOutputFile.h +62 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfHeader.cpp +1283 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfHeader.h +699 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfHuf.cpp +1114 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfHuf.h +82 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfIO.cpp +110 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfIO.h +255 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputFile.cpp +895 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputFile.h +240 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputPart.cpp +114 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputPart.h +84 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputPartData.cpp +51 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputPartData.h +69 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInputStreamMutex.h +68 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfInt64.h +56 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfIntAttribute.cpp +57 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfIntAttribute.h +58 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfKeyCode.cpp +217 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfKeyCode.h +167 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfKeyCodeAttribute.cpp +99 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfKeyCodeAttribute.h +73 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfLineOrder.h +69 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfLineOrderAttribute.cpp +78 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfLineOrderAttribute.h +72 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfLut.cpp +178 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfLut.h +188 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMatrixAttribute.cpp +263 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMatrixAttribute.h +83 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMisc.cpp +1872 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMisc.h +466 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiPartInputFile.cpp +783 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiPartInputFile.h +128 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp +519 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiPartOutputFile.h +118 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiView.cpp +435 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfMultiView.h +187 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfName.h +150 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfNamespace.h +115 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOpaqueAttribute.cpp +126 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOpaqueAttribute.h +110 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOptimizedPixelReading.h +646 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputFile.cpp +1378 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputFile.h +263 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputPart.cpp +105 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputPart.h +77 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputPartData.cpp +52 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputPartData.h +62 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfOutputStreamMutex.h +70 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPartHelper.h +262 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPartType.cpp +63 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPartType.h +62 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPixelType.h +67 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPizCompressor.cpp +667 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPizCompressor.h +117 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPreviewImage.cpp +104 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPreviewImage.h +135 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPreviewImageAttribute.cpp +103 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPreviewImageAttribute.h +70 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPxr24Compressor.cpp +553 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfPxr24Compressor.h +109 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRational.cpp +127 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRational.h +98 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRationalAttribute.cpp +74 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRationalAttribute.h +69 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRgba.h +109 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRgbaFile.cpp +1405 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRgbaFile.h +346 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRgbaYca.cpp +497 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRgbaYca.h +259 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRle.cpp +157 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRle.h +63 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRleCompressor.cpp +220 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfRleCompressor.h +80 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfScanLineInputFile.cpp +1702 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfScanLineInputFile.h +210 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfSimd.h +59 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStandardAttributes.cpp +125 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStandardAttributes.h +382 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStdIO.cpp +242 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStdIO.h +160 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStringAttribute.cpp +80 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStringAttribute.h +71 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStringVectorAttribute.cpp +100 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfStringVectorAttribute.h +74 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp +129 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfSystemSpecific.h +172 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTestFile.cpp +216 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTestFile.h +97 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfThreading.cpp +62 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfThreading.h +95 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTileDescription.h +107 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTileDescriptionAttribute.cpp +86 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTileDescriptionAttribute.h +72 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTileOffsets.cpp +552 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTileOffsets.h +125 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledInputFile.cpp +1533 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledInputFile.h +401 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledInputPart.cpp +208 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledInputPart.h +100 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledMisc.cpp +389 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledMisc.h +106 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledOutputFile.cpp +1841 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledOutputFile.h +495 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledOutputPart.cpp +228 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledOutputPart.h +105 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledRgbaFile.cpp +1163 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTiledRgbaFile.h +482 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTimeCode.cpp +431 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTimeCode.h +242 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTimeCodeAttribute.cpp +79 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfTimeCodeAttribute.h +74 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfVecAttribute.cpp +217 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfVecAttribute.h +100 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfVersion.cpp +60 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfVersion.h +136 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfWav.cpp +391 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfWav.h +78 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfXdr.h +927 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfZip.cpp +196 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfZip.h +78 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfZipCompressor.cpp +127 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/ImfZipCompressor.h +89 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/b44ExpLogTable.cpp +136 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/b44ExpLogTable.h +16396 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/dwaLookups.cpp +573 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmImf/dwaLookups.h +98334 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThread.cpp +80 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThread.h +143 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadExport.h +46 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadForward.h +52 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadMutex.cpp +59 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadMutex.h +160 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadMutexPosix.cpp +85 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadMutexWin32.cpp +79 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadNamespace.h +114 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadPool.cpp +483 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadPool.h +160 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadPosix.cpp +98 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadSemaphore.cpp +60 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadSemaphore.h +112 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadSemaphorePosix.cpp +106 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadSemaphorePosixCompat.cpp +155 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadSemaphoreWin32.cpp +153 -0
- data/vendor/FreeImage/Source/OpenEXR/IlmThread/IlmThreadWin32.cpp +100 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathBox.cpp +37 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathBox.h +849 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathBoxAlgo.h +1016 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathColor.h +736 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathColorAlgo.cpp +178 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathColorAlgo.h +257 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathEuler.h +926 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathExc.h +73 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathExport.h +46 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathForward.h +72 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathFrame.h +192 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathFrustum.h +741 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathFrustumTest.h +417 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathFun.cpp +181 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathFun.h +269 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathGL.h +166 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathGLU.h +54 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathHalfLimits.h +68 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathInt64.h +62 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathInterval.h +226 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathLimits.h +268 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathLine.h +185 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathLineAlgo.h +288 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathMath.h +208 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathMatrix.h +3441 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathMatrixAlgo.cpp +1252 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathMatrixAlgo.h +1425 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathNamespace.h +115 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathPlane.h +257 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathPlatform.h +112 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathQuat.h +964 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathRandom.cpp +194 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathRandom.h +401 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathRoots.h +219 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathShear.cpp +54 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathShear.h +656 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathSphere.h +177 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathVec.cpp +583 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathVec.h +2227 -0
- data/vendor/FreeImage/Source/OpenEXR/Imath/ImathVecAlgo.h +147 -0
- data/vendor/FreeImage/Source/OpenEXR/OpenEXRConfig.h +72 -0
- data/vendor/FreeImage/Source/Plugin.h +144 -0
- data/vendor/FreeImage/Source/Quantizers.h +354 -0
- data/vendor/FreeImage/Source/ToneMapping.h +44 -0
- data/vendor/FreeImage/Source/Utilities.h +516 -0
- data/vendor/FreeImage/Source/ZLib/adler32.c +179 -0
- data/vendor/FreeImage/Source/ZLib/compress.c +80 -0
- data/vendor/FreeImage/Source/ZLib/crc32.c +425 -0
- data/vendor/FreeImage/Source/ZLib/crc32.h +441 -0
- data/vendor/FreeImage/Source/ZLib/deflate.c +1967 -0
- data/vendor/FreeImage/Source/ZLib/deflate.h +346 -0
- data/vendor/FreeImage/Source/ZLib/gzclose.c +25 -0
- data/vendor/FreeImage/Source/ZLib/gzguts.h +209 -0
- data/vendor/FreeImage/Source/ZLib/gzlib.c +634 -0
- data/vendor/FreeImage/Source/ZLib/gzread.c +594 -0
- data/vendor/FreeImage/Source/ZLib/gzwrite.c +577 -0
- data/vendor/FreeImage/Source/ZLib/infback.c +640 -0
- data/vendor/FreeImage/Source/ZLib/inffast.c +340 -0
- data/vendor/FreeImage/Source/ZLib/inffast.h +11 -0
- data/vendor/FreeImage/Source/ZLib/inffixed.h +94 -0
- data/vendor/FreeImage/Source/ZLib/inflate.c +1512 -0
- data/vendor/FreeImage/Source/ZLib/inflate.h +122 -0
- data/vendor/FreeImage/Source/ZLib/inftrees.c +306 -0
- data/vendor/FreeImage/Source/ZLib/inftrees.h +62 -0
- data/vendor/FreeImage/Source/ZLib/trees.c +1226 -0
- data/vendor/FreeImage/Source/ZLib/trees.h +128 -0
- data/vendor/FreeImage/Source/ZLib/uncompr.c +59 -0
- data/vendor/FreeImage/Source/ZLib/zconf.h +511 -0
- data/vendor/FreeImage/Source/ZLib/zlib.h +1768 -0
- data/vendor/FreeImage/Source/ZLib/zutil.c +324 -0
- data/vendor/FreeImage/Source/ZLib/zutil.h +253 -0
- metadata +931 -0
@@ -0,0 +1,1094 @@
|
|
1
|
+
// ==========================================================
|
2
|
+
// Tag to string conversion functions
|
3
|
+
//
|
4
|
+
// Design and implementation by
|
5
|
+
// - Herv� Drolon <drolon@infonie.fr>
|
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
|
+
#ifdef _MSC_VER
|
23
|
+
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#include "FreeImage.h"
|
27
|
+
#include "Utilities.h"
|
28
|
+
#include "FreeImageTag.h"
|
29
|
+
#include "FIRational.h"
|
30
|
+
|
31
|
+
#define MAX_TEXT_EXTENT 512
|
32
|
+
|
33
|
+
/**
|
34
|
+
Convert a tag to a C string
|
35
|
+
*/
|
36
|
+
static const char*
|
37
|
+
ConvertAnyTag(FITAG *tag) {
|
38
|
+
char format[MAX_TEXT_EXTENT];
|
39
|
+
static std::string buffer;
|
40
|
+
DWORD i;
|
41
|
+
|
42
|
+
if(!tag)
|
43
|
+
return NULL;
|
44
|
+
|
45
|
+
buffer.erase();
|
46
|
+
|
47
|
+
// convert the tag value to a string buffer
|
48
|
+
|
49
|
+
FREE_IMAGE_MDTYPE tag_type = FreeImage_GetTagType(tag);
|
50
|
+
DWORD tag_count = FreeImage_GetTagCount(tag);
|
51
|
+
|
52
|
+
switch(tag_type) {
|
53
|
+
case FIDT_BYTE: // N x 8-bit unsigned integer
|
54
|
+
{
|
55
|
+
BYTE *pvalue = (BYTE*)FreeImage_GetTagValue(tag);
|
56
|
+
|
57
|
+
sprintf(format, "%ld", (LONG) pvalue[0]);
|
58
|
+
buffer += format;
|
59
|
+
for(i = 1; i < tag_count; i++) {
|
60
|
+
sprintf(format, " %ld", (LONG) pvalue[i]);
|
61
|
+
buffer += format;
|
62
|
+
}
|
63
|
+
break;
|
64
|
+
}
|
65
|
+
case FIDT_SHORT: // N x 16-bit unsigned integer
|
66
|
+
{
|
67
|
+
unsigned short *pvalue = (unsigned short *)FreeImage_GetTagValue(tag);
|
68
|
+
|
69
|
+
sprintf(format, "%hu", pvalue[0]);
|
70
|
+
buffer += format;
|
71
|
+
for(i = 1; i < tag_count; i++) {
|
72
|
+
sprintf(format, " %hu", pvalue[i]);
|
73
|
+
buffer += format;
|
74
|
+
}
|
75
|
+
break;
|
76
|
+
}
|
77
|
+
case FIDT_LONG: // N x 32-bit unsigned integer
|
78
|
+
{
|
79
|
+
DWORD *pvalue = (DWORD *)FreeImage_GetTagValue(tag);
|
80
|
+
|
81
|
+
sprintf(format, "%lu", pvalue[0]);
|
82
|
+
buffer += format;
|
83
|
+
for(i = 1; i < tag_count; i++) {
|
84
|
+
sprintf(format, " %lu", pvalue[i]);
|
85
|
+
buffer += format;
|
86
|
+
}
|
87
|
+
break;
|
88
|
+
}
|
89
|
+
case FIDT_RATIONAL: // N x 64-bit unsigned fraction
|
90
|
+
{
|
91
|
+
DWORD *pvalue = (DWORD*)FreeImage_GetTagValue(tag);
|
92
|
+
|
93
|
+
sprintf(format, "%ld/%ld", pvalue[0], pvalue[1]);
|
94
|
+
buffer += format;
|
95
|
+
for(i = 1; i < tag_count; i++) {
|
96
|
+
sprintf(format, " %ld/%ld", pvalue[2*i], pvalue[2*i+1]);
|
97
|
+
buffer += format;
|
98
|
+
}
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
case FIDT_SBYTE: // N x 8-bit signed integer
|
102
|
+
{
|
103
|
+
char *pvalue = (char*)FreeImage_GetTagValue(tag);
|
104
|
+
|
105
|
+
sprintf(format, "%ld", (LONG) pvalue[0]);
|
106
|
+
buffer += format;
|
107
|
+
for(i = 1; i < tag_count; i++) {
|
108
|
+
sprintf(format, " %ld", (LONG) pvalue[i]);
|
109
|
+
buffer += format;
|
110
|
+
}
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
case FIDT_SSHORT: // N x 16-bit signed integer
|
114
|
+
{
|
115
|
+
short *pvalue = (short *)FreeImage_GetTagValue(tag);
|
116
|
+
|
117
|
+
sprintf(format, "%hd", pvalue[0]);
|
118
|
+
buffer += format;
|
119
|
+
for(i = 1; i < tag_count; i++) {
|
120
|
+
sprintf(format, " %hd", pvalue[i]);
|
121
|
+
buffer += format;
|
122
|
+
}
|
123
|
+
break;
|
124
|
+
}
|
125
|
+
case FIDT_SLONG: // N x 32-bit signed integer
|
126
|
+
{
|
127
|
+
LONG *pvalue = (LONG *)FreeImage_GetTagValue(tag);
|
128
|
+
|
129
|
+
sprintf(format, "%ld", pvalue[0]);
|
130
|
+
buffer += format;
|
131
|
+
for(i = 1; i < tag_count; i++) {
|
132
|
+
sprintf(format, " %ld", pvalue[i]);
|
133
|
+
buffer += format;
|
134
|
+
}
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
case FIDT_SRATIONAL:// N x 64-bit signed fraction
|
138
|
+
{
|
139
|
+
LONG *pvalue = (LONG*)FreeImage_GetTagValue(tag);
|
140
|
+
|
141
|
+
sprintf(format, "%ld/%ld", pvalue[0], pvalue[1]);
|
142
|
+
buffer += format;
|
143
|
+
for(i = 1; i < tag_count; i++) {
|
144
|
+
sprintf(format, " %ld/%ld", pvalue[2*i], pvalue[2*i+1]);
|
145
|
+
buffer += format;
|
146
|
+
}
|
147
|
+
break;
|
148
|
+
}
|
149
|
+
case FIDT_FLOAT: // N x 32-bit IEEE floating point
|
150
|
+
{
|
151
|
+
float *pvalue = (float *)FreeImage_GetTagValue(tag);
|
152
|
+
|
153
|
+
sprintf(format, "%f", (double) pvalue[0]);
|
154
|
+
buffer += format;
|
155
|
+
for(i = 1; i < tag_count; i++) {
|
156
|
+
sprintf(format, "%f", (double) pvalue[i]);
|
157
|
+
buffer += format;
|
158
|
+
}
|
159
|
+
break;
|
160
|
+
}
|
161
|
+
case FIDT_DOUBLE: // N x 64-bit IEEE floating point
|
162
|
+
{
|
163
|
+
double *pvalue = (double *)FreeImage_GetTagValue(tag);
|
164
|
+
|
165
|
+
sprintf(format, "%f", pvalue[0]);
|
166
|
+
buffer += format;
|
167
|
+
for(i = 1; i < tag_count; i++) {
|
168
|
+
sprintf(format, "%f", pvalue[i]);
|
169
|
+
buffer += format;
|
170
|
+
}
|
171
|
+
break;
|
172
|
+
}
|
173
|
+
case FIDT_IFD: // N x 32-bit unsigned integer (offset)
|
174
|
+
{
|
175
|
+
DWORD *pvalue = (DWORD *)FreeImage_GetTagValue(tag);
|
176
|
+
|
177
|
+
sprintf(format, "%X", pvalue[0]);
|
178
|
+
buffer += format;
|
179
|
+
for(i = 1; i < tag_count; i++) {
|
180
|
+
sprintf(format, " %X", pvalue[i]);
|
181
|
+
buffer += format;
|
182
|
+
}
|
183
|
+
break;
|
184
|
+
}
|
185
|
+
case FIDT_PALETTE: // N x 32-bit RGBQUAD
|
186
|
+
{
|
187
|
+
RGBQUAD *pvalue = (RGBQUAD *)FreeImage_GetTagValue(tag);
|
188
|
+
|
189
|
+
sprintf(format, "(%d,%d,%d,%d)", pvalue[0].rgbRed, pvalue[0].rgbGreen, pvalue[0].rgbBlue, pvalue[0].rgbReserved);
|
190
|
+
buffer += format;
|
191
|
+
for(i = 1; i < tag_count; i++) {
|
192
|
+
sprintf(format, " (%d,%d,%d,%d)", pvalue[i].rgbRed, pvalue[i].rgbGreen, pvalue[i].rgbBlue, pvalue[i].rgbReserved);
|
193
|
+
buffer += format;
|
194
|
+
}
|
195
|
+
break;
|
196
|
+
}
|
197
|
+
|
198
|
+
case FIDT_LONG8: // N x 64-bit unsigned integer
|
199
|
+
{
|
200
|
+
UINT64 *pvalue = (UINT64 *)FreeImage_GetTagValue(tag);
|
201
|
+
|
202
|
+
sprintf(format, "%ld", pvalue[0]);
|
203
|
+
buffer += format;
|
204
|
+
for(i = 1; i < tag_count; i++) {
|
205
|
+
sprintf(format, "%ld", pvalue[i]);
|
206
|
+
buffer += format;
|
207
|
+
}
|
208
|
+
break;
|
209
|
+
}
|
210
|
+
|
211
|
+
case FIDT_IFD8: // N x 64-bit unsigned integer (offset)
|
212
|
+
{
|
213
|
+
UINT64 *pvalue = (UINT64 *)FreeImage_GetTagValue(tag);
|
214
|
+
|
215
|
+
sprintf(format, "%X", pvalue[0]);
|
216
|
+
buffer += format;
|
217
|
+
for(i = 1; i < tag_count; i++) {
|
218
|
+
sprintf(format, "%X", pvalue[i]);
|
219
|
+
buffer += format;
|
220
|
+
}
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
|
224
|
+
case FIDT_SLONG8: // N x 64-bit signed integer
|
225
|
+
{
|
226
|
+
INT64 *pvalue = (INT64 *)FreeImage_GetTagValue(tag);
|
227
|
+
|
228
|
+
sprintf(format, "%ld", pvalue[0]);
|
229
|
+
buffer += format;
|
230
|
+
for(i = 1; i < tag_count; i++) {
|
231
|
+
sprintf(format, "%ld", pvalue[i]);
|
232
|
+
buffer += format;
|
233
|
+
}
|
234
|
+
break;
|
235
|
+
}
|
236
|
+
|
237
|
+
case FIDT_ASCII: // 8-bit bytes w/ last byte null
|
238
|
+
case FIDT_UNDEFINED:// 8-bit untyped data
|
239
|
+
default:
|
240
|
+
{
|
241
|
+
int max_size = MIN((int)FreeImage_GetTagLength(tag), (int)MAX_TEXT_EXTENT);
|
242
|
+
if(max_size == MAX_TEXT_EXTENT)
|
243
|
+
max_size--;
|
244
|
+
memcpy(format, (char*)FreeImage_GetTagValue(tag), max_size);
|
245
|
+
format[max_size] = '\0';
|
246
|
+
buffer += format;
|
247
|
+
break;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
return buffer.c_str();
|
252
|
+
}
|
253
|
+
|
254
|
+
/**
|
255
|
+
Convert a Exif tag to a C string
|
256
|
+
*/
|
257
|
+
static const char*
|
258
|
+
ConvertExifTag(FITAG *tag) {
|
259
|
+
char format[MAX_TEXT_EXTENT];
|
260
|
+
static std::string buffer;
|
261
|
+
|
262
|
+
if(!tag)
|
263
|
+
return NULL;
|
264
|
+
|
265
|
+
buffer.erase();
|
266
|
+
|
267
|
+
// convert the tag value to a string buffer
|
268
|
+
|
269
|
+
switch(FreeImage_GetTagID(tag)) {
|
270
|
+
case TAG_ORIENTATION:
|
271
|
+
{
|
272
|
+
unsigned short orientation = *((unsigned short *)FreeImage_GetTagValue(tag));
|
273
|
+
switch (orientation) {
|
274
|
+
case 1:
|
275
|
+
return "top, left side";
|
276
|
+
case 2:
|
277
|
+
return "top, right side";
|
278
|
+
case 3:
|
279
|
+
return "bottom, right side";
|
280
|
+
case 4:
|
281
|
+
return "bottom, left side";
|
282
|
+
case 5:
|
283
|
+
return "left side, top";
|
284
|
+
case 6:
|
285
|
+
return "right side, top";
|
286
|
+
case 7:
|
287
|
+
return "right side, bottom";
|
288
|
+
case 8:
|
289
|
+
return "left side, bottom";
|
290
|
+
default:
|
291
|
+
break;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
break;
|
295
|
+
|
296
|
+
case TAG_REFERENCE_BLACK_WHITE:
|
297
|
+
{
|
298
|
+
DWORD *pvalue = (DWORD*)FreeImage_GetTagValue(tag);
|
299
|
+
if(FreeImage_GetTagLength(tag) == 48) {
|
300
|
+
// reference black point value and reference white point value (ReferenceBlackWhite)
|
301
|
+
int blackR = 0, whiteR = 0, blackG = 0, whiteG = 0, blackB = 0, whiteB = 0;
|
302
|
+
if(pvalue[1])
|
303
|
+
blackR = (int)(pvalue[0] / pvalue[1]);
|
304
|
+
if(pvalue[3])
|
305
|
+
whiteR = (int)(pvalue[2] / pvalue[3]);
|
306
|
+
if(pvalue[5])
|
307
|
+
blackG = (int)(pvalue[4] / pvalue[5]);
|
308
|
+
if(pvalue[7])
|
309
|
+
whiteG = (int)(pvalue[6] / pvalue[7]);
|
310
|
+
if(pvalue[9])
|
311
|
+
blackB = (int)(pvalue[8] / pvalue[9]);
|
312
|
+
if(pvalue[11])
|
313
|
+
whiteB = (int)(pvalue[10] / pvalue[11]);
|
314
|
+
|
315
|
+
sprintf(format, "[%d,%d,%d] [%d,%d,%d]", blackR, blackG, blackB, whiteR, whiteG, whiteB);
|
316
|
+
buffer += format;
|
317
|
+
return buffer.c_str();
|
318
|
+
}
|
319
|
+
|
320
|
+
}
|
321
|
+
break;
|
322
|
+
|
323
|
+
case TAG_COLOR_SPACE:
|
324
|
+
{
|
325
|
+
unsigned short colorSpace = *((unsigned short *)FreeImage_GetTagValue(tag));
|
326
|
+
if (colorSpace == 1) {
|
327
|
+
return "sRGB";
|
328
|
+
} else if (colorSpace == 65535) {
|
329
|
+
return "Undefined";
|
330
|
+
} else {
|
331
|
+
return "Unknown";
|
332
|
+
}
|
333
|
+
}
|
334
|
+
break;
|
335
|
+
|
336
|
+
case TAG_COMPONENTS_CONFIGURATION:
|
337
|
+
{
|
338
|
+
const char *componentStrings[7] = {"", "Y", "Cb", "Cr", "R", "G", "B"};
|
339
|
+
BYTE *pvalue = (BYTE*)FreeImage_GetTagValue(tag);
|
340
|
+
for(DWORD i = 0; i < MIN((DWORD)4, FreeImage_GetTagCount(tag)); i++) {
|
341
|
+
int j = pvalue[i];
|
342
|
+
if(j > 0 && j < 7)
|
343
|
+
buffer += componentStrings[j];
|
344
|
+
}
|
345
|
+
return buffer.c_str();
|
346
|
+
}
|
347
|
+
break;
|
348
|
+
|
349
|
+
case TAG_COMPRESSED_BITS_PER_PIXEL:
|
350
|
+
{
|
351
|
+
FIRational r(tag);
|
352
|
+
buffer = r.toString();
|
353
|
+
if(buffer == "1")
|
354
|
+
buffer += " bit/pixel";
|
355
|
+
else
|
356
|
+
buffer += " bits/pixel";
|
357
|
+
return buffer.c_str();
|
358
|
+
}
|
359
|
+
break;
|
360
|
+
|
361
|
+
case TAG_X_RESOLUTION:
|
362
|
+
case TAG_Y_RESOLUTION:
|
363
|
+
case TAG_FOCAL_PLANE_X_RES:
|
364
|
+
case TAG_FOCAL_PLANE_Y_RES:
|
365
|
+
case TAG_BRIGHTNESS_VALUE:
|
366
|
+
case TAG_EXPOSURE_BIAS_VALUE:
|
367
|
+
{
|
368
|
+
FIRational r(tag);
|
369
|
+
buffer = r.toString();
|
370
|
+
return buffer.c_str();
|
371
|
+
}
|
372
|
+
break;
|
373
|
+
|
374
|
+
case TAG_RESOLUTION_UNIT:
|
375
|
+
case TAG_FOCAL_PLANE_UNIT:
|
376
|
+
{
|
377
|
+
unsigned short resolutionUnit = *((unsigned short *)FreeImage_GetTagValue(tag));
|
378
|
+
switch (resolutionUnit) {
|
379
|
+
case 1:
|
380
|
+
return "(No unit)";
|
381
|
+
case 2:
|
382
|
+
return "inches";
|
383
|
+
case 3:
|
384
|
+
return "cm";
|
385
|
+
default:
|
386
|
+
break;
|
387
|
+
}
|
388
|
+
}
|
389
|
+
break;
|
390
|
+
|
391
|
+
case TAG_YCBCR_POSITIONING:
|
392
|
+
{
|
393
|
+
unsigned short yCbCrPosition = *((unsigned short *)FreeImage_GetTagValue(tag));
|
394
|
+
switch (yCbCrPosition) {
|
395
|
+
case 1:
|
396
|
+
return "Center of pixel array";
|
397
|
+
case 2:
|
398
|
+
return "Datum point";
|
399
|
+
default:
|
400
|
+
break;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
break;
|
404
|
+
|
405
|
+
case TAG_EXPOSURE_TIME:
|
406
|
+
{
|
407
|
+
FIRational r(tag);
|
408
|
+
buffer = r.toString();
|
409
|
+
buffer += " sec";
|
410
|
+
return buffer.c_str();
|
411
|
+
}
|
412
|
+
break;
|
413
|
+
|
414
|
+
case TAG_SHUTTER_SPEED_VALUE:
|
415
|
+
{
|
416
|
+
FIRational r(tag);
|
417
|
+
LONG apexValue = r.longValue();
|
418
|
+
LONG apexPower = 1 << apexValue;
|
419
|
+
sprintf(format, "1/%d sec", (int)apexPower);
|
420
|
+
buffer += format;
|
421
|
+
return buffer.c_str();
|
422
|
+
}
|
423
|
+
break;
|
424
|
+
|
425
|
+
case TAG_APERTURE_VALUE:
|
426
|
+
case TAG_MAX_APERTURE_VALUE:
|
427
|
+
{
|
428
|
+
FIRational r(tag);
|
429
|
+
double apertureApex = r.doubleValue();
|
430
|
+
double rootTwo = sqrt((double)2);
|
431
|
+
double fStop = pow(rootTwo, apertureApex);
|
432
|
+
sprintf(format, "F%.1f", fStop);
|
433
|
+
buffer += format;
|
434
|
+
return buffer.c_str();
|
435
|
+
}
|
436
|
+
break;
|
437
|
+
|
438
|
+
case TAG_FNUMBER:
|
439
|
+
{
|
440
|
+
FIRational r(tag);
|
441
|
+
double fnumber = r.doubleValue();
|
442
|
+
sprintf(format, "F%.1f", fnumber);
|
443
|
+
buffer += format;
|
444
|
+
return buffer.c_str();
|
445
|
+
}
|
446
|
+
break;
|
447
|
+
|
448
|
+
case TAG_FOCAL_LENGTH:
|
449
|
+
{
|
450
|
+
FIRational r(tag);
|
451
|
+
double focalLength = r.doubleValue();
|
452
|
+
sprintf(format, "%.1f mm", focalLength);
|
453
|
+
buffer += format;
|
454
|
+
return buffer.c_str();
|
455
|
+
}
|
456
|
+
break;
|
457
|
+
|
458
|
+
case TAG_FOCAL_LENGTH_IN_35MM_FILM:
|
459
|
+
{
|
460
|
+
unsigned short focalLength = *((unsigned short *)FreeImage_GetTagValue(tag));
|
461
|
+
sprintf(format, "%hu mm", focalLength);
|
462
|
+
buffer += format;
|
463
|
+
return buffer.c_str();
|
464
|
+
}
|
465
|
+
break;
|
466
|
+
|
467
|
+
case TAG_FLASH:
|
468
|
+
{
|
469
|
+
unsigned short flash = *((unsigned short *)FreeImage_GetTagValue(tag));
|
470
|
+
switch(flash) {
|
471
|
+
case 0x0000:
|
472
|
+
return "Flash did not fire";
|
473
|
+
case 0x0001:
|
474
|
+
return "Flash fired";
|
475
|
+
case 0x0005:
|
476
|
+
return "Strobe return light not detected";
|
477
|
+
case 0x0007:
|
478
|
+
return "Strobe return light detected";
|
479
|
+
case 0x0009:
|
480
|
+
return "Flash fired, compulsory flash mode";
|
481
|
+
case 0x000D:
|
482
|
+
return "Flash fired, compulsory flash mode, return light not detected";
|
483
|
+
case 0x000F:
|
484
|
+
return "Flash fired, compulsory flash mode, return light detected";
|
485
|
+
case 0x0010:
|
486
|
+
return "Flash did not fire, compulsory flash mode";
|
487
|
+
case 0x0018:
|
488
|
+
return "Flash did not fire, auto mode";
|
489
|
+
case 0x0019:
|
490
|
+
return "Flash fired, auto mode";
|
491
|
+
case 0x001D:
|
492
|
+
return "Flash fired, auto mode, return light not detected";
|
493
|
+
case 0x001F:
|
494
|
+
return "Flash fired, auto mode, return light detected";
|
495
|
+
case 0x0020:
|
496
|
+
return "No flash function";
|
497
|
+
case 0x0041:
|
498
|
+
return "Flash fired, red-eye reduction mode";
|
499
|
+
case 0x0045:
|
500
|
+
return "Flash fired, red-eye reduction mode, return light not detected";
|
501
|
+
case 0x0047:
|
502
|
+
return "Flash fired, red-eye reduction mode, return light detected";
|
503
|
+
case 0x0049:
|
504
|
+
return "Flash fired, compulsory flash mode, red-eye reduction mode";
|
505
|
+
case 0x004D:
|
506
|
+
return "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected";
|
507
|
+
case 0x004F:
|
508
|
+
return "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected";
|
509
|
+
case 0x0059:
|
510
|
+
return "Flash fired, auto mode, red-eye reduction mode";
|
511
|
+
case 0x005D:
|
512
|
+
return "Flash fired, auto mode, return light not detected, red-eye reduction mode";
|
513
|
+
case 0x005F:
|
514
|
+
return "Flash fired, auto mode, return light detected, red-eye reduction mode";
|
515
|
+
default:
|
516
|
+
sprintf(format, "Unknown (%d)", flash);
|
517
|
+
buffer += format;
|
518
|
+
return buffer.c_str();
|
519
|
+
}
|
520
|
+
}
|
521
|
+
break;
|
522
|
+
|
523
|
+
case TAG_SCENE_TYPE:
|
524
|
+
{
|
525
|
+
BYTE sceneType = *((BYTE*)FreeImage_GetTagValue(tag));
|
526
|
+
if (sceneType == 1) {
|
527
|
+
return "Directly photographed image";
|
528
|
+
} else {
|
529
|
+
sprintf(format, "Unknown (%d)", sceneType);
|
530
|
+
buffer += format;
|
531
|
+
return buffer.c_str();
|
532
|
+
}
|
533
|
+
}
|
534
|
+
break;
|
535
|
+
|
536
|
+
case TAG_SUBJECT_DISTANCE:
|
537
|
+
{
|
538
|
+
FIRational r(tag);
|
539
|
+
if(r.getNumerator() == 0xFFFFFFFF) {
|
540
|
+
return "Infinity";
|
541
|
+
} else if(r.getNumerator() == 0) {
|
542
|
+
return "Distance unknown";
|
543
|
+
} else {
|
544
|
+
double distance = r.doubleValue();
|
545
|
+
sprintf(format, "%.3f meters", distance);
|
546
|
+
buffer += format;
|
547
|
+
return buffer.c_str();
|
548
|
+
}
|
549
|
+
}
|
550
|
+
break;
|
551
|
+
|
552
|
+
case TAG_METERING_MODE:
|
553
|
+
{
|
554
|
+
unsigned short meteringMode = *((unsigned short *)FreeImage_GetTagValue(tag));
|
555
|
+
switch (meteringMode) {
|
556
|
+
case 0:
|
557
|
+
return "Unknown";
|
558
|
+
case 1:
|
559
|
+
return "Average";
|
560
|
+
case 2:
|
561
|
+
return "Center weighted average";
|
562
|
+
case 3:
|
563
|
+
return "Spot";
|
564
|
+
case 4:
|
565
|
+
return "Multi-spot";
|
566
|
+
case 5:
|
567
|
+
return "Multi-segment";
|
568
|
+
case 6:
|
569
|
+
return "Partial";
|
570
|
+
case 255:
|
571
|
+
return "(Other)";
|
572
|
+
default:
|
573
|
+
return "";
|
574
|
+
}
|
575
|
+
}
|
576
|
+
break;
|
577
|
+
|
578
|
+
case TAG_LIGHT_SOURCE:
|
579
|
+
{
|
580
|
+
unsigned short lightSource = *((unsigned short *)FreeImage_GetTagValue(tag));
|
581
|
+
switch (lightSource) {
|
582
|
+
case 0:
|
583
|
+
return "Unknown";
|
584
|
+
case 1:
|
585
|
+
return "Daylight";
|
586
|
+
case 2:
|
587
|
+
return "Fluorescent";
|
588
|
+
case 3:
|
589
|
+
return "Tungsten (incandescent light)";
|
590
|
+
case 4:
|
591
|
+
return "Flash";
|
592
|
+
case 9:
|
593
|
+
return "Fine weather";
|
594
|
+
case 10:
|
595
|
+
return "Cloudy weather";
|
596
|
+
case 11:
|
597
|
+
return "Shade";
|
598
|
+
case 12:
|
599
|
+
return "Daylight fluorescent (D 5700 - 7100K)";
|
600
|
+
case 13:
|
601
|
+
return "Day white fluorescent (N 4600 - 5400K)";
|
602
|
+
case 14:
|
603
|
+
return "Cool white fluorescent (W 3900 - 4500K)";
|
604
|
+
case 15:
|
605
|
+
return "White fluorescent (WW 3200 - 3700K)";
|
606
|
+
case 17:
|
607
|
+
return "Standard light A";
|
608
|
+
case 18:
|
609
|
+
return "Standard light B";
|
610
|
+
case 19:
|
611
|
+
return "Standard light C";
|
612
|
+
case 20:
|
613
|
+
return "D55";
|
614
|
+
case 21:
|
615
|
+
return "D65";
|
616
|
+
case 22:
|
617
|
+
return "D75";
|
618
|
+
case 23:
|
619
|
+
return "D50";
|
620
|
+
case 24:
|
621
|
+
return "ISO studio tungsten";
|
622
|
+
case 255:
|
623
|
+
return "(Other)";
|
624
|
+
default:
|
625
|
+
return "";
|
626
|
+
}
|
627
|
+
}
|
628
|
+
break;
|
629
|
+
|
630
|
+
case TAG_SENSING_METHOD:
|
631
|
+
{
|
632
|
+
unsigned short sensingMethod = *((unsigned short *)FreeImage_GetTagValue(tag));
|
633
|
+
|
634
|
+
switch (sensingMethod) {
|
635
|
+
case 1:
|
636
|
+
return "(Not defined)";
|
637
|
+
case 2:
|
638
|
+
return "One-chip color area sensor";
|
639
|
+
case 3:
|
640
|
+
return "Two-chip color area sensor";
|
641
|
+
case 4:
|
642
|
+
return "Three-chip color area sensor";
|
643
|
+
case 5:
|
644
|
+
return "Color sequential area sensor";
|
645
|
+
case 7:
|
646
|
+
return "Trilinear sensor";
|
647
|
+
case 8:
|
648
|
+
return "Color sequential linear sensor";
|
649
|
+
default:
|
650
|
+
return "";
|
651
|
+
}
|
652
|
+
}
|
653
|
+
break;
|
654
|
+
|
655
|
+
case TAG_FILE_SOURCE:
|
656
|
+
{
|
657
|
+
BYTE fileSource = *((BYTE*)FreeImage_GetTagValue(tag));
|
658
|
+
if (fileSource == 3) {
|
659
|
+
return "Digital Still Camera (DSC)";
|
660
|
+
} else {
|
661
|
+
sprintf(format, "Unknown (%d)", fileSource);
|
662
|
+
buffer += format;
|
663
|
+
return buffer.c_str();
|
664
|
+
}
|
665
|
+
}
|
666
|
+
break;
|
667
|
+
|
668
|
+
case TAG_EXPOSURE_PROGRAM:
|
669
|
+
{
|
670
|
+
unsigned short exposureProgram = *((unsigned short *)FreeImage_GetTagValue(tag));
|
671
|
+
|
672
|
+
switch (exposureProgram) {
|
673
|
+
case 1:
|
674
|
+
return "Manual control";
|
675
|
+
case 2:
|
676
|
+
return "Program normal";
|
677
|
+
case 3:
|
678
|
+
return "Aperture priority";
|
679
|
+
case 4:
|
680
|
+
return "Shutter priority";
|
681
|
+
case 5:
|
682
|
+
return "Program creative (slow program)";
|
683
|
+
case 6:
|
684
|
+
return "Program action (high-speed program)";
|
685
|
+
case 7:
|
686
|
+
return "Portrait mode";
|
687
|
+
case 8:
|
688
|
+
return "Landscape mode";
|
689
|
+
default:
|
690
|
+
sprintf(format, "Unknown program (%d)", exposureProgram);
|
691
|
+
buffer += format;
|
692
|
+
return buffer.c_str();
|
693
|
+
}
|
694
|
+
}
|
695
|
+
break;
|
696
|
+
|
697
|
+
case TAG_CUSTOM_RENDERED:
|
698
|
+
{
|
699
|
+
unsigned short customRendered = *((unsigned short *)FreeImage_GetTagValue(tag));
|
700
|
+
|
701
|
+
switch (customRendered) {
|
702
|
+
case 0:
|
703
|
+
return "Normal process";
|
704
|
+
case 1:
|
705
|
+
return "Custom process";
|
706
|
+
default:
|
707
|
+
sprintf(format, "Unknown rendering (%d)", customRendered);
|
708
|
+
buffer += format;
|
709
|
+
return buffer.c_str();
|
710
|
+
}
|
711
|
+
}
|
712
|
+
break;
|
713
|
+
|
714
|
+
case TAG_EXPOSURE_MODE:
|
715
|
+
{
|
716
|
+
unsigned short exposureMode = *((unsigned short *)FreeImage_GetTagValue(tag));
|
717
|
+
|
718
|
+
switch (exposureMode) {
|
719
|
+
case 0:
|
720
|
+
return "Auto exposure";
|
721
|
+
case 1:
|
722
|
+
return "Manual exposure";
|
723
|
+
case 2:
|
724
|
+
return "Auto bracket";
|
725
|
+
default:
|
726
|
+
sprintf(format, "Unknown mode (%d)", exposureMode);
|
727
|
+
buffer += format;
|
728
|
+
return buffer.c_str();
|
729
|
+
}
|
730
|
+
}
|
731
|
+
break;
|
732
|
+
|
733
|
+
case TAG_WHITE_BALANCE:
|
734
|
+
{
|
735
|
+
unsigned short whiteBalance = *((unsigned short *)FreeImage_GetTagValue(tag));
|
736
|
+
|
737
|
+
switch (whiteBalance) {
|
738
|
+
case 0:
|
739
|
+
return "Auto white balance";
|
740
|
+
case 1:
|
741
|
+
return "Manual white balance";
|
742
|
+
default:
|
743
|
+
sprintf(format, "Unknown (%d)", whiteBalance);
|
744
|
+
buffer += format;
|
745
|
+
return buffer.c_str();
|
746
|
+
}
|
747
|
+
}
|
748
|
+
break;
|
749
|
+
|
750
|
+
case TAG_SCENE_CAPTURE_TYPE:
|
751
|
+
{
|
752
|
+
unsigned short sceneType = *((unsigned short *)FreeImage_GetTagValue(tag));
|
753
|
+
|
754
|
+
switch (sceneType) {
|
755
|
+
case 0:
|
756
|
+
return "Standard";
|
757
|
+
case 1:
|
758
|
+
return "Landscape";
|
759
|
+
case 2:
|
760
|
+
return "Portrait";
|
761
|
+
case 3:
|
762
|
+
return "Night scene";
|
763
|
+
default:
|
764
|
+
sprintf(format, "Unknown (%d)", sceneType);
|
765
|
+
buffer += format;
|
766
|
+
return buffer.c_str();
|
767
|
+
}
|
768
|
+
}
|
769
|
+
break;
|
770
|
+
|
771
|
+
case TAG_GAIN_CONTROL:
|
772
|
+
{
|
773
|
+
unsigned short gainControl = *((unsigned short *)FreeImage_GetTagValue(tag));
|
774
|
+
|
775
|
+
switch (gainControl) {
|
776
|
+
case 0:
|
777
|
+
return "None";
|
778
|
+
case 1:
|
779
|
+
return "Low gain up";
|
780
|
+
case 2:
|
781
|
+
return "High gain up";
|
782
|
+
case 3:
|
783
|
+
return "Low gain down";
|
784
|
+
case 4:
|
785
|
+
return "High gain down";
|
786
|
+
default:
|
787
|
+
sprintf(format, "Unknown (%d)", gainControl);
|
788
|
+
buffer += format;
|
789
|
+
return buffer.c_str();
|
790
|
+
}
|
791
|
+
}
|
792
|
+
break;
|
793
|
+
|
794
|
+
case TAG_CONTRAST:
|
795
|
+
{
|
796
|
+
unsigned short contrast = *((unsigned short *)FreeImage_GetTagValue(tag));
|
797
|
+
|
798
|
+
switch (contrast) {
|
799
|
+
case 0:
|
800
|
+
return "Normal";
|
801
|
+
case 1:
|
802
|
+
return "Soft";
|
803
|
+
case 2:
|
804
|
+
return "Hard";
|
805
|
+
default:
|
806
|
+
sprintf(format, "Unknown (%d)", contrast);
|
807
|
+
buffer += format;
|
808
|
+
return buffer.c_str();
|
809
|
+
}
|
810
|
+
}
|
811
|
+
break;
|
812
|
+
|
813
|
+
case TAG_SATURATION:
|
814
|
+
{
|
815
|
+
unsigned short saturation = *((unsigned short *)FreeImage_GetTagValue(tag));
|
816
|
+
|
817
|
+
switch (saturation) {
|
818
|
+
case 0:
|
819
|
+
return "Normal";
|
820
|
+
case 1:
|
821
|
+
return "Low saturation";
|
822
|
+
case 2:
|
823
|
+
return "High saturation";
|
824
|
+
default:
|
825
|
+
sprintf(format, "Unknown (%d)", saturation);
|
826
|
+
buffer += format;
|
827
|
+
return buffer.c_str();
|
828
|
+
}
|
829
|
+
}
|
830
|
+
break;
|
831
|
+
|
832
|
+
case TAG_SHARPNESS:
|
833
|
+
{
|
834
|
+
unsigned short sharpness = *((unsigned short *)FreeImage_GetTagValue(tag));
|
835
|
+
|
836
|
+
switch (sharpness) {
|
837
|
+
case 0:
|
838
|
+
return "Normal";
|
839
|
+
case 1:
|
840
|
+
return "Soft";
|
841
|
+
case 2:
|
842
|
+
return "Hard";
|
843
|
+
default:
|
844
|
+
sprintf(format, "Unknown (%d)", sharpness);
|
845
|
+
buffer += format;
|
846
|
+
return buffer.c_str();
|
847
|
+
}
|
848
|
+
}
|
849
|
+
break;
|
850
|
+
|
851
|
+
case TAG_SUBJECT_DISTANCE_RANGE:
|
852
|
+
{
|
853
|
+
unsigned short distanceRange = *((unsigned short *)FreeImage_GetTagValue(tag));
|
854
|
+
|
855
|
+
switch (distanceRange) {
|
856
|
+
case 0:
|
857
|
+
return "unknown";
|
858
|
+
case 1:
|
859
|
+
return "Macro";
|
860
|
+
case 2:
|
861
|
+
return "Close view";
|
862
|
+
case 3:
|
863
|
+
return "Distant view";
|
864
|
+
default:
|
865
|
+
sprintf(format, "Unknown (%d)", distanceRange);
|
866
|
+
buffer += format;
|
867
|
+
return buffer.c_str();
|
868
|
+
}
|
869
|
+
}
|
870
|
+
break;
|
871
|
+
|
872
|
+
case TAG_ISO_SPEED_RATINGS:
|
873
|
+
{
|
874
|
+
unsigned short isoEquiv = *((unsigned short *)FreeImage_GetTagValue(tag));
|
875
|
+
if (isoEquiv < 50) {
|
876
|
+
isoEquiv *= 200;
|
877
|
+
}
|
878
|
+
sprintf(format, "%d", isoEquiv);
|
879
|
+
buffer += format;
|
880
|
+
return buffer.c_str();
|
881
|
+
}
|
882
|
+
break;
|
883
|
+
|
884
|
+
case TAG_USER_COMMENT:
|
885
|
+
{
|
886
|
+
// first 8 bytes are used to define an ID code
|
887
|
+
// we assume this is an ASCII string
|
888
|
+
const BYTE *userComment = (BYTE*)FreeImage_GetTagValue(tag);
|
889
|
+
for(DWORD i = 8; i < FreeImage_GetTagLength(tag); i++) {
|
890
|
+
buffer += userComment[i];
|
891
|
+
}
|
892
|
+
buffer += '\0';
|
893
|
+
return buffer.c_str();
|
894
|
+
}
|
895
|
+
break;
|
896
|
+
|
897
|
+
case TAG_COMPRESSION:
|
898
|
+
{
|
899
|
+
WORD compression = *((WORD*)FreeImage_GetTagValue(tag));
|
900
|
+
switch(compression) {
|
901
|
+
case TAG_COMPRESSION_NONE:
|
902
|
+
sprintf(format, "dump mode (%d)", compression);
|
903
|
+
break;
|
904
|
+
case TAG_COMPRESSION_CCITTRLE:
|
905
|
+
sprintf(format, "CCITT modified Huffman RLE (%d)", compression);
|
906
|
+
break;
|
907
|
+
case TAG_COMPRESSION_CCITTFAX3:
|
908
|
+
sprintf(format, "CCITT Group 3 fax encoding (%d)", compression);
|
909
|
+
break;
|
910
|
+
/*
|
911
|
+
case TAG_COMPRESSION_CCITT_T4:
|
912
|
+
sprintf(format, "CCITT T.4 (TIFF 6 name) (%d)", compression);
|
913
|
+
break;
|
914
|
+
*/
|
915
|
+
case TAG_COMPRESSION_CCITTFAX4:
|
916
|
+
sprintf(format, "CCITT Group 4 fax encoding (%d)", compression);
|
917
|
+
break;
|
918
|
+
/*
|
919
|
+
case TAG_COMPRESSION_CCITT_T6:
|
920
|
+
sprintf(format, "CCITT T.6 (TIFF 6 name) (%d)", compression);
|
921
|
+
break;
|
922
|
+
*/
|
923
|
+
case TAG_COMPRESSION_LZW:
|
924
|
+
sprintf(format, "LZW (%d)", compression);
|
925
|
+
break;
|
926
|
+
case TAG_COMPRESSION_OJPEG:
|
927
|
+
sprintf(format, "!6.0 JPEG (%d)", compression);
|
928
|
+
break;
|
929
|
+
case TAG_COMPRESSION_JPEG:
|
930
|
+
sprintf(format, "JPEG (%d)", compression);
|
931
|
+
break;
|
932
|
+
case TAG_COMPRESSION_NEXT:
|
933
|
+
sprintf(format, "NeXT 2-bit RLE (%d)", compression);
|
934
|
+
break;
|
935
|
+
case TAG_COMPRESSION_CCITTRLEW:
|
936
|
+
sprintf(format, "CCITTRLEW (%d)", compression);
|
937
|
+
break;
|
938
|
+
case TAG_COMPRESSION_PACKBITS:
|
939
|
+
sprintf(format, "PackBits Macintosh RLE (%d)", compression);
|
940
|
+
break;
|
941
|
+
case TAG_COMPRESSION_THUNDERSCAN:
|
942
|
+
sprintf(format, "ThunderScan RLE (%d)", compression);
|
943
|
+
break;
|
944
|
+
case TAG_COMPRESSION_PIXARFILM:
|
945
|
+
sprintf(format, "Pixar companded 10bit LZW (%d)", compression);
|
946
|
+
break;
|
947
|
+
case TAG_COMPRESSION_PIXARLOG:
|
948
|
+
sprintf(format, "Pixar companded 11bit ZIP (%d)", compression);
|
949
|
+
break;
|
950
|
+
case TAG_COMPRESSION_DEFLATE:
|
951
|
+
sprintf(format, "Deflate compression (%d)", compression);
|
952
|
+
break;
|
953
|
+
case TAG_COMPRESSION_ADOBE_DEFLATE:
|
954
|
+
sprintf(format, "Adobe Deflate compression (%d)", compression);
|
955
|
+
break;
|
956
|
+
case TAG_COMPRESSION_DCS:
|
957
|
+
sprintf(format, "Kodak DCS encoding (%d)", compression);
|
958
|
+
break;
|
959
|
+
case TAG_COMPRESSION_JBIG:
|
960
|
+
sprintf(format, "ISO JBIG (%d)", compression);
|
961
|
+
break;
|
962
|
+
case TAG_COMPRESSION_SGILOG:
|
963
|
+
sprintf(format, "SGI Log Luminance RLE (%d)", compression);
|
964
|
+
break;
|
965
|
+
case TAG_COMPRESSION_SGILOG24:
|
966
|
+
sprintf(format, "SGI Log 24-bit packed (%d)", compression);
|
967
|
+
break;
|
968
|
+
case TAG_COMPRESSION_JP2000:
|
969
|
+
sprintf(format, "Leadtools JPEG2000 (%d)", compression);
|
970
|
+
break;
|
971
|
+
case TAG_COMPRESSION_LZMA:
|
972
|
+
sprintf(format, "LZMA2 (%d)", compression);
|
973
|
+
break;
|
974
|
+
default:
|
975
|
+
sprintf(format, "Unknown type (%d)", compression);
|
976
|
+
break;
|
977
|
+
}
|
978
|
+
|
979
|
+
buffer += format;
|
980
|
+
return buffer.c_str();
|
981
|
+
}
|
982
|
+
break;
|
983
|
+
}
|
984
|
+
|
985
|
+
return ConvertAnyTag(tag);
|
986
|
+
}
|
987
|
+
|
988
|
+
/**
|
989
|
+
Convert a Exif GPS tag to a C string
|
990
|
+
*/
|
991
|
+
static const char*
|
992
|
+
ConvertExifGPSTag(FITAG *tag) {
|
993
|
+
char format[MAX_TEXT_EXTENT];
|
994
|
+
static std::string buffer;
|
995
|
+
|
996
|
+
if(!tag)
|
997
|
+
return NULL;
|
998
|
+
|
999
|
+
buffer.erase();
|
1000
|
+
|
1001
|
+
// convert the tag value to a string buffer
|
1002
|
+
|
1003
|
+
switch(FreeImage_GetTagID(tag)) {
|
1004
|
+
case TAG_GPS_LATITUDE:
|
1005
|
+
case TAG_GPS_LONGITUDE:
|
1006
|
+
case TAG_GPS_TIME_STAMP:
|
1007
|
+
{
|
1008
|
+
DWORD *pvalue = (DWORD*)FreeImage_GetTagValue(tag);
|
1009
|
+
if(FreeImage_GetTagLength(tag) == 24) {
|
1010
|
+
// dd:mm:ss or hh:mm:ss
|
1011
|
+
int dd = 0, mm = 0;
|
1012
|
+
double ss = 0;
|
1013
|
+
|
1014
|
+
// convert to seconds
|
1015
|
+
if(pvalue[1])
|
1016
|
+
ss += ((double)pvalue[0] / (double)pvalue[1]) * 3600;
|
1017
|
+
if(pvalue[3])
|
1018
|
+
ss += ((double)pvalue[2] / (double)pvalue[3]) * 60;
|
1019
|
+
if(pvalue[5])
|
1020
|
+
ss += ((double)pvalue[4] / (double)pvalue[5]);
|
1021
|
+
|
1022
|
+
// convert to dd:mm:ss.ss
|
1023
|
+
dd = (int)(ss / 3600);
|
1024
|
+
mm = (int)(ss / 60) - dd * 60;
|
1025
|
+
ss = ss - dd * 3600 - mm * 60;
|
1026
|
+
|
1027
|
+
sprintf(format, "%d:%d:%.2f", dd, mm, ss);
|
1028
|
+
buffer += format;
|
1029
|
+
return buffer.c_str();
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
break;
|
1033
|
+
|
1034
|
+
case TAG_GPS_VERSION_ID:
|
1035
|
+
case TAG_GPS_LATITUDE_REF:
|
1036
|
+
case TAG_GPS_LONGITUDE_REF:
|
1037
|
+
case TAG_GPS_ALTITUDE_REF:
|
1038
|
+
case TAG_GPS_ALTITUDE:
|
1039
|
+
case TAG_GPS_SATELLITES:
|
1040
|
+
case TAG_GPS_STATUS:
|
1041
|
+
case TAG_GPS_MEASURE_MODE:
|
1042
|
+
case TAG_GPS_DOP:
|
1043
|
+
case TAG_GPS_SPEED_REF:
|
1044
|
+
case TAG_GPS_SPEED:
|
1045
|
+
case TAG_GPS_TRACK_REF:
|
1046
|
+
case TAG_GPS_TRACK:
|
1047
|
+
case TAG_GPS_IMG_DIRECTION_REF:
|
1048
|
+
case TAG_GPS_IMG_DIRECTION:
|
1049
|
+
case TAG_GPS_MAP_DATUM:
|
1050
|
+
case TAG_GPS_DEST_LATITUDE_REF:
|
1051
|
+
case TAG_GPS_DEST_LATITUDE:
|
1052
|
+
case TAG_GPS_DEST_LONGITUDE_REF:
|
1053
|
+
case TAG_GPS_DEST_LONGITUDE:
|
1054
|
+
case TAG_GPS_DEST_BEARING_REF:
|
1055
|
+
case TAG_GPS_DEST_BEARING:
|
1056
|
+
case TAG_GPS_DEST_DISTANCE_REF:
|
1057
|
+
case TAG_GPS_DEST_DISTANCE:
|
1058
|
+
case TAG_GPS_PROCESSING_METHOD:
|
1059
|
+
case TAG_GPS_AREA_INFORMATION:
|
1060
|
+
case TAG_GPS_DATE_STAMP:
|
1061
|
+
case TAG_GPS_DIFFERENTIAL:
|
1062
|
+
break;
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
return ConvertAnyTag(tag);
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
// ==========================================================
|
1069
|
+
// Tag to string conversion function
|
1070
|
+
//
|
1071
|
+
|
1072
|
+
const char* DLL_CALLCONV
|
1073
|
+
FreeImage_TagToString(FREE_IMAGE_MDMODEL model, FITAG *tag, char *Make) {
|
1074
|
+
switch(model) {
|
1075
|
+
case FIMD_EXIF_MAIN:
|
1076
|
+
case FIMD_EXIF_EXIF:
|
1077
|
+
return ConvertExifTag(tag);
|
1078
|
+
|
1079
|
+
case FIMD_EXIF_GPS:
|
1080
|
+
return ConvertExifGPSTag(tag);
|
1081
|
+
|
1082
|
+
case FIMD_EXIF_MAKERNOTE:
|
1083
|
+
// We should use the Make string to select an appropriate conversion function
|
1084
|
+
// TO DO ...
|
1085
|
+
break;
|
1086
|
+
|
1087
|
+
case FIMD_EXIF_INTEROP:
|
1088
|
+
default:
|
1089
|
+
break;
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
return ConvertAnyTag(tag);
|
1093
|
+
}
|
1094
|
+
|