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,741 @@
|
|
1
|
+
/*
|
2
|
+
* jdcoefct.c
|
3
|
+
*
|
4
|
+
* Copyright (C) 1994-1997, Thomas G. Lane.
|
5
|
+
* Modified 2002-2011 by Guido Vollbeding.
|
6
|
+
* This file is part of the Independent JPEG Group's software.
|
7
|
+
* For conditions of distribution and use, see the accompanying README file.
|
8
|
+
*
|
9
|
+
* This file contains the coefficient buffer controller for decompression.
|
10
|
+
* This controller is the top level of the JPEG decompressor proper.
|
11
|
+
* The coefficient buffer lies between entropy decoding and inverse-DCT steps.
|
12
|
+
*
|
13
|
+
* In buffered-image mode, this controller is the interface between
|
14
|
+
* input-oriented processing and output-oriented processing.
|
15
|
+
* Also, the input side (only) is used when reading a file for transcoding.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#define JPEG_INTERNALS
|
19
|
+
#include "jinclude.h"
|
20
|
+
#include "jpeglib.h"
|
21
|
+
|
22
|
+
/* Block smoothing is only applicable for progressive JPEG, so: */
|
23
|
+
#ifndef D_PROGRESSIVE_SUPPORTED
|
24
|
+
#undef BLOCK_SMOOTHING_SUPPORTED
|
25
|
+
#endif
|
26
|
+
|
27
|
+
/* Private buffer controller object */
|
28
|
+
|
29
|
+
typedef struct {
|
30
|
+
struct jpeg_d_coef_controller pub; /* public fields */
|
31
|
+
|
32
|
+
/* These variables keep track of the current location of the input side. */
|
33
|
+
/* cinfo->input_iMCU_row is also used for this. */
|
34
|
+
JDIMENSION MCU_ctr; /* counts MCUs processed in current row */
|
35
|
+
int MCU_vert_offset; /* counts MCU rows within iMCU row */
|
36
|
+
int MCU_rows_per_iMCU_row; /* number of such rows needed */
|
37
|
+
|
38
|
+
/* The output side's location is represented by cinfo->output_iMCU_row. */
|
39
|
+
|
40
|
+
/* In single-pass modes, it's sufficient to buffer just one MCU.
|
41
|
+
* We allocate a workspace of D_MAX_BLOCKS_IN_MCU coefficient blocks,
|
42
|
+
* and let the entropy decoder write into that workspace each time.
|
43
|
+
* (On 80x86, the workspace is FAR even though it's not really very big;
|
44
|
+
* this is to keep the module interfaces unchanged when a large coefficient
|
45
|
+
* buffer is necessary.)
|
46
|
+
* In multi-pass modes, this array points to the current MCU's blocks
|
47
|
+
* within the virtual arrays; it is used only by the input side.
|
48
|
+
*/
|
49
|
+
JBLOCKROW MCU_buffer[D_MAX_BLOCKS_IN_MCU];
|
50
|
+
|
51
|
+
#ifdef D_MULTISCAN_FILES_SUPPORTED
|
52
|
+
/* In multi-pass modes, we need a virtual block array for each component. */
|
53
|
+
jvirt_barray_ptr whole_image[MAX_COMPONENTS];
|
54
|
+
#endif
|
55
|
+
|
56
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
57
|
+
/* When doing block smoothing, we latch coefficient Al values here */
|
58
|
+
int * coef_bits_latch;
|
59
|
+
#define SAVED_COEFS 6 /* we save coef_bits[0..5] */
|
60
|
+
#endif
|
61
|
+
} my_coef_controller;
|
62
|
+
|
63
|
+
typedef my_coef_controller * my_coef_ptr;
|
64
|
+
|
65
|
+
/* Forward declarations */
|
66
|
+
METHODDEF(int) decompress_onepass
|
67
|
+
JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf));
|
68
|
+
#ifdef D_MULTISCAN_FILES_SUPPORTED
|
69
|
+
METHODDEF(int) decompress_data
|
70
|
+
JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf));
|
71
|
+
#endif
|
72
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
73
|
+
LOCAL(boolean) smoothing_ok JPP((j_decompress_ptr cinfo));
|
74
|
+
METHODDEF(int) decompress_smooth_data
|
75
|
+
JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf));
|
76
|
+
#endif
|
77
|
+
|
78
|
+
|
79
|
+
LOCAL(void)
|
80
|
+
start_iMCU_row (j_decompress_ptr cinfo)
|
81
|
+
/* Reset within-iMCU-row counters for a new row (input side) */
|
82
|
+
{
|
83
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
84
|
+
|
85
|
+
/* In an interleaved scan, an MCU row is the same as an iMCU row.
|
86
|
+
* In a noninterleaved scan, an iMCU row has v_samp_factor MCU rows.
|
87
|
+
* But at the bottom of the image, process only what's left.
|
88
|
+
*/
|
89
|
+
if (cinfo->comps_in_scan > 1) {
|
90
|
+
coef->MCU_rows_per_iMCU_row = 1;
|
91
|
+
} else {
|
92
|
+
if (cinfo->input_iMCU_row < (cinfo->total_iMCU_rows-1))
|
93
|
+
coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->v_samp_factor;
|
94
|
+
else
|
95
|
+
coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->last_row_height;
|
96
|
+
}
|
97
|
+
|
98
|
+
coef->MCU_ctr = 0;
|
99
|
+
coef->MCU_vert_offset = 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
/*
|
104
|
+
* Initialize for an input processing pass.
|
105
|
+
*/
|
106
|
+
|
107
|
+
METHODDEF(void)
|
108
|
+
start_input_pass (j_decompress_ptr cinfo)
|
109
|
+
{
|
110
|
+
cinfo->input_iMCU_row = 0;
|
111
|
+
start_iMCU_row(cinfo);
|
112
|
+
}
|
113
|
+
|
114
|
+
|
115
|
+
/*
|
116
|
+
* Initialize for an output processing pass.
|
117
|
+
*/
|
118
|
+
|
119
|
+
METHODDEF(void)
|
120
|
+
start_output_pass (j_decompress_ptr cinfo)
|
121
|
+
{
|
122
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
123
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
124
|
+
|
125
|
+
/* If multipass, check to see whether to use block smoothing on this pass */
|
126
|
+
if (coef->pub.coef_arrays != NULL) {
|
127
|
+
if (cinfo->do_block_smoothing && smoothing_ok(cinfo))
|
128
|
+
coef->pub.decompress_data = decompress_smooth_data;
|
129
|
+
else
|
130
|
+
coef->pub.decompress_data = decompress_data;
|
131
|
+
}
|
132
|
+
#endif
|
133
|
+
cinfo->output_iMCU_row = 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
/*
|
138
|
+
* Decompress and return some data in the single-pass case.
|
139
|
+
* Always attempts to emit one fully interleaved MCU row ("iMCU" row).
|
140
|
+
* Input and output must run in lockstep since we have only a one-MCU buffer.
|
141
|
+
* Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED.
|
142
|
+
*
|
143
|
+
* NB: output_buf contains a plane for each component in image,
|
144
|
+
* which we index according to the component's SOF position.
|
145
|
+
*/
|
146
|
+
|
147
|
+
METHODDEF(int)
|
148
|
+
decompress_onepass (j_decompress_ptr cinfo, JSAMPIMAGE output_buf)
|
149
|
+
{
|
150
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
151
|
+
JDIMENSION MCU_col_num; /* index of current MCU within row */
|
152
|
+
JDIMENSION last_MCU_col = cinfo->MCUs_per_row - 1;
|
153
|
+
JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
|
154
|
+
int blkn, ci, xindex, yindex, yoffset, useful_width;
|
155
|
+
JSAMPARRAY output_ptr;
|
156
|
+
JDIMENSION start_col, output_col;
|
157
|
+
jpeg_component_info *compptr;
|
158
|
+
inverse_DCT_method_ptr inverse_DCT;
|
159
|
+
|
160
|
+
/* Loop to process as much as one whole iMCU row */
|
161
|
+
for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row;
|
162
|
+
yoffset++) {
|
163
|
+
for (MCU_col_num = coef->MCU_ctr; MCU_col_num <= last_MCU_col;
|
164
|
+
MCU_col_num++) {
|
165
|
+
/* Try to fetch an MCU. Entropy decoder expects buffer to be zeroed. */
|
166
|
+
if (cinfo->lim_Se) /* can bypass in DC only case */
|
167
|
+
FMEMZERO((void FAR *) coef->MCU_buffer[0],
|
168
|
+
(size_t) (cinfo->blocks_in_MCU * SIZEOF(JBLOCK)));
|
169
|
+
if (! (*cinfo->entropy->decode_mcu) (cinfo, coef->MCU_buffer)) {
|
170
|
+
/* Suspension forced; update state counters and exit */
|
171
|
+
coef->MCU_vert_offset = yoffset;
|
172
|
+
coef->MCU_ctr = MCU_col_num;
|
173
|
+
return JPEG_SUSPENDED;
|
174
|
+
}
|
175
|
+
/* Determine where data should go in output_buf and do the IDCT thing.
|
176
|
+
* We skip dummy blocks at the right and bottom edges (but blkn gets
|
177
|
+
* incremented past them!). Note the inner loop relies on having
|
178
|
+
* allocated the MCU_buffer[] blocks sequentially.
|
179
|
+
*/
|
180
|
+
blkn = 0; /* index of current DCT block within MCU */
|
181
|
+
for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
|
182
|
+
compptr = cinfo->cur_comp_info[ci];
|
183
|
+
/* Don't bother to IDCT an uninteresting component. */
|
184
|
+
if (! compptr->component_needed) {
|
185
|
+
blkn += compptr->MCU_blocks;
|
186
|
+
continue;
|
187
|
+
}
|
188
|
+
inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index];
|
189
|
+
useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width
|
190
|
+
: compptr->last_col_width;
|
191
|
+
output_ptr = output_buf[compptr->component_index] +
|
192
|
+
yoffset * compptr->DCT_v_scaled_size;
|
193
|
+
start_col = MCU_col_num * compptr->MCU_sample_width;
|
194
|
+
for (yindex = 0; yindex < compptr->MCU_height; yindex++) {
|
195
|
+
if (cinfo->input_iMCU_row < last_iMCU_row ||
|
196
|
+
yoffset+yindex < compptr->last_row_height) {
|
197
|
+
output_col = start_col;
|
198
|
+
for (xindex = 0; xindex < useful_width; xindex++) {
|
199
|
+
(*inverse_DCT) (cinfo, compptr,
|
200
|
+
(JCOEFPTR) coef->MCU_buffer[blkn+xindex],
|
201
|
+
output_ptr, output_col);
|
202
|
+
output_col += compptr->DCT_h_scaled_size;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
blkn += compptr->MCU_width;
|
206
|
+
output_ptr += compptr->DCT_v_scaled_size;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
/* Completed an MCU row, but perhaps not an iMCU row */
|
211
|
+
coef->MCU_ctr = 0;
|
212
|
+
}
|
213
|
+
/* Completed the iMCU row, advance counters for next one */
|
214
|
+
cinfo->output_iMCU_row++;
|
215
|
+
if (++(cinfo->input_iMCU_row) < cinfo->total_iMCU_rows) {
|
216
|
+
start_iMCU_row(cinfo);
|
217
|
+
return JPEG_ROW_COMPLETED;
|
218
|
+
}
|
219
|
+
/* Completed the scan */
|
220
|
+
(*cinfo->inputctl->finish_input_pass) (cinfo);
|
221
|
+
return JPEG_SCAN_COMPLETED;
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
/*
|
226
|
+
* Dummy consume-input routine for single-pass operation.
|
227
|
+
*/
|
228
|
+
|
229
|
+
METHODDEF(int)
|
230
|
+
dummy_consume_data (j_decompress_ptr cinfo)
|
231
|
+
{
|
232
|
+
return JPEG_SUSPENDED; /* Always indicate nothing was done */
|
233
|
+
}
|
234
|
+
|
235
|
+
|
236
|
+
#ifdef D_MULTISCAN_FILES_SUPPORTED
|
237
|
+
|
238
|
+
/*
|
239
|
+
* Consume input data and store it in the full-image coefficient buffer.
|
240
|
+
* We read as much as one fully interleaved MCU row ("iMCU" row) per call,
|
241
|
+
* ie, v_samp_factor block rows for each component in the scan.
|
242
|
+
* Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED.
|
243
|
+
*/
|
244
|
+
|
245
|
+
METHODDEF(int)
|
246
|
+
consume_data (j_decompress_ptr cinfo)
|
247
|
+
{
|
248
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
249
|
+
JDIMENSION MCU_col_num; /* index of current MCU within row */
|
250
|
+
int blkn, ci, xindex, yindex, yoffset;
|
251
|
+
JDIMENSION start_col;
|
252
|
+
JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN];
|
253
|
+
JBLOCKROW buffer_ptr;
|
254
|
+
jpeg_component_info *compptr;
|
255
|
+
|
256
|
+
/* Align the virtual buffers for the components used in this scan. */
|
257
|
+
for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
|
258
|
+
compptr = cinfo->cur_comp_info[ci];
|
259
|
+
buffer[ci] = (*cinfo->mem->access_virt_barray)
|
260
|
+
((j_common_ptr) cinfo, coef->whole_image[compptr->component_index],
|
261
|
+
cinfo->input_iMCU_row * compptr->v_samp_factor,
|
262
|
+
(JDIMENSION) compptr->v_samp_factor, TRUE);
|
263
|
+
/* Note: entropy decoder expects buffer to be zeroed,
|
264
|
+
* but this is handled automatically by the memory manager
|
265
|
+
* because we requested a pre-zeroed array.
|
266
|
+
*/
|
267
|
+
}
|
268
|
+
|
269
|
+
/* Loop to process one whole iMCU row */
|
270
|
+
for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row;
|
271
|
+
yoffset++) {
|
272
|
+
for (MCU_col_num = coef->MCU_ctr; MCU_col_num < cinfo->MCUs_per_row;
|
273
|
+
MCU_col_num++) {
|
274
|
+
/* Construct list of pointers to DCT blocks belonging to this MCU */
|
275
|
+
blkn = 0; /* index of current DCT block within MCU */
|
276
|
+
for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
|
277
|
+
compptr = cinfo->cur_comp_info[ci];
|
278
|
+
start_col = MCU_col_num * compptr->MCU_width;
|
279
|
+
for (yindex = 0; yindex < compptr->MCU_height; yindex++) {
|
280
|
+
buffer_ptr = buffer[ci][yindex+yoffset] + start_col;
|
281
|
+
for (xindex = 0; xindex < compptr->MCU_width; xindex++) {
|
282
|
+
coef->MCU_buffer[blkn++] = buffer_ptr++;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
/* Try to fetch the MCU. */
|
287
|
+
if (! (*cinfo->entropy->decode_mcu) (cinfo, coef->MCU_buffer)) {
|
288
|
+
/* Suspension forced; update state counters and exit */
|
289
|
+
coef->MCU_vert_offset = yoffset;
|
290
|
+
coef->MCU_ctr = MCU_col_num;
|
291
|
+
return JPEG_SUSPENDED;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
/* Completed an MCU row, but perhaps not an iMCU row */
|
295
|
+
coef->MCU_ctr = 0;
|
296
|
+
}
|
297
|
+
/* Completed the iMCU row, advance counters for next one */
|
298
|
+
if (++(cinfo->input_iMCU_row) < cinfo->total_iMCU_rows) {
|
299
|
+
start_iMCU_row(cinfo);
|
300
|
+
return JPEG_ROW_COMPLETED;
|
301
|
+
}
|
302
|
+
/* Completed the scan */
|
303
|
+
(*cinfo->inputctl->finish_input_pass) (cinfo);
|
304
|
+
return JPEG_SCAN_COMPLETED;
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
/*
|
309
|
+
* Decompress and return some data in the multi-pass case.
|
310
|
+
* Always attempts to emit one fully interleaved MCU row ("iMCU" row).
|
311
|
+
* Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED.
|
312
|
+
*
|
313
|
+
* NB: output_buf contains a plane for each component in image.
|
314
|
+
*/
|
315
|
+
|
316
|
+
METHODDEF(int)
|
317
|
+
decompress_data (j_decompress_ptr cinfo, JSAMPIMAGE output_buf)
|
318
|
+
{
|
319
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
320
|
+
JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
|
321
|
+
JDIMENSION block_num;
|
322
|
+
int ci, block_row, block_rows;
|
323
|
+
JBLOCKARRAY buffer;
|
324
|
+
JBLOCKROW buffer_ptr;
|
325
|
+
JSAMPARRAY output_ptr;
|
326
|
+
JDIMENSION output_col;
|
327
|
+
jpeg_component_info *compptr;
|
328
|
+
inverse_DCT_method_ptr inverse_DCT;
|
329
|
+
|
330
|
+
/* Force some input to be done if we are getting ahead of the input. */
|
331
|
+
while (cinfo->input_scan_number < cinfo->output_scan_number ||
|
332
|
+
(cinfo->input_scan_number == cinfo->output_scan_number &&
|
333
|
+
cinfo->input_iMCU_row <= cinfo->output_iMCU_row)) {
|
334
|
+
if ((*cinfo->inputctl->consume_input)(cinfo) == JPEG_SUSPENDED)
|
335
|
+
return JPEG_SUSPENDED;
|
336
|
+
}
|
337
|
+
|
338
|
+
/* OK, output from the virtual arrays. */
|
339
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
340
|
+
ci++, compptr++) {
|
341
|
+
/* Don't bother to IDCT an uninteresting component. */
|
342
|
+
if (! compptr->component_needed)
|
343
|
+
continue;
|
344
|
+
/* Align the virtual buffer for this component. */
|
345
|
+
buffer = (*cinfo->mem->access_virt_barray)
|
346
|
+
((j_common_ptr) cinfo, coef->whole_image[ci],
|
347
|
+
cinfo->output_iMCU_row * compptr->v_samp_factor,
|
348
|
+
(JDIMENSION) compptr->v_samp_factor, FALSE);
|
349
|
+
/* Count non-dummy DCT block rows in this iMCU row. */
|
350
|
+
if (cinfo->output_iMCU_row < last_iMCU_row)
|
351
|
+
block_rows = compptr->v_samp_factor;
|
352
|
+
else {
|
353
|
+
/* NB: can't use last_row_height here; it is input-side-dependent! */
|
354
|
+
block_rows = (int) (compptr->height_in_blocks % compptr->v_samp_factor);
|
355
|
+
if (block_rows == 0) block_rows = compptr->v_samp_factor;
|
356
|
+
}
|
357
|
+
inverse_DCT = cinfo->idct->inverse_DCT[ci];
|
358
|
+
output_ptr = output_buf[ci];
|
359
|
+
/* Loop over all DCT blocks to be processed. */
|
360
|
+
for (block_row = 0; block_row < block_rows; block_row++) {
|
361
|
+
buffer_ptr = buffer[block_row];
|
362
|
+
output_col = 0;
|
363
|
+
for (block_num = 0; block_num < compptr->width_in_blocks; block_num++) {
|
364
|
+
(*inverse_DCT) (cinfo, compptr, (JCOEFPTR) buffer_ptr,
|
365
|
+
output_ptr, output_col);
|
366
|
+
buffer_ptr++;
|
367
|
+
output_col += compptr->DCT_h_scaled_size;
|
368
|
+
}
|
369
|
+
output_ptr += compptr->DCT_v_scaled_size;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
if (++(cinfo->output_iMCU_row) < cinfo->total_iMCU_rows)
|
374
|
+
return JPEG_ROW_COMPLETED;
|
375
|
+
return JPEG_SCAN_COMPLETED;
|
376
|
+
}
|
377
|
+
|
378
|
+
#endif /* D_MULTISCAN_FILES_SUPPORTED */
|
379
|
+
|
380
|
+
|
381
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
382
|
+
|
383
|
+
/*
|
384
|
+
* This code applies interblock smoothing as described by section K.8
|
385
|
+
* of the JPEG standard: the first 5 AC coefficients are estimated from
|
386
|
+
* the DC values of a DCT block and its 8 neighboring blocks.
|
387
|
+
* We apply smoothing only for progressive JPEG decoding, and only if
|
388
|
+
* the coefficients it can estimate are not yet known to full precision.
|
389
|
+
*/
|
390
|
+
|
391
|
+
/* Natural-order array positions of the first 5 zigzag-order coefficients */
|
392
|
+
#define Q01_POS 1
|
393
|
+
#define Q10_POS 8
|
394
|
+
#define Q20_POS 16
|
395
|
+
#define Q11_POS 9
|
396
|
+
#define Q02_POS 2
|
397
|
+
|
398
|
+
/*
|
399
|
+
* Determine whether block smoothing is applicable and safe.
|
400
|
+
* We also latch the current states of the coef_bits[] entries for the
|
401
|
+
* AC coefficients; otherwise, if the input side of the decompressor
|
402
|
+
* advances into a new scan, we might think the coefficients are known
|
403
|
+
* more accurately than they really are.
|
404
|
+
*/
|
405
|
+
|
406
|
+
LOCAL(boolean)
|
407
|
+
smoothing_ok (j_decompress_ptr cinfo)
|
408
|
+
{
|
409
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
410
|
+
boolean smoothing_useful = FALSE;
|
411
|
+
int ci, coefi;
|
412
|
+
jpeg_component_info *compptr;
|
413
|
+
JQUANT_TBL * qtable;
|
414
|
+
int * coef_bits;
|
415
|
+
int * coef_bits_latch;
|
416
|
+
|
417
|
+
if (! cinfo->progressive_mode || cinfo->coef_bits == NULL)
|
418
|
+
return FALSE;
|
419
|
+
|
420
|
+
/* Allocate latch area if not already done */
|
421
|
+
if (coef->coef_bits_latch == NULL)
|
422
|
+
coef->coef_bits_latch = (int *)
|
423
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
|
424
|
+
cinfo->num_components *
|
425
|
+
(SAVED_COEFS * SIZEOF(int)));
|
426
|
+
coef_bits_latch = coef->coef_bits_latch;
|
427
|
+
|
428
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
429
|
+
ci++, compptr++) {
|
430
|
+
/* All components' quantization values must already be latched. */
|
431
|
+
if ((qtable = compptr->quant_table) == NULL)
|
432
|
+
return FALSE;
|
433
|
+
/* Verify DC & first 5 AC quantizers are nonzero to avoid zero-divide. */
|
434
|
+
if (qtable->quantval[0] == 0 ||
|
435
|
+
qtable->quantval[Q01_POS] == 0 ||
|
436
|
+
qtable->quantval[Q10_POS] == 0 ||
|
437
|
+
qtable->quantval[Q20_POS] == 0 ||
|
438
|
+
qtable->quantval[Q11_POS] == 0 ||
|
439
|
+
qtable->quantval[Q02_POS] == 0)
|
440
|
+
return FALSE;
|
441
|
+
/* DC values must be at least partly known for all components. */
|
442
|
+
coef_bits = cinfo->coef_bits[ci];
|
443
|
+
if (coef_bits[0] < 0)
|
444
|
+
return FALSE;
|
445
|
+
/* Block smoothing is helpful if some AC coefficients remain inaccurate. */
|
446
|
+
for (coefi = 1; coefi <= 5; coefi++) {
|
447
|
+
coef_bits_latch[coefi] = coef_bits[coefi];
|
448
|
+
if (coef_bits[coefi] != 0)
|
449
|
+
smoothing_useful = TRUE;
|
450
|
+
}
|
451
|
+
coef_bits_latch += SAVED_COEFS;
|
452
|
+
}
|
453
|
+
|
454
|
+
return smoothing_useful;
|
455
|
+
}
|
456
|
+
|
457
|
+
|
458
|
+
/*
|
459
|
+
* Variant of decompress_data for use when doing block smoothing.
|
460
|
+
*/
|
461
|
+
|
462
|
+
METHODDEF(int)
|
463
|
+
decompress_smooth_data (j_decompress_ptr cinfo, JSAMPIMAGE output_buf)
|
464
|
+
{
|
465
|
+
my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
|
466
|
+
JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
|
467
|
+
JDIMENSION block_num, last_block_column;
|
468
|
+
int ci, block_row, block_rows, access_rows;
|
469
|
+
JBLOCKARRAY buffer;
|
470
|
+
JBLOCKROW buffer_ptr, prev_block_row, next_block_row;
|
471
|
+
JSAMPARRAY output_ptr;
|
472
|
+
JDIMENSION output_col;
|
473
|
+
jpeg_component_info *compptr;
|
474
|
+
inverse_DCT_method_ptr inverse_DCT;
|
475
|
+
boolean first_row, last_row;
|
476
|
+
JBLOCK workspace;
|
477
|
+
int *coef_bits;
|
478
|
+
JQUANT_TBL *quanttbl;
|
479
|
+
INT32 Q00,Q01,Q02,Q10,Q11,Q20, num;
|
480
|
+
int DC1,DC2,DC3,DC4,DC5,DC6,DC7,DC8,DC9;
|
481
|
+
int Al, pred;
|
482
|
+
|
483
|
+
/* Force some input to be done if we are getting ahead of the input. */
|
484
|
+
while (cinfo->input_scan_number <= cinfo->output_scan_number &&
|
485
|
+
! cinfo->inputctl->eoi_reached) {
|
486
|
+
if (cinfo->input_scan_number == cinfo->output_scan_number) {
|
487
|
+
/* If input is working on current scan, we ordinarily want it to
|
488
|
+
* have completed the current row. But if input scan is DC,
|
489
|
+
* we want it to keep one row ahead so that next block row's DC
|
490
|
+
* values are up to date.
|
491
|
+
*/
|
492
|
+
JDIMENSION delta = (cinfo->Ss == 0) ? 1 : 0;
|
493
|
+
if (cinfo->input_iMCU_row > cinfo->output_iMCU_row+delta)
|
494
|
+
break;
|
495
|
+
}
|
496
|
+
if ((*cinfo->inputctl->consume_input)(cinfo) == JPEG_SUSPENDED)
|
497
|
+
return JPEG_SUSPENDED;
|
498
|
+
}
|
499
|
+
|
500
|
+
/* OK, output from the virtual arrays. */
|
501
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
502
|
+
ci++, compptr++) {
|
503
|
+
/* Don't bother to IDCT an uninteresting component. */
|
504
|
+
if (! compptr->component_needed)
|
505
|
+
continue;
|
506
|
+
/* Count non-dummy DCT block rows in this iMCU row. */
|
507
|
+
if (cinfo->output_iMCU_row < last_iMCU_row) {
|
508
|
+
block_rows = compptr->v_samp_factor;
|
509
|
+
access_rows = block_rows * 2; /* this and next iMCU row */
|
510
|
+
last_row = FALSE;
|
511
|
+
} else {
|
512
|
+
/* NB: can't use last_row_height here; it is input-side-dependent! */
|
513
|
+
block_rows = (int) (compptr->height_in_blocks % compptr->v_samp_factor);
|
514
|
+
if (block_rows == 0) block_rows = compptr->v_samp_factor;
|
515
|
+
access_rows = block_rows; /* this iMCU row only */
|
516
|
+
last_row = TRUE;
|
517
|
+
}
|
518
|
+
/* Align the virtual buffer for this component. */
|
519
|
+
if (cinfo->output_iMCU_row > 0) {
|
520
|
+
access_rows += compptr->v_samp_factor; /* prior iMCU row too */
|
521
|
+
buffer = (*cinfo->mem->access_virt_barray)
|
522
|
+
((j_common_ptr) cinfo, coef->whole_image[ci],
|
523
|
+
(cinfo->output_iMCU_row - 1) * compptr->v_samp_factor,
|
524
|
+
(JDIMENSION) access_rows, FALSE);
|
525
|
+
buffer += compptr->v_samp_factor; /* point to current iMCU row */
|
526
|
+
first_row = FALSE;
|
527
|
+
} else {
|
528
|
+
buffer = (*cinfo->mem->access_virt_barray)
|
529
|
+
((j_common_ptr) cinfo, coef->whole_image[ci],
|
530
|
+
(JDIMENSION) 0, (JDIMENSION) access_rows, FALSE);
|
531
|
+
first_row = TRUE;
|
532
|
+
}
|
533
|
+
/* Fetch component-dependent info */
|
534
|
+
coef_bits = coef->coef_bits_latch + (ci * SAVED_COEFS);
|
535
|
+
quanttbl = compptr->quant_table;
|
536
|
+
Q00 = quanttbl->quantval[0];
|
537
|
+
Q01 = quanttbl->quantval[Q01_POS];
|
538
|
+
Q10 = quanttbl->quantval[Q10_POS];
|
539
|
+
Q20 = quanttbl->quantval[Q20_POS];
|
540
|
+
Q11 = quanttbl->quantval[Q11_POS];
|
541
|
+
Q02 = quanttbl->quantval[Q02_POS];
|
542
|
+
inverse_DCT = cinfo->idct->inverse_DCT[ci];
|
543
|
+
output_ptr = output_buf[ci];
|
544
|
+
/* Loop over all DCT blocks to be processed. */
|
545
|
+
for (block_row = 0; block_row < block_rows; block_row++) {
|
546
|
+
buffer_ptr = buffer[block_row];
|
547
|
+
if (first_row && block_row == 0)
|
548
|
+
prev_block_row = buffer_ptr;
|
549
|
+
else
|
550
|
+
prev_block_row = buffer[block_row-1];
|
551
|
+
if (last_row && block_row == block_rows-1)
|
552
|
+
next_block_row = buffer_ptr;
|
553
|
+
else
|
554
|
+
next_block_row = buffer[block_row+1];
|
555
|
+
/* We fetch the surrounding DC values using a sliding-register approach.
|
556
|
+
* Initialize all nine here so as to do the right thing on narrow pics.
|
557
|
+
*/
|
558
|
+
DC1 = DC2 = DC3 = (int) prev_block_row[0][0];
|
559
|
+
DC4 = DC5 = DC6 = (int) buffer_ptr[0][0];
|
560
|
+
DC7 = DC8 = DC9 = (int) next_block_row[0][0];
|
561
|
+
output_col = 0;
|
562
|
+
last_block_column = compptr->width_in_blocks - 1;
|
563
|
+
for (block_num = 0; block_num <= last_block_column; block_num++) {
|
564
|
+
/* Fetch current DCT block into workspace so we can modify it. */
|
565
|
+
jcopy_block_row(buffer_ptr, (JBLOCKROW) workspace, (JDIMENSION) 1);
|
566
|
+
/* Update DC values */
|
567
|
+
if (block_num < last_block_column) {
|
568
|
+
DC3 = (int) prev_block_row[1][0];
|
569
|
+
DC6 = (int) buffer_ptr[1][0];
|
570
|
+
DC9 = (int) next_block_row[1][0];
|
571
|
+
}
|
572
|
+
/* Compute coefficient estimates per K.8.
|
573
|
+
* An estimate is applied only if coefficient is still zero,
|
574
|
+
* and is not known to be fully accurate.
|
575
|
+
*/
|
576
|
+
/* AC01 */
|
577
|
+
if ((Al=coef_bits[1]) != 0 && workspace[1] == 0) {
|
578
|
+
num = 36 * Q00 * (DC4 - DC6);
|
579
|
+
if (num >= 0) {
|
580
|
+
pred = (int) (((Q01<<7) + num) / (Q01<<8));
|
581
|
+
if (Al > 0 && pred >= (1<<Al))
|
582
|
+
pred = (1<<Al)-1;
|
583
|
+
} else {
|
584
|
+
pred = (int) (((Q01<<7) - num) / (Q01<<8));
|
585
|
+
if (Al > 0 && pred >= (1<<Al))
|
586
|
+
pred = (1<<Al)-1;
|
587
|
+
pred = -pred;
|
588
|
+
}
|
589
|
+
workspace[1] = (JCOEF) pred;
|
590
|
+
}
|
591
|
+
/* AC10 */
|
592
|
+
if ((Al=coef_bits[2]) != 0 && workspace[8] == 0) {
|
593
|
+
num = 36 * Q00 * (DC2 - DC8);
|
594
|
+
if (num >= 0) {
|
595
|
+
pred = (int) (((Q10<<7) + num) / (Q10<<8));
|
596
|
+
if (Al > 0 && pred >= (1<<Al))
|
597
|
+
pred = (1<<Al)-1;
|
598
|
+
} else {
|
599
|
+
pred = (int) (((Q10<<7) - num) / (Q10<<8));
|
600
|
+
if (Al > 0 && pred >= (1<<Al))
|
601
|
+
pred = (1<<Al)-1;
|
602
|
+
pred = -pred;
|
603
|
+
}
|
604
|
+
workspace[8] = (JCOEF) pred;
|
605
|
+
}
|
606
|
+
/* AC20 */
|
607
|
+
if ((Al=coef_bits[3]) != 0 && workspace[16] == 0) {
|
608
|
+
num = 9 * Q00 * (DC2 + DC8 - 2*DC5);
|
609
|
+
if (num >= 0) {
|
610
|
+
pred = (int) (((Q20<<7) + num) / (Q20<<8));
|
611
|
+
if (Al > 0 && pred >= (1<<Al))
|
612
|
+
pred = (1<<Al)-1;
|
613
|
+
} else {
|
614
|
+
pred = (int) (((Q20<<7) - num) / (Q20<<8));
|
615
|
+
if (Al > 0 && pred >= (1<<Al))
|
616
|
+
pred = (1<<Al)-1;
|
617
|
+
pred = -pred;
|
618
|
+
}
|
619
|
+
workspace[16] = (JCOEF) pred;
|
620
|
+
}
|
621
|
+
/* AC11 */
|
622
|
+
if ((Al=coef_bits[4]) != 0 && workspace[9] == 0) {
|
623
|
+
num = 5 * Q00 * (DC1 - DC3 - DC7 + DC9);
|
624
|
+
if (num >= 0) {
|
625
|
+
pred = (int) (((Q11<<7) + num) / (Q11<<8));
|
626
|
+
if (Al > 0 && pred >= (1<<Al))
|
627
|
+
pred = (1<<Al)-1;
|
628
|
+
} else {
|
629
|
+
pred = (int) (((Q11<<7) - num) / (Q11<<8));
|
630
|
+
if (Al > 0 && pred >= (1<<Al))
|
631
|
+
pred = (1<<Al)-1;
|
632
|
+
pred = -pred;
|
633
|
+
}
|
634
|
+
workspace[9] = (JCOEF) pred;
|
635
|
+
}
|
636
|
+
/* AC02 */
|
637
|
+
if ((Al=coef_bits[5]) != 0 && workspace[2] == 0) {
|
638
|
+
num = 9 * Q00 * (DC4 + DC6 - 2*DC5);
|
639
|
+
if (num >= 0) {
|
640
|
+
pred = (int) (((Q02<<7) + num) / (Q02<<8));
|
641
|
+
if (Al > 0 && pred >= (1<<Al))
|
642
|
+
pred = (1<<Al)-1;
|
643
|
+
} else {
|
644
|
+
pred = (int) (((Q02<<7) - num) / (Q02<<8));
|
645
|
+
if (Al > 0 && pred >= (1<<Al))
|
646
|
+
pred = (1<<Al)-1;
|
647
|
+
pred = -pred;
|
648
|
+
}
|
649
|
+
workspace[2] = (JCOEF) pred;
|
650
|
+
}
|
651
|
+
/* OK, do the IDCT */
|
652
|
+
(*inverse_DCT) (cinfo, compptr, (JCOEFPTR) workspace,
|
653
|
+
output_ptr, output_col);
|
654
|
+
/* Advance for next column */
|
655
|
+
DC1 = DC2; DC2 = DC3;
|
656
|
+
DC4 = DC5; DC5 = DC6;
|
657
|
+
DC7 = DC8; DC8 = DC9;
|
658
|
+
buffer_ptr++, prev_block_row++, next_block_row++;
|
659
|
+
output_col += compptr->DCT_h_scaled_size;
|
660
|
+
}
|
661
|
+
output_ptr += compptr->DCT_v_scaled_size;
|
662
|
+
}
|
663
|
+
}
|
664
|
+
|
665
|
+
if (++(cinfo->output_iMCU_row) < cinfo->total_iMCU_rows)
|
666
|
+
return JPEG_ROW_COMPLETED;
|
667
|
+
return JPEG_SCAN_COMPLETED;
|
668
|
+
}
|
669
|
+
|
670
|
+
#endif /* BLOCK_SMOOTHING_SUPPORTED */
|
671
|
+
|
672
|
+
|
673
|
+
/*
|
674
|
+
* Initialize coefficient buffer controller.
|
675
|
+
*/
|
676
|
+
|
677
|
+
GLOBAL(void)
|
678
|
+
jinit_d_coef_controller (j_decompress_ptr cinfo, boolean need_full_buffer)
|
679
|
+
{
|
680
|
+
my_coef_ptr coef;
|
681
|
+
|
682
|
+
coef = (my_coef_ptr)
|
683
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
|
684
|
+
SIZEOF(my_coef_controller));
|
685
|
+
cinfo->coef = (struct jpeg_d_coef_controller *) coef;
|
686
|
+
coef->pub.start_input_pass = start_input_pass;
|
687
|
+
coef->pub.start_output_pass = start_output_pass;
|
688
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
689
|
+
coef->coef_bits_latch = NULL;
|
690
|
+
#endif
|
691
|
+
|
692
|
+
/* Create the coefficient buffer. */
|
693
|
+
if (need_full_buffer) {
|
694
|
+
#ifdef D_MULTISCAN_FILES_SUPPORTED
|
695
|
+
/* Allocate a full-image virtual array for each component, */
|
696
|
+
/* padded to a multiple of samp_factor DCT blocks in each direction. */
|
697
|
+
/* Note we ask for a pre-zeroed array. */
|
698
|
+
int ci, access_rows;
|
699
|
+
jpeg_component_info *compptr;
|
700
|
+
|
701
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
702
|
+
ci++, compptr++) {
|
703
|
+
access_rows = compptr->v_samp_factor;
|
704
|
+
#ifdef BLOCK_SMOOTHING_SUPPORTED
|
705
|
+
/* If block smoothing could be used, need a bigger window */
|
706
|
+
if (cinfo->progressive_mode)
|
707
|
+
access_rows *= 3;
|
708
|
+
#endif
|
709
|
+
coef->whole_image[ci] = (*cinfo->mem->request_virt_barray)
|
710
|
+
((j_common_ptr) cinfo, JPOOL_IMAGE, TRUE,
|
711
|
+
(JDIMENSION) jround_up((long) compptr->width_in_blocks,
|
712
|
+
(long) compptr->h_samp_factor),
|
713
|
+
(JDIMENSION) jround_up((long) compptr->height_in_blocks,
|
714
|
+
(long) compptr->v_samp_factor),
|
715
|
+
(JDIMENSION) access_rows);
|
716
|
+
}
|
717
|
+
coef->pub.consume_data = consume_data;
|
718
|
+
coef->pub.decompress_data = decompress_data;
|
719
|
+
coef->pub.coef_arrays = coef->whole_image; /* link to virtual arrays */
|
720
|
+
#else
|
721
|
+
ERREXIT(cinfo, JERR_NOT_COMPILED);
|
722
|
+
#endif
|
723
|
+
} else {
|
724
|
+
/* We only need a single-MCU buffer. */
|
725
|
+
JBLOCKROW buffer;
|
726
|
+
int i;
|
727
|
+
|
728
|
+
buffer = (JBLOCKROW)
|
729
|
+
(*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE,
|
730
|
+
D_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK));
|
731
|
+
for (i = 0; i < D_MAX_BLOCKS_IN_MCU; i++) {
|
732
|
+
coef->MCU_buffer[i] = buffer + i;
|
733
|
+
}
|
734
|
+
if (cinfo->lim_Se == 0) /* DC only case: want to bypass later */
|
735
|
+
FMEMZERO((void FAR *) buffer,
|
736
|
+
(size_t) (D_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)));
|
737
|
+
coef->pub.consume_data = dummy_consume_data;
|
738
|
+
coef->pub.decompress_data = decompress_onepass;
|
739
|
+
coef->pub.coef_arrays = NULL; /* flag for no virtual arrays */
|
740
|
+
}
|
741
|
+
}
|