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,760 @@
|
|
1
|
+
// Copyright 2010 Google Inc. All Rights Reserved.
|
2
|
+
//
|
3
|
+
// Use of this source code is governed by a BSD-style license
|
4
|
+
// that can be found in the COPYING file in the root of the source
|
5
|
+
// tree. An additional intellectual property rights grant can be found
|
6
|
+
// in the file PATENTS. All contributing project authors may
|
7
|
+
// be found in the AUTHORS file in the root of the source tree.
|
8
|
+
// -----------------------------------------------------------------------------
|
9
|
+
//
|
10
|
+
// Speed-critical decoding functions, default plain-C implementations.
|
11
|
+
//
|
12
|
+
// Author: Skal (pascal.massimino@gmail.com)
|
13
|
+
|
14
|
+
#include "./dsp.h"
|
15
|
+
#include "../dec/vp8i.h"
|
16
|
+
|
17
|
+
//------------------------------------------------------------------------------
|
18
|
+
|
19
|
+
static WEBP_INLINE uint8_t clip_8b(int v) {
|
20
|
+
return (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
|
21
|
+
}
|
22
|
+
|
23
|
+
//------------------------------------------------------------------------------
|
24
|
+
// Transforms (Paragraph 14.4)
|
25
|
+
|
26
|
+
#define STORE(x, y, v) \
|
27
|
+
dst[x + y * BPS] = clip_8b(dst[x + y * BPS] + ((v) >> 3))
|
28
|
+
|
29
|
+
#define STORE2(y, dc, d, c) do { \
|
30
|
+
const int DC = (dc); \
|
31
|
+
STORE(0, y, DC + (d)); \
|
32
|
+
STORE(1, y, DC + (c)); \
|
33
|
+
STORE(2, y, DC - (c)); \
|
34
|
+
STORE(3, y, DC - (d)); \
|
35
|
+
} while (0)
|
36
|
+
|
37
|
+
static const int kC1 = 20091 + (1 << 16);
|
38
|
+
static const int kC2 = 35468;
|
39
|
+
#define MUL(a, b) (((a) * (b)) >> 16)
|
40
|
+
|
41
|
+
static void TransformOne(const int16_t* in, uint8_t* dst) {
|
42
|
+
int C[4 * 4], *tmp;
|
43
|
+
int i;
|
44
|
+
tmp = C;
|
45
|
+
for (i = 0; i < 4; ++i) { // vertical pass
|
46
|
+
const int a = in[0] + in[8]; // [-4096, 4094]
|
47
|
+
const int b = in[0] - in[8]; // [-4095, 4095]
|
48
|
+
const int c = MUL(in[4], kC2) - MUL(in[12], kC1); // [-3783, 3783]
|
49
|
+
const int d = MUL(in[4], kC1) + MUL(in[12], kC2); // [-3785, 3781]
|
50
|
+
tmp[0] = a + d; // [-7881, 7875]
|
51
|
+
tmp[1] = b + c; // [-7878, 7878]
|
52
|
+
tmp[2] = b - c; // [-7878, 7878]
|
53
|
+
tmp[3] = a - d; // [-7877, 7879]
|
54
|
+
tmp += 4;
|
55
|
+
in++;
|
56
|
+
}
|
57
|
+
// Each pass is expanding the dynamic range by ~3.85 (upper bound).
|
58
|
+
// The exact value is (2. + (kC1 + kC2) / 65536).
|
59
|
+
// After the second pass, maximum interval is [-3794, 3794], assuming
|
60
|
+
// an input in [-2048, 2047] interval. We then need to add a dst value
|
61
|
+
// in the [0, 255] range.
|
62
|
+
// In the worst case scenario, the input to clip_8b() can be as large as
|
63
|
+
// [-60713, 60968].
|
64
|
+
tmp = C;
|
65
|
+
for (i = 0; i < 4; ++i) { // horizontal pass
|
66
|
+
const int dc = tmp[0] + 4;
|
67
|
+
const int a = dc + tmp[8];
|
68
|
+
const int b = dc - tmp[8];
|
69
|
+
const int c = MUL(tmp[4], kC2) - MUL(tmp[12], kC1);
|
70
|
+
const int d = MUL(tmp[4], kC1) + MUL(tmp[12], kC2);
|
71
|
+
STORE(0, 0, a + d);
|
72
|
+
STORE(1, 0, b + c);
|
73
|
+
STORE(2, 0, b - c);
|
74
|
+
STORE(3, 0, a - d);
|
75
|
+
tmp++;
|
76
|
+
dst += BPS;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// Simplified transform when only in[0], in[1] and in[4] are non-zero
|
81
|
+
static void TransformAC3(const int16_t* in, uint8_t* dst) {
|
82
|
+
const int a = in[0] + 4;
|
83
|
+
const int c4 = MUL(in[4], kC2);
|
84
|
+
const int d4 = MUL(in[4], kC1);
|
85
|
+
const int c1 = MUL(in[1], kC2);
|
86
|
+
const int d1 = MUL(in[1], kC1);
|
87
|
+
STORE2(0, a + d4, d1, c1);
|
88
|
+
STORE2(1, a + c4, d1, c1);
|
89
|
+
STORE2(2, a - c4, d1, c1);
|
90
|
+
STORE2(3, a - d4, d1, c1);
|
91
|
+
}
|
92
|
+
#undef MUL
|
93
|
+
#undef STORE2
|
94
|
+
|
95
|
+
static void TransformTwo(const int16_t* in, uint8_t* dst, int do_two) {
|
96
|
+
TransformOne(in, dst);
|
97
|
+
if (do_two) {
|
98
|
+
TransformOne(in + 16, dst + 4);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
static void TransformUV(const int16_t* in, uint8_t* dst) {
|
103
|
+
VP8Transform(in + 0 * 16, dst, 1);
|
104
|
+
VP8Transform(in + 2 * 16, dst + 4 * BPS, 1);
|
105
|
+
}
|
106
|
+
|
107
|
+
static void TransformDC(const int16_t* in, uint8_t* dst) {
|
108
|
+
const int DC = in[0] + 4;
|
109
|
+
int i, j;
|
110
|
+
for (j = 0; j < 4; ++j) {
|
111
|
+
for (i = 0; i < 4; ++i) {
|
112
|
+
STORE(i, j, DC);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
static void TransformDCUV(const int16_t* in, uint8_t* dst) {
|
118
|
+
if (in[0 * 16]) VP8TransformDC(in + 0 * 16, dst);
|
119
|
+
if (in[1 * 16]) VP8TransformDC(in + 1 * 16, dst + 4);
|
120
|
+
if (in[2 * 16]) VP8TransformDC(in + 2 * 16, dst + 4 * BPS);
|
121
|
+
if (in[3 * 16]) VP8TransformDC(in + 3 * 16, dst + 4 * BPS + 4);
|
122
|
+
}
|
123
|
+
|
124
|
+
#undef STORE
|
125
|
+
|
126
|
+
//------------------------------------------------------------------------------
|
127
|
+
// Paragraph 14.3
|
128
|
+
|
129
|
+
static void TransformWHT(const int16_t* in, int16_t* out) {
|
130
|
+
int tmp[16];
|
131
|
+
int i;
|
132
|
+
for (i = 0; i < 4; ++i) {
|
133
|
+
const int a0 = in[0 + i] + in[12 + i];
|
134
|
+
const int a1 = in[4 + i] + in[ 8 + i];
|
135
|
+
const int a2 = in[4 + i] - in[ 8 + i];
|
136
|
+
const int a3 = in[0 + i] - in[12 + i];
|
137
|
+
tmp[0 + i] = a0 + a1;
|
138
|
+
tmp[8 + i] = a0 - a1;
|
139
|
+
tmp[4 + i] = a3 + a2;
|
140
|
+
tmp[12 + i] = a3 - a2;
|
141
|
+
}
|
142
|
+
for (i = 0; i < 4; ++i) {
|
143
|
+
const int dc = tmp[0 + i * 4] + 3; // w/ rounder
|
144
|
+
const int a0 = dc + tmp[3 + i * 4];
|
145
|
+
const int a1 = tmp[1 + i * 4] + tmp[2 + i * 4];
|
146
|
+
const int a2 = tmp[1 + i * 4] - tmp[2 + i * 4];
|
147
|
+
const int a3 = dc - tmp[3 + i * 4];
|
148
|
+
out[ 0] = (a0 + a1) >> 3;
|
149
|
+
out[16] = (a3 + a2) >> 3;
|
150
|
+
out[32] = (a0 - a1) >> 3;
|
151
|
+
out[48] = (a3 - a2) >> 3;
|
152
|
+
out += 64;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
void (*VP8TransformWHT)(const int16_t* in, int16_t* out);
|
157
|
+
|
158
|
+
//------------------------------------------------------------------------------
|
159
|
+
// Intra predictions
|
160
|
+
|
161
|
+
#define DST(x, y) dst[(x) + (y) * BPS]
|
162
|
+
|
163
|
+
static WEBP_INLINE void TrueMotion(uint8_t* dst, int size) {
|
164
|
+
const uint8_t* top = dst - BPS;
|
165
|
+
const uint8_t* const clip0 = VP8kclip1 - top[-1];
|
166
|
+
int y;
|
167
|
+
for (y = 0; y < size; ++y) {
|
168
|
+
const uint8_t* const clip = clip0 + dst[-1];
|
169
|
+
int x;
|
170
|
+
for (x = 0; x < size; ++x) {
|
171
|
+
dst[x] = clip[top[x]];
|
172
|
+
}
|
173
|
+
dst += BPS;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
static void TM4(uint8_t* dst) { TrueMotion(dst, 4); }
|
177
|
+
static void TM8uv(uint8_t* dst) { TrueMotion(dst, 8); }
|
178
|
+
static void TM16(uint8_t* dst) { TrueMotion(dst, 16); }
|
179
|
+
|
180
|
+
//------------------------------------------------------------------------------
|
181
|
+
// 16x16
|
182
|
+
|
183
|
+
static void VE16(uint8_t* dst) { // vertical
|
184
|
+
int j;
|
185
|
+
for (j = 0; j < 16; ++j) {
|
186
|
+
memcpy(dst + j * BPS, dst - BPS, 16);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
static void HE16(uint8_t* dst) { // horizontal
|
191
|
+
int j;
|
192
|
+
for (j = 16; j > 0; --j) {
|
193
|
+
memset(dst, dst[-1], 16);
|
194
|
+
dst += BPS;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
static WEBP_INLINE void Put16(int v, uint8_t* dst) {
|
199
|
+
int j;
|
200
|
+
for (j = 0; j < 16; ++j) {
|
201
|
+
memset(dst + j * BPS, v, 16);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
static void DC16(uint8_t* dst) { // DC
|
206
|
+
int DC = 16;
|
207
|
+
int j;
|
208
|
+
for (j = 0; j < 16; ++j) {
|
209
|
+
DC += dst[-1 + j * BPS] + dst[j - BPS];
|
210
|
+
}
|
211
|
+
Put16(DC >> 5, dst);
|
212
|
+
}
|
213
|
+
|
214
|
+
static void DC16NoTop(uint8_t* dst) { // DC with top samples not available
|
215
|
+
int DC = 8;
|
216
|
+
int j;
|
217
|
+
for (j = 0; j < 16; ++j) {
|
218
|
+
DC += dst[-1 + j * BPS];
|
219
|
+
}
|
220
|
+
Put16(DC >> 4, dst);
|
221
|
+
}
|
222
|
+
|
223
|
+
static void DC16NoLeft(uint8_t* dst) { // DC with left samples not available
|
224
|
+
int DC = 8;
|
225
|
+
int i;
|
226
|
+
for (i = 0; i < 16; ++i) {
|
227
|
+
DC += dst[i - BPS];
|
228
|
+
}
|
229
|
+
Put16(DC >> 4, dst);
|
230
|
+
}
|
231
|
+
|
232
|
+
static void DC16NoTopLeft(uint8_t* dst) { // DC with no top and left samples
|
233
|
+
Put16(0x80, dst);
|
234
|
+
}
|
235
|
+
|
236
|
+
VP8PredFunc VP8PredLuma16[NUM_B_DC_MODES];
|
237
|
+
|
238
|
+
//------------------------------------------------------------------------------
|
239
|
+
// 4x4
|
240
|
+
|
241
|
+
#define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2)
|
242
|
+
#define AVG2(a, b) (((a) + (b) + 1) >> 1)
|
243
|
+
|
244
|
+
static void VE4(uint8_t* dst) { // vertical
|
245
|
+
const uint8_t* top = dst - BPS;
|
246
|
+
const uint8_t vals[4] = {
|
247
|
+
AVG3(top[-1], top[0], top[1]),
|
248
|
+
AVG3(top[ 0], top[1], top[2]),
|
249
|
+
AVG3(top[ 1], top[2], top[3]),
|
250
|
+
AVG3(top[ 2], top[3], top[4])
|
251
|
+
};
|
252
|
+
int i;
|
253
|
+
for (i = 0; i < 4; ++i) {
|
254
|
+
memcpy(dst + i * BPS, vals, sizeof(vals));
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
static void HE4(uint8_t* dst) { // horizontal
|
259
|
+
const int A = dst[-1 - BPS];
|
260
|
+
const int B = dst[-1];
|
261
|
+
const int C = dst[-1 + BPS];
|
262
|
+
const int D = dst[-1 + 2 * BPS];
|
263
|
+
const int E = dst[-1 + 3 * BPS];
|
264
|
+
*(uint32_t*)(dst + 0 * BPS) = 0x01010101U * AVG3(A, B, C);
|
265
|
+
*(uint32_t*)(dst + 1 * BPS) = 0x01010101U * AVG3(B, C, D);
|
266
|
+
*(uint32_t*)(dst + 2 * BPS) = 0x01010101U * AVG3(C, D, E);
|
267
|
+
*(uint32_t*)(dst + 3 * BPS) = 0x01010101U * AVG3(D, E, E);
|
268
|
+
}
|
269
|
+
|
270
|
+
static void DC4(uint8_t* dst) { // DC
|
271
|
+
uint32_t dc = 4;
|
272
|
+
int i;
|
273
|
+
for (i = 0; i < 4; ++i) dc += dst[i - BPS] + dst[-1 + i * BPS];
|
274
|
+
dc >>= 3;
|
275
|
+
for (i = 0; i < 4; ++i) memset(dst + i * BPS, dc, 4);
|
276
|
+
}
|
277
|
+
|
278
|
+
static void RD4(uint8_t* dst) { // Down-right
|
279
|
+
const int I = dst[-1 + 0 * BPS];
|
280
|
+
const int J = dst[-1 + 1 * BPS];
|
281
|
+
const int K = dst[-1 + 2 * BPS];
|
282
|
+
const int L = dst[-1 + 3 * BPS];
|
283
|
+
const int X = dst[-1 - BPS];
|
284
|
+
const int A = dst[0 - BPS];
|
285
|
+
const int B = dst[1 - BPS];
|
286
|
+
const int C = dst[2 - BPS];
|
287
|
+
const int D = dst[3 - BPS];
|
288
|
+
DST(0, 3) = AVG3(J, K, L);
|
289
|
+
DST(1, 3) = DST(0, 2) = AVG3(I, J, K);
|
290
|
+
DST(2, 3) = DST(1, 2) = DST(0, 1) = AVG3(X, I, J);
|
291
|
+
DST(3, 3) = DST(2, 2) = DST(1, 1) = DST(0, 0) = AVG3(A, X, I);
|
292
|
+
DST(3, 2) = DST(2, 1) = DST(1, 0) = AVG3(B, A, X);
|
293
|
+
DST(3, 1) = DST(2, 0) = AVG3(C, B, A);
|
294
|
+
DST(3, 0) = AVG3(D, C, B);
|
295
|
+
}
|
296
|
+
|
297
|
+
static void LD4(uint8_t* dst) { // Down-Left
|
298
|
+
const int A = dst[0 - BPS];
|
299
|
+
const int B = dst[1 - BPS];
|
300
|
+
const int C = dst[2 - BPS];
|
301
|
+
const int D = dst[3 - BPS];
|
302
|
+
const int E = dst[4 - BPS];
|
303
|
+
const int F = dst[5 - BPS];
|
304
|
+
const int G = dst[6 - BPS];
|
305
|
+
const int H = dst[7 - BPS];
|
306
|
+
DST(0, 0) = AVG3(A, B, C);
|
307
|
+
DST(1, 0) = DST(0, 1) = AVG3(B, C, D);
|
308
|
+
DST(2, 0) = DST(1, 1) = DST(0, 2) = AVG3(C, D, E);
|
309
|
+
DST(3, 0) = DST(2, 1) = DST(1, 2) = DST(0, 3) = AVG3(D, E, F);
|
310
|
+
DST(3, 1) = DST(2, 2) = DST(1, 3) = AVG3(E, F, G);
|
311
|
+
DST(3, 2) = DST(2, 3) = AVG3(F, G, H);
|
312
|
+
DST(3, 3) = AVG3(G, H, H);
|
313
|
+
}
|
314
|
+
|
315
|
+
static void VR4(uint8_t* dst) { // Vertical-Right
|
316
|
+
const int I = dst[-1 + 0 * BPS];
|
317
|
+
const int J = dst[-1 + 1 * BPS];
|
318
|
+
const int K = dst[-1 + 2 * BPS];
|
319
|
+
const int X = dst[-1 - BPS];
|
320
|
+
const int A = dst[0 - BPS];
|
321
|
+
const int B = dst[1 - BPS];
|
322
|
+
const int C = dst[2 - BPS];
|
323
|
+
const int D = dst[3 - BPS];
|
324
|
+
DST(0, 0) = DST(1, 2) = AVG2(X, A);
|
325
|
+
DST(1, 0) = DST(2, 2) = AVG2(A, B);
|
326
|
+
DST(2, 0) = DST(3, 2) = AVG2(B, C);
|
327
|
+
DST(3, 0) = AVG2(C, D);
|
328
|
+
|
329
|
+
DST(0, 3) = AVG3(K, J, I);
|
330
|
+
DST(0, 2) = AVG3(J, I, X);
|
331
|
+
DST(0, 1) = DST(1, 3) = AVG3(I, X, A);
|
332
|
+
DST(1, 1) = DST(2, 3) = AVG3(X, A, B);
|
333
|
+
DST(2, 1) = DST(3, 3) = AVG3(A, B, C);
|
334
|
+
DST(3, 1) = AVG3(B, C, D);
|
335
|
+
}
|
336
|
+
|
337
|
+
static void VL4(uint8_t* dst) { // Vertical-Left
|
338
|
+
const int A = dst[0 - BPS];
|
339
|
+
const int B = dst[1 - BPS];
|
340
|
+
const int C = dst[2 - BPS];
|
341
|
+
const int D = dst[3 - BPS];
|
342
|
+
const int E = dst[4 - BPS];
|
343
|
+
const int F = dst[5 - BPS];
|
344
|
+
const int G = dst[6 - BPS];
|
345
|
+
const int H = dst[7 - BPS];
|
346
|
+
DST(0, 0) = AVG2(A, B);
|
347
|
+
DST(1, 0) = DST(0, 2) = AVG2(B, C);
|
348
|
+
DST(2, 0) = DST(1, 2) = AVG2(C, D);
|
349
|
+
DST(3, 0) = DST(2, 2) = AVG2(D, E);
|
350
|
+
|
351
|
+
DST(0, 1) = AVG3(A, B, C);
|
352
|
+
DST(1, 1) = DST(0, 3) = AVG3(B, C, D);
|
353
|
+
DST(2, 1) = DST(1, 3) = AVG3(C, D, E);
|
354
|
+
DST(3, 1) = DST(2, 3) = AVG3(D, E, F);
|
355
|
+
DST(3, 2) = AVG3(E, F, G);
|
356
|
+
DST(3, 3) = AVG3(F, G, H);
|
357
|
+
}
|
358
|
+
|
359
|
+
static void HU4(uint8_t* dst) { // Horizontal-Up
|
360
|
+
const int I = dst[-1 + 0 * BPS];
|
361
|
+
const int J = dst[-1 + 1 * BPS];
|
362
|
+
const int K = dst[-1 + 2 * BPS];
|
363
|
+
const int L = dst[-1 + 3 * BPS];
|
364
|
+
DST(0, 0) = AVG2(I, J);
|
365
|
+
DST(2, 0) = DST(0, 1) = AVG2(J, K);
|
366
|
+
DST(2, 1) = DST(0, 2) = AVG2(K, L);
|
367
|
+
DST(1, 0) = AVG3(I, J, K);
|
368
|
+
DST(3, 0) = DST(1, 1) = AVG3(J, K, L);
|
369
|
+
DST(3, 1) = DST(1, 2) = AVG3(K, L, L);
|
370
|
+
DST(3, 2) = DST(2, 2) =
|
371
|
+
DST(0, 3) = DST(1, 3) = DST(2, 3) = DST(3, 3) = L;
|
372
|
+
}
|
373
|
+
|
374
|
+
static void HD4(uint8_t* dst) { // Horizontal-Down
|
375
|
+
const int I = dst[-1 + 0 * BPS];
|
376
|
+
const int J = dst[-1 + 1 * BPS];
|
377
|
+
const int K = dst[-1 + 2 * BPS];
|
378
|
+
const int L = dst[-1 + 3 * BPS];
|
379
|
+
const int X = dst[-1 - BPS];
|
380
|
+
const int A = dst[0 - BPS];
|
381
|
+
const int B = dst[1 - BPS];
|
382
|
+
const int C = dst[2 - BPS];
|
383
|
+
|
384
|
+
DST(0, 0) = DST(2, 1) = AVG2(I, X);
|
385
|
+
DST(0, 1) = DST(2, 2) = AVG2(J, I);
|
386
|
+
DST(0, 2) = DST(2, 3) = AVG2(K, J);
|
387
|
+
DST(0, 3) = AVG2(L, K);
|
388
|
+
|
389
|
+
DST(3, 0) = AVG3(A, B, C);
|
390
|
+
DST(2, 0) = AVG3(X, A, B);
|
391
|
+
DST(1, 0) = DST(3, 1) = AVG3(I, X, A);
|
392
|
+
DST(1, 1) = DST(3, 2) = AVG3(J, I, X);
|
393
|
+
DST(1, 2) = DST(3, 3) = AVG3(K, J, I);
|
394
|
+
DST(1, 3) = AVG3(L, K, J);
|
395
|
+
}
|
396
|
+
|
397
|
+
#undef DST
|
398
|
+
#undef AVG3
|
399
|
+
#undef AVG2
|
400
|
+
|
401
|
+
VP8PredFunc VP8PredLuma4[NUM_BMODES];
|
402
|
+
|
403
|
+
//------------------------------------------------------------------------------
|
404
|
+
// Chroma
|
405
|
+
|
406
|
+
static void VE8uv(uint8_t* dst) { // vertical
|
407
|
+
int j;
|
408
|
+
for (j = 0; j < 8; ++j) {
|
409
|
+
memcpy(dst + j * BPS, dst - BPS, 8);
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
static void HE8uv(uint8_t* dst) { // horizontal
|
414
|
+
int j;
|
415
|
+
for (j = 0; j < 8; ++j) {
|
416
|
+
memset(dst, dst[-1], 8);
|
417
|
+
dst += BPS;
|
418
|
+
}
|
419
|
+
}
|
420
|
+
|
421
|
+
// helper for chroma-DC predictions
|
422
|
+
static WEBP_INLINE void Put8x8uv(uint8_t value, uint8_t* dst) {
|
423
|
+
int j;
|
424
|
+
for (j = 0; j < 8; ++j) {
|
425
|
+
memset(dst + j * BPS, value, 8);
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
static void DC8uv(uint8_t* dst) { // DC
|
430
|
+
int dc0 = 8;
|
431
|
+
int i;
|
432
|
+
for (i = 0; i < 8; ++i) {
|
433
|
+
dc0 += dst[i - BPS] + dst[-1 + i * BPS];
|
434
|
+
}
|
435
|
+
Put8x8uv(dc0 >> 4, dst);
|
436
|
+
}
|
437
|
+
|
438
|
+
static void DC8uvNoLeft(uint8_t* dst) { // DC with no left samples
|
439
|
+
int dc0 = 4;
|
440
|
+
int i;
|
441
|
+
for (i = 0; i < 8; ++i) {
|
442
|
+
dc0 += dst[i - BPS];
|
443
|
+
}
|
444
|
+
Put8x8uv(dc0 >> 3, dst);
|
445
|
+
}
|
446
|
+
|
447
|
+
static void DC8uvNoTop(uint8_t* dst) { // DC with no top samples
|
448
|
+
int dc0 = 4;
|
449
|
+
int i;
|
450
|
+
for (i = 0; i < 8; ++i) {
|
451
|
+
dc0 += dst[-1 + i * BPS];
|
452
|
+
}
|
453
|
+
Put8x8uv(dc0 >> 3, dst);
|
454
|
+
}
|
455
|
+
|
456
|
+
static void DC8uvNoTopLeft(uint8_t* dst) { // DC with nothing
|
457
|
+
Put8x8uv(0x80, dst);
|
458
|
+
}
|
459
|
+
|
460
|
+
VP8PredFunc VP8PredChroma8[NUM_B_DC_MODES];
|
461
|
+
|
462
|
+
//------------------------------------------------------------------------------
|
463
|
+
// Edge filtering functions
|
464
|
+
|
465
|
+
// 4 pixels in, 2 pixels out
|
466
|
+
static WEBP_INLINE void do_filter2(uint8_t* p, int step) {
|
467
|
+
const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step];
|
468
|
+
const int a = 3 * (q0 - p0) + VP8ksclip1[p1 - q1]; // in [-893,892]
|
469
|
+
const int a1 = VP8ksclip2[(a + 4) >> 3]; // in [-16,15]
|
470
|
+
const int a2 = VP8ksclip2[(a + 3) >> 3];
|
471
|
+
p[-step] = VP8kclip1[p0 + a2];
|
472
|
+
p[ 0] = VP8kclip1[q0 - a1];
|
473
|
+
}
|
474
|
+
|
475
|
+
// 4 pixels in, 4 pixels out
|
476
|
+
static WEBP_INLINE void do_filter4(uint8_t* p, int step) {
|
477
|
+
const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step];
|
478
|
+
const int a = 3 * (q0 - p0);
|
479
|
+
const int a1 = VP8ksclip2[(a + 4) >> 3];
|
480
|
+
const int a2 = VP8ksclip2[(a + 3) >> 3];
|
481
|
+
const int a3 = (a1 + 1) >> 1;
|
482
|
+
p[-2*step] = VP8kclip1[p1 + a3];
|
483
|
+
p[- step] = VP8kclip1[p0 + a2];
|
484
|
+
p[ 0] = VP8kclip1[q0 - a1];
|
485
|
+
p[ step] = VP8kclip1[q1 - a3];
|
486
|
+
}
|
487
|
+
|
488
|
+
// 6 pixels in, 6 pixels out
|
489
|
+
static WEBP_INLINE void do_filter6(uint8_t* p, int step) {
|
490
|
+
const int p2 = p[-3*step], p1 = p[-2*step], p0 = p[-step];
|
491
|
+
const int q0 = p[0], q1 = p[step], q2 = p[2*step];
|
492
|
+
const int a = VP8ksclip1[3 * (q0 - p0) + VP8ksclip1[p1 - q1]];
|
493
|
+
// a is in [-128,127], a1 in [-27,27], a2 in [-18,18] and a3 in [-9,9]
|
494
|
+
const int a1 = (27 * a + 63) >> 7; // eq. to ((3 * a + 7) * 9) >> 7
|
495
|
+
const int a2 = (18 * a + 63) >> 7; // eq. to ((2 * a + 7) * 9) >> 7
|
496
|
+
const int a3 = (9 * a + 63) >> 7; // eq. to ((1 * a + 7) * 9) >> 7
|
497
|
+
p[-3*step] = VP8kclip1[p2 + a3];
|
498
|
+
p[-2*step] = VP8kclip1[p1 + a2];
|
499
|
+
p[- step] = VP8kclip1[p0 + a1];
|
500
|
+
p[ 0] = VP8kclip1[q0 - a1];
|
501
|
+
p[ step] = VP8kclip1[q1 - a2];
|
502
|
+
p[ 2*step] = VP8kclip1[q2 - a3];
|
503
|
+
}
|
504
|
+
|
505
|
+
static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) {
|
506
|
+
const int p1 = p[-2*step], p0 = p[-step], q0 = p[0], q1 = p[step];
|
507
|
+
return (VP8kabs0[p1 - p0] > thresh) || (VP8kabs0[q1 - q0] > thresh);
|
508
|
+
}
|
509
|
+
|
510
|
+
static WEBP_INLINE int needs_filter(const uint8_t* p, int step, int t) {
|
511
|
+
const int p1 = p[-2 * step], p0 = p[-step], q0 = p[0], q1 = p[step];
|
512
|
+
return ((4 * VP8kabs0[p0 - q0] + VP8kabs0[p1 - q1]) <= t);
|
513
|
+
}
|
514
|
+
|
515
|
+
static WEBP_INLINE int needs_filter2(const uint8_t* p,
|
516
|
+
int step, int t, int it) {
|
517
|
+
const int p3 = p[-4 * step], p2 = p[-3 * step], p1 = p[-2 * step];
|
518
|
+
const int p0 = p[-step], q0 = p[0];
|
519
|
+
const int q1 = p[step], q2 = p[2 * step], q3 = p[3 * step];
|
520
|
+
if ((4 * VP8kabs0[p0 - q0] + VP8kabs0[p1 - q1]) > t) return 0;
|
521
|
+
return VP8kabs0[p3 - p2] <= it && VP8kabs0[p2 - p1] <= it &&
|
522
|
+
VP8kabs0[p1 - p0] <= it && VP8kabs0[q3 - q2] <= it &&
|
523
|
+
VP8kabs0[q2 - q1] <= it && VP8kabs0[q1 - q0] <= it;
|
524
|
+
}
|
525
|
+
|
526
|
+
//------------------------------------------------------------------------------
|
527
|
+
// Simple In-loop filtering (Paragraph 15.2)
|
528
|
+
|
529
|
+
static void SimpleVFilter16(uint8_t* p, int stride, int thresh) {
|
530
|
+
int i;
|
531
|
+
const int thresh2 = 2 * thresh + 1;
|
532
|
+
for (i = 0; i < 16; ++i) {
|
533
|
+
if (needs_filter(p + i, stride, thresh2)) {
|
534
|
+
do_filter2(p + i, stride);
|
535
|
+
}
|
536
|
+
}
|
537
|
+
}
|
538
|
+
|
539
|
+
static void SimpleHFilter16(uint8_t* p, int stride, int thresh) {
|
540
|
+
int i;
|
541
|
+
const int thresh2 = 2 * thresh + 1;
|
542
|
+
for (i = 0; i < 16; ++i) {
|
543
|
+
if (needs_filter(p + i * stride, 1, thresh2)) {
|
544
|
+
do_filter2(p + i * stride, 1);
|
545
|
+
}
|
546
|
+
}
|
547
|
+
}
|
548
|
+
|
549
|
+
static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) {
|
550
|
+
int k;
|
551
|
+
for (k = 3; k > 0; --k) {
|
552
|
+
p += 4 * stride;
|
553
|
+
SimpleVFilter16(p, stride, thresh);
|
554
|
+
}
|
555
|
+
}
|
556
|
+
|
557
|
+
static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) {
|
558
|
+
int k;
|
559
|
+
for (k = 3; k > 0; --k) {
|
560
|
+
p += 4;
|
561
|
+
SimpleHFilter16(p, stride, thresh);
|
562
|
+
}
|
563
|
+
}
|
564
|
+
|
565
|
+
//------------------------------------------------------------------------------
|
566
|
+
// Complex In-loop filtering (Paragraph 15.3)
|
567
|
+
|
568
|
+
static WEBP_INLINE void FilterLoop26(uint8_t* p,
|
569
|
+
int hstride, int vstride, int size,
|
570
|
+
int thresh, int ithresh, int hev_thresh) {
|
571
|
+
const int thresh2 = 2 * thresh + 1;
|
572
|
+
while (size-- > 0) {
|
573
|
+
if (needs_filter2(p, hstride, thresh2, ithresh)) {
|
574
|
+
if (hev(p, hstride, hev_thresh)) {
|
575
|
+
do_filter2(p, hstride);
|
576
|
+
} else {
|
577
|
+
do_filter6(p, hstride);
|
578
|
+
}
|
579
|
+
}
|
580
|
+
p += vstride;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
static WEBP_INLINE void FilterLoop24(uint8_t* p,
|
585
|
+
int hstride, int vstride, int size,
|
586
|
+
int thresh, int ithresh, int hev_thresh) {
|
587
|
+
const int thresh2 = 2 * thresh + 1;
|
588
|
+
while (size-- > 0) {
|
589
|
+
if (needs_filter2(p, hstride, thresh2, ithresh)) {
|
590
|
+
if (hev(p, hstride, hev_thresh)) {
|
591
|
+
do_filter2(p, hstride);
|
592
|
+
} else {
|
593
|
+
do_filter4(p, hstride);
|
594
|
+
}
|
595
|
+
}
|
596
|
+
p += vstride;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
|
600
|
+
// on macroblock edges
|
601
|
+
static void VFilter16(uint8_t* p, int stride,
|
602
|
+
int thresh, int ithresh, int hev_thresh) {
|
603
|
+
FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh);
|
604
|
+
}
|
605
|
+
|
606
|
+
static void HFilter16(uint8_t* p, int stride,
|
607
|
+
int thresh, int ithresh, int hev_thresh) {
|
608
|
+
FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh);
|
609
|
+
}
|
610
|
+
|
611
|
+
// on three inner edges
|
612
|
+
static void VFilter16i(uint8_t* p, int stride,
|
613
|
+
int thresh, int ithresh, int hev_thresh) {
|
614
|
+
int k;
|
615
|
+
for (k = 3; k > 0; --k) {
|
616
|
+
p += 4 * stride;
|
617
|
+
FilterLoop24(p, stride, 1, 16, thresh, ithresh, hev_thresh);
|
618
|
+
}
|
619
|
+
}
|
620
|
+
|
621
|
+
static void HFilter16i(uint8_t* p, int stride,
|
622
|
+
int thresh, int ithresh, int hev_thresh) {
|
623
|
+
int k;
|
624
|
+
for (k = 3; k > 0; --k) {
|
625
|
+
p += 4;
|
626
|
+
FilterLoop24(p, 1, stride, 16, thresh, ithresh, hev_thresh);
|
627
|
+
}
|
628
|
+
}
|
629
|
+
|
630
|
+
// 8-pixels wide variant, for chroma filtering
|
631
|
+
static void VFilter8(uint8_t* u, uint8_t* v, int stride,
|
632
|
+
int thresh, int ithresh, int hev_thresh) {
|
633
|
+
FilterLoop26(u, stride, 1, 8, thresh, ithresh, hev_thresh);
|
634
|
+
FilterLoop26(v, stride, 1, 8, thresh, ithresh, hev_thresh);
|
635
|
+
}
|
636
|
+
|
637
|
+
static void HFilter8(uint8_t* u, uint8_t* v, int stride,
|
638
|
+
int thresh, int ithresh, int hev_thresh) {
|
639
|
+
FilterLoop26(u, 1, stride, 8, thresh, ithresh, hev_thresh);
|
640
|
+
FilterLoop26(v, 1, stride, 8, thresh, ithresh, hev_thresh);
|
641
|
+
}
|
642
|
+
|
643
|
+
static void VFilter8i(uint8_t* u, uint8_t* v, int stride,
|
644
|
+
int thresh, int ithresh, int hev_thresh) {
|
645
|
+
FilterLoop24(u + 4 * stride, stride, 1, 8, thresh, ithresh, hev_thresh);
|
646
|
+
FilterLoop24(v + 4 * stride, stride, 1, 8, thresh, ithresh, hev_thresh);
|
647
|
+
}
|
648
|
+
|
649
|
+
static void HFilter8i(uint8_t* u, uint8_t* v, int stride,
|
650
|
+
int thresh, int ithresh, int hev_thresh) {
|
651
|
+
FilterLoop24(u + 4, 1, stride, 8, thresh, ithresh, hev_thresh);
|
652
|
+
FilterLoop24(v + 4, 1, stride, 8, thresh, ithresh, hev_thresh);
|
653
|
+
}
|
654
|
+
|
655
|
+
//------------------------------------------------------------------------------
|
656
|
+
|
657
|
+
VP8DecIdct2 VP8Transform;
|
658
|
+
VP8DecIdct VP8TransformAC3;
|
659
|
+
VP8DecIdct VP8TransformUV;
|
660
|
+
VP8DecIdct VP8TransformDC;
|
661
|
+
VP8DecIdct VP8TransformDCUV;
|
662
|
+
|
663
|
+
VP8LumaFilterFunc VP8VFilter16;
|
664
|
+
VP8LumaFilterFunc VP8HFilter16;
|
665
|
+
VP8ChromaFilterFunc VP8VFilter8;
|
666
|
+
VP8ChromaFilterFunc VP8HFilter8;
|
667
|
+
VP8LumaFilterFunc VP8VFilter16i;
|
668
|
+
VP8LumaFilterFunc VP8HFilter16i;
|
669
|
+
VP8ChromaFilterFunc VP8VFilter8i;
|
670
|
+
VP8ChromaFilterFunc VP8HFilter8i;
|
671
|
+
VP8SimpleFilterFunc VP8SimpleVFilter16;
|
672
|
+
VP8SimpleFilterFunc VP8SimpleHFilter16;
|
673
|
+
VP8SimpleFilterFunc VP8SimpleVFilter16i;
|
674
|
+
VP8SimpleFilterFunc VP8SimpleHFilter16i;
|
675
|
+
|
676
|
+
extern void VP8DspInitSSE2(void);
|
677
|
+
extern void VP8DspInitNEON(void);
|
678
|
+
extern void VP8DspInitMIPS32(void);
|
679
|
+
extern void VP8DspInitMIPSdspR2(void);
|
680
|
+
|
681
|
+
static volatile VP8CPUInfo dec_last_cpuinfo_used =
|
682
|
+
(VP8CPUInfo)&dec_last_cpuinfo_used;
|
683
|
+
|
684
|
+
WEBP_TSAN_IGNORE_FUNCTION void VP8DspInit(void) {
|
685
|
+
if (dec_last_cpuinfo_used == VP8GetCPUInfo) return;
|
686
|
+
|
687
|
+
VP8InitClipTables();
|
688
|
+
|
689
|
+
VP8TransformWHT = TransformWHT;
|
690
|
+
VP8Transform = TransformTwo;
|
691
|
+
VP8TransformUV = TransformUV;
|
692
|
+
VP8TransformDC = TransformDC;
|
693
|
+
VP8TransformDCUV = TransformDCUV;
|
694
|
+
VP8TransformAC3 = TransformAC3;
|
695
|
+
|
696
|
+
VP8VFilter16 = VFilter16;
|
697
|
+
VP8HFilter16 = HFilter16;
|
698
|
+
VP8VFilter8 = VFilter8;
|
699
|
+
VP8HFilter8 = HFilter8;
|
700
|
+
VP8VFilter16i = VFilter16i;
|
701
|
+
VP8HFilter16i = HFilter16i;
|
702
|
+
VP8VFilter8i = VFilter8i;
|
703
|
+
VP8HFilter8i = HFilter8i;
|
704
|
+
VP8SimpleVFilter16 = SimpleVFilter16;
|
705
|
+
VP8SimpleHFilter16 = SimpleHFilter16;
|
706
|
+
VP8SimpleVFilter16i = SimpleVFilter16i;
|
707
|
+
VP8SimpleHFilter16i = SimpleHFilter16i;
|
708
|
+
|
709
|
+
VP8PredLuma4[0] = DC4;
|
710
|
+
VP8PredLuma4[1] = TM4;
|
711
|
+
VP8PredLuma4[2] = VE4;
|
712
|
+
VP8PredLuma4[3] = HE4;
|
713
|
+
VP8PredLuma4[4] = RD4;
|
714
|
+
VP8PredLuma4[5] = VR4;
|
715
|
+
VP8PredLuma4[6] = LD4;
|
716
|
+
VP8PredLuma4[7] = VL4;
|
717
|
+
VP8PredLuma4[8] = HD4;
|
718
|
+
VP8PredLuma4[9] = HU4;
|
719
|
+
|
720
|
+
VP8PredLuma16[0] = DC16;
|
721
|
+
VP8PredLuma16[1] = TM16;
|
722
|
+
VP8PredLuma16[2] = VE16;
|
723
|
+
VP8PredLuma16[3] = HE16;
|
724
|
+
VP8PredLuma16[4] = DC16NoTop;
|
725
|
+
VP8PredLuma16[5] = DC16NoLeft;
|
726
|
+
VP8PredLuma16[6] = DC16NoTopLeft;
|
727
|
+
|
728
|
+
VP8PredChroma8[0] = DC8uv;
|
729
|
+
VP8PredChroma8[1] = TM8uv;
|
730
|
+
VP8PredChroma8[2] = VE8uv;
|
731
|
+
VP8PredChroma8[3] = HE8uv;
|
732
|
+
VP8PredChroma8[4] = DC8uvNoTop;
|
733
|
+
VP8PredChroma8[5] = DC8uvNoLeft;
|
734
|
+
VP8PredChroma8[6] = DC8uvNoTopLeft;
|
735
|
+
|
736
|
+
// If defined, use CPUInfo() to overwrite some pointers with faster versions.
|
737
|
+
if (VP8GetCPUInfo != NULL) {
|
738
|
+
#if defined(WEBP_USE_SSE2)
|
739
|
+
if (VP8GetCPUInfo(kSSE2)) {
|
740
|
+
VP8DspInitSSE2();
|
741
|
+
}
|
742
|
+
#endif
|
743
|
+
#if defined(WEBP_USE_NEON)
|
744
|
+
if (VP8GetCPUInfo(kNEON)) {
|
745
|
+
VP8DspInitNEON();
|
746
|
+
}
|
747
|
+
#endif
|
748
|
+
#if defined(WEBP_USE_MIPS32)
|
749
|
+
if (VP8GetCPUInfo(kMIPS32)) {
|
750
|
+
VP8DspInitMIPS32();
|
751
|
+
}
|
752
|
+
#endif
|
753
|
+
#if defined(WEBP_USE_MIPS_DSP_R2)
|
754
|
+
if (VP8GetCPUInfo(kMIPSdspR2)) {
|
755
|
+
VP8DspInitMIPSdspR2();
|
756
|
+
}
|
757
|
+
#endif
|
758
|
+
}
|
759
|
+
dec_last_cpuinfo_used = VP8GetCPUInfo;
|
760
|
+
}
|