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,1111 @@
|
|
1
|
+
//*@@@+++@@@@******************************************************************
|
2
|
+
//
|
3
|
+
// Copyright � Microsoft Corp.
|
4
|
+
// All rights reserved.
|
5
|
+
//
|
6
|
+
// Redistribution and use in source and binary forms, with or without
|
7
|
+
// modification, are permitted provided that the following conditions are met:
|
8
|
+
//
|
9
|
+
// � Redistributions of source code must retain the above copyright notice,
|
10
|
+
// this list of conditions and the following disclaimer.
|
11
|
+
// � Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
// this list of conditions and the following disclaimer in the documentation
|
13
|
+
// and/or other materials provided with the distribution.
|
14
|
+
//
|
15
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16
|
+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
+
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
19
|
+
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
20
|
+
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
21
|
+
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
22
|
+
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
23
|
+
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
24
|
+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
25
|
+
// POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
//
|
27
|
+
//*@@@---@@@@******************************************************************
|
28
|
+
|
29
|
+
#include "strTransform.h"
|
30
|
+
#include "encode.h"
|
31
|
+
|
32
|
+
/** rotation by pi/8 **/
|
33
|
+
#define ROTATE1(a, b) (b) -= (((a) + 1) >> 1), (a) += (((b) + 1) >> 1) // this works well too
|
34
|
+
#define ROTATE2(a, b) (b) -= (((a)*3 + 4) >> 3), (a) += (((b)*3 + 4) >> 3) // this works well too
|
35
|
+
|
36
|
+
/** local functions **/
|
37
|
+
static Void fwdOddOdd(PixelI *, PixelI *, PixelI *, PixelI *);
|
38
|
+
static Void fwdOddOddPre(PixelI *, PixelI *, PixelI *, PixelI *);
|
39
|
+
static Void fwdOdd(PixelI *, PixelI *, PixelI *, PixelI *);
|
40
|
+
static Void strDCT2x2alt(PixelI * a, PixelI * b, PixelI * c, PixelI * d);
|
41
|
+
static Void strHSTenc1(PixelI *, PixelI *);
|
42
|
+
static Void strHSTenc(PixelI *, PixelI *, PixelI *, PixelI *);
|
43
|
+
static Void strHSTenc1_edge (PixelI *pa, PixelI *pd);
|
44
|
+
|
45
|
+
//static Void scaleDownUp0(PixelI *, PixelI *);
|
46
|
+
//static Void scaleDownUp1(PixelI *, PixelI *);
|
47
|
+
//static Void scaleDownUp2(PixelI *, PixelI *);
|
48
|
+
//#define FOURBUTTERFLY_ENC_ALT(p, i00, i01, i02, i03, i10, i11, i12, i13, \
|
49
|
+
// i20, i21, i22, i23, i30, i31, i32, i33) \
|
50
|
+
// strHSTenc(&p[i00], &p[i01], &p[i02], &p[i03]); \
|
51
|
+
// strHSTenc(&p[i10], &p[i11], &p[i12], &p[i13]); \
|
52
|
+
// strHSTenc(&p[i20], &p[i21], &p[i22], &p[i23]); \
|
53
|
+
// strHSTenc(&p[i30], &p[i31], &p[i32], &p[i33]); \
|
54
|
+
// strHSTenc1(&p[i00], &p[i03]); \
|
55
|
+
// strHSTenc1(&p[i10], &p[i13]); \
|
56
|
+
// strHSTenc1(&p[i20], &p[i23]); \
|
57
|
+
// strHSTenc1(&p[i30], &p[i33])
|
58
|
+
|
59
|
+
/** DCT stuff **/
|
60
|
+
/** data order before DCT **/
|
61
|
+
/** 0 1 2 3 **/
|
62
|
+
/** 4 5 6 7 **/
|
63
|
+
/** 8 9 10 11 **/
|
64
|
+
/** 12 13 14 15 **/
|
65
|
+
/** data order after DCT **/
|
66
|
+
/** 0 8 4 6 **/
|
67
|
+
/** 2 10 14 12 **/
|
68
|
+
/** 1 11 15 13 **/
|
69
|
+
/** 9 3 7 5 **/
|
70
|
+
/** reordering should be combined with zigzag scan **/
|
71
|
+
|
72
|
+
Void strDCT4x4Stage1(PixelI * p)
|
73
|
+
{
|
74
|
+
/** butterfly **/
|
75
|
+
//FOURBUTTERFLY(p, 0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15);
|
76
|
+
FOURBUTTERFLY_HARDCODED1(p);
|
77
|
+
|
78
|
+
/** top left corner, butterfly => butterfly **/
|
79
|
+
strDCT2x2up(&p[0], &p[1], &p[2], &p[3]);
|
80
|
+
|
81
|
+
/** bottom right corner, pi/8 rotation => pi/8 rotation **/
|
82
|
+
fwdOddOdd(&p[15], &p[14], &p[13], &p[12]);
|
83
|
+
|
84
|
+
/** top right corner, butterfly => pi/8 rotation **/
|
85
|
+
fwdOdd(&p[5], &p[4], &p[7], &p[6]);
|
86
|
+
|
87
|
+
/** bottom left corner, pi/8 rotation => butterfly **/
|
88
|
+
fwdOdd(&p[10], &p[8], &p[11], &p[9]);
|
89
|
+
}
|
90
|
+
|
91
|
+
Void strDCT4x4SecondStage(PixelI * p)
|
92
|
+
{
|
93
|
+
/** butterfly **/
|
94
|
+
FOURBUTTERFLY(p, 0, 192, 48, 240, 64, 128, 112, 176,16, 208, 32, 224, 80, 144, 96, 160);
|
95
|
+
|
96
|
+
/** top left corner, butterfly => butterfly **/
|
97
|
+
strDCT2x2up(&p[0], &p[64], &p[16], &p[80]);
|
98
|
+
|
99
|
+
/** bottom right corner, pi/8 rotation => pi/8 rotation **/
|
100
|
+
fwdOddOdd(&p[160], &p[224], &p[176], &p[240]);
|
101
|
+
|
102
|
+
/** top right corner, butterfly => pi/8 rotation **/
|
103
|
+
fwdOdd(&p[128], &p[192], &p[144], &p[208]);
|
104
|
+
|
105
|
+
/** bottom left corner, pi/8 rotation => butterfly **/
|
106
|
+
fwdOdd(&p[32], &p[48], &p[96], &p[112]);
|
107
|
+
}
|
108
|
+
|
109
|
+
Void strNormalizeEnc(PixelI* p, Bool bChroma)
|
110
|
+
{
|
111
|
+
int i;
|
112
|
+
if (!bChroma) {
|
113
|
+
//for (i = 0; i < 256; i += 16) {
|
114
|
+
// p[i] = (p[i] + 1) >> 2;
|
115
|
+
//}
|
116
|
+
}
|
117
|
+
else {
|
118
|
+
for (i = 0; i < 256; i += 16) {
|
119
|
+
p[i] >>= 1;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
/** 2x2 DCT with pre-scaling - for use on encoder side **/
|
125
|
+
Void strDCT2x2dnEnc(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
126
|
+
{
|
127
|
+
PixelI a, b, c, d, C, t;
|
128
|
+
a = (*pa + 0) >> 1;
|
129
|
+
b = (*pb + 0) >> 1;
|
130
|
+
C = (*pc + 0) >> 1;
|
131
|
+
d = (*pd + 0) >> 1;
|
132
|
+
//PixelI t1, t2;
|
133
|
+
|
134
|
+
a += d;
|
135
|
+
b -= C;
|
136
|
+
t = ((a - b) >> 1);
|
137
|
+
c = t - d;
|
138
|
+
d = t - C;
|
139
|
+
a -= d;
|
140
|
+
b += c;
|
141
|
+
|
142
|
+
*pa = a;
|
143
|
+
*pb = b;
|
144
|
+
*pc = c;
|
145
|
+
*pd = d;
|
146
|
+
}
|
147
|
+
|
148
|
+
/** pre filter stuff **/
|
149
|
+
/** 2-point pre for boundaries **/
|
150
|
+
Void strPre2(PixelI * pa, PixelI * pb)
|
151
|
+
{
|
152
|
+
PixelI a, b;
|
153
|
+
a = *pa;
|
154
|
+
b = *pb;
|
155
|
+
|
156
|
+
/** rotate **/
|
157
|
+
b -= ((a + 2) >> 2);
|
158
|
+
a -= ((b + 1) >> 1);
|
159
|
+
|
160
|
+
a -= (b >> 5);
|
161
|
+
a -= (b >> 9);
|
162
|
+
a -= (b >> 13);
|
163
|
+
|
164
|
+
b -= ((a + 2) >> 2);
|
165
|
+
|
166
|
+
*pa = a;
|
167
|
+
*pb = b;
|
168
|
+
}
|
169
|
+
|
170
|
+
Void strPre2x2(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
171
|
+
{
|
172
|
+
PixelI a, b, c, d;
|
173
|
+
a = *pa;
|
174
|
+
b = *pb;
|
175
|
+
c = *pc;
|
176
|
+
d = *pd;
|
177
|
+
|
178
|
+
/** butterflies **/
|
179
|
+
a += d;
|
180
|
+
b += c;
|
181
|
+
d -= (a + 1) >> 1;
|
182
|
+
c -= (b + 1) >> 1;
|
183
|
+
|
184
|
+
/** rotate **/
|
185
|
+
b -= ((a + 2) >> 2);
|
186
|
+
a -= ((b + 1) >> 1);
|
187
|
+
a -= (b >> 5);
|
188
|
+
a -= (b >> 9);
|
189
|
+
a -= (b >> 13);
|
190
|
+
b -= ((a + 2) >> 2);
|
191
|
+
|
192
|
+
/** butterflies **/
|
193
|
+
d += (a + 1) >> 1;
|
194
|
+
c += (b + 1) >> 1;
|
195
|
+
a -= d;
|
196
|
+
b -= c;
|
197
|
+
|
198
|
+
*pa = a;
|
199
|
+
*pb = b;
|
200
|
+
*pc = c;
|
201
|
+
*pd = d;
|
202
|
+
}
|
203
|
+
|
204
|
+
/** 4-point pre for boundaries **/
|
205
|
+
Void strPre4(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
206
|
+
{
|
207
|
+
PixelI a, b, c, d;
|
208
|
+
a = *pa;
|
209
|
+
b = *pb;
|
210
|
+
c = *pc;
|
211
|
+
d = *pd;
|
212
|
+
|
213
|
+
a += d, b += c;
|
214
|
+
d -= ((a + 1) >> 1), c -= ((b + 1) >> 1);
|
215
|
+
|
216
|
+
ROTATE1(c, d);
|
217
|
+
|
218
|
+
strHSTenc1_edge(&a, &d); strHSTenc1_edge(&b, &c);
|
219
|
+
|
220
|
+
d += ((a + 1) >> 1), c += ((b + 1) >> 1);
|
221
|
+
a -= d, b -= c;
|
222
|
+
|
223
|
+
*pa = a;
|
224
|
+
*pb = b;
|
225
|
+
*pc = c;
|
226
|
+
*pd = d;
|
227
|
+
}
|
228
|
+
|
229
|
+
/*****************************************************************************************
|
230
|
+
Input data offsets:
|
231
|
+
(15)(14)|(10+64)(11+64) p0 (15)(14)|(74)(75)
|
232
|
+
(13)(12)|( 8+64)( 9+64) (13)(12)|(72)(73)
|
233
|
+
--------+-------------- --------+--------
|
234
|
+
( 5)( 4)|( 0+64) (1+64) p1 ( 5)( 4)|(64)(65)
|
235
|
+
( 7)( 6)|( 2+64) (3+64) ( 7)( 6)|(66)(67)
|
236
|
+
*****************************************************************************************/
|
237
|
+
Void strPre4x4Stage1Split(PixelI *p0, PixelI *p1, Int iOffset)
|
238
|
+
{
|
239
|
+
PixelI *p2 = p0 + 72 - iOffset;
|
240
|
+
PixelI *p3 = p1 + 64 - iOffset;
|
241
|
+
p0 += 12;
|
242
|
+
p1 += 4;
|
243
|
+
|
244
|
+
/** butterfly & scaling **/
|
245
|
+
strHSTenc(p0 + 0, p2 + 0, p1 + 0, p3 + 0);
|
246
|
+
strHSTenc(p0 + 1, p2 + 1, p1 + 1, p3 + 1);
|
247
|
+
strHSTenc(p0 + 2, p2 + 2, p1 + 2, p3 + 2);
|
248
|
+
strHSTenc(p0 + 3, p2 + 3, p1 + 3, p3 + 3);
|
249
|
+
strHSTenc1(p0 + 0, p3 + 0);
|
250
|
+
strHSTenc1(p0 + 1, p3 + 1);
|
251
|
+
strHSTenc1(p0 + 2, p3 + 2);
|
252
|
+
strHSTenc1(p0 + 3, p3 + 3);
|
253
|
+
|
254
|
+
/** anti diagonal corners: rotation by pi/8 **/
|
255
|
+
ROTATE1(p1[2], p1[3]);
|
256
|
+
ROTATE1(p1[0], p1[1]);
|
257
|
+
ROTATE1(p2[1], p2[3]);
|
258
|
+
ROTATE1(p2[0], p2[2]);
|
259
|
+
|
260
|
+
/** bottom right corner: pi/8 rotation => pi/8 rotation **/
|
261
|
+
fwdOddOddPre(p3 + 0, p3 + 1, p3 + 2, p3 + 3);
|
262
|
+
|
263
|
+
/** butterfly **/
|
264
|
+
strDCT2x2dn(p0 + 0, p2 + 0, p1 + 0, p3 + 0);
|
265
|
+
strDCT2x2dn(p0 + 1, p2 + 1, p1 + 1, p3 + 1);
|
266
|
+
strDCT2x2dn(p0 + 2, p2 + 2, p1 + 2, p3 + 2);
|
267
|
+
strDCT2x2dn(p0 + 3, p2 + 3, p1 + 3, p3 + 3);
|
268
|
+
}
|
269
|
+
|
270
|
+
Void strPre4x4Stage1(PixelI* p, Int iOffset)
|
271
|
+
{
|
272
|
+
strPre4x4Stage1Split(p, p + 16, iOffset);
|
273
|
+
}
|
274
|
+
|
275
|
+
/*****************************************************************************************
|
276
|
+
Input data offsets:
|
277
|
+
(15)(14)|(10+32)(11+32) p0 (15)(14)|(42)(43)
|
278
|
+
(13)(12)|( 8+32)( 9+32) (13)(12)|(40)(41)
|
279
|
+
--------+-------------- --------+--------
|
280
|
+
( 5)( 4)|( 0+32)( 1+32) p1 ( 5)( 4)|(32)(33)
|
281
|
+
( 7)( 6)|( 2+32)( 3+32) ( 7)( 6)|(34)(35)
|
282
|
+
*****************************************************************************************/
|
283
|
+
Void strPre4x4Stage2Split(PixelI* p0, PixelI* p1)
|
284
|
+
{
|
285
|
+
/** butterfly **/
|
286
|
+
strHSTenc(p0 - 96, p0 + 96, p1 - 112, p1 + 80);
|
287
|
+
strHSTenc(p0 - 32, p0 + 32, p1 - 48, p1 + 16);
|
288
|
+
strHSTenc(p0 - 80, p0 + 112, p1 - 128, p1 + 64);
|
289
|
+
strHSTenc(p0 - 16, p0 + 48, p1 - 64, p1 + 0);
|
290
|
+
strHSTenc1(p0 - 96, p1 + 80);
|
291
|
+
strHSTenc1(p0 - 32, p1 + 16);
|
292
|
+
strHSTenc1(p0 - 80, p1 + 64);
|
293
|
+
strHSTenc1(p0 - 16, p1 + 0);
|
294
|
+
|
295
|
+
/** anti diagonal corners: rotation **/
|
296
|
+
ROTATE1(p1[-48], p1[-112]);
|
297
|
+
ROTATE1(p1[-64], p1[-128]);
|
298
|
+
ROTATE1(p0[112], p0[ 96]);
|
299
|
+
ROTATE1(p0[ 48], p0[ 32]);
|
300
|
+
|
301
|
+
/** bottom right corner: pi/8 rotation => pi/8 rotation **/
|
302
|
+
fwdOddOddPre(p1 + 0, p1 + 64, p1 + 16, p1 + 80);
|
303
|
+
|
304
|
+
/** butterfly **/
|
305
|
+
strDCT2x2dn(p0 - 96, p1 - 112, p0 + 96, p1 + 80);
|
306
|
+
strDCT2x2dn(p0 - 32, p1 - 48, p0 + 32, p1 + 16);
|
307
|
+
strDCT2x2dn(p0 - 80, p1 - 128, p0 + 112, p1 + 64);
|
308
|
+
strDCT2x2dn(p0 - 16, p1 - 64, p0 + 48, p1 + 0);
|
309
|
+
}
|
310
|
+
|
311
|
+
|
312
|
+
/**
|
313
|
+
Hadamard+Scale transform
|
314
|
+
for some strange reason, breaking up the function into two blocks, strHSTenc1 and strHSTenc
|
315
|
+
seems to work faster
|
316
|
+
**/
|
317
|
+
static Void strHSTenc(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
318
|
+
{
|
319
|
+
/** different realization : does rescaling as well! **/
|
320
|
+
PixelI a, b, c, d;
|
321
|
+
a = *pa;
|
322
|
+
b = *pb;
|
323
|
+
d = *pc;
|
324
|
+
c = *pd;
|
325
|
+
|
326
|
+
a += c;
|
327
|
+
b -= d;
|
328
|
+
c = ((a - b) >> 1) - c;
|
329
|
+
d += (b >> 1);
|
330
|
+
b += c;
|
331
|
+
|
332
|
+
a -= (d * 3 + 4) >> 3;
|
333
|
+
|
334
|
+
*pa = a;
|
335
|
+
*pb = b;
|
336
|
+
*pc = c;
|
337
|
+
*pd = d;
|
338
|
+
}
|
339
|
+
|
340
|
+
static Void strHSTenc1(PixelI *pa, PixelI *pd)
|
341
|
+
{
|
342
|
+
/** different realization : does rescaling as well! **/
|
343
|
+
PixelI a, d;
|
344
|
+
a = *pa;
|
345
|
+
d = *pd;
|
346
|
+
|
347
|
+
d -= (a >> 7);
|
348
|
+
d += (a >> 10);
|
349
|
+
|
350
|
+
//a -= (d * 3 + 4) >> 3;
|
351
|
+
d -= (a * 3 + 0) >> 4;
|
352
|
+
a -= (d * 3 + 0) >> 3;
|
353
|
+
d = (a >> 1) - d;
|
354
|
+
a -= d;
|
355
|
+
|
356
|
+
*pa = a;
|
357
|
+
*pd = d;
|
358
|
+
}
|
359
|
+
|
360
|
+
static Void strHSTenc1_edge (PixelI *pa, PixelI *pd)
|
361
|
+
{
|
362
|
+
/** different realizion as compared to scaling operator for 2D case **/
|
363
|
+
PixelI a, d;
|
364
|
+
a = *pa;
|
365
|
+
d = -(*pd); // Negative sign needed here for 1D scaling case to ensure correct scaling.
|
366
|
+
|
367
|
+
a -= d;
|
368
|
+
d += (a >> 1);
|
369
|
+
a -= (d * 3 + 4) >> 3;
|
370
|
+
// End new operations
|
371
|
+
|
372
|
+
//Scaling modification of adding 7/1024 in two steps (without multiplication by 7).
|
373
|
+
d -= (a >> 7);
|
374
|
+
d += (a >> 10);
|
375
|
+
|
376
|
+
d -= (a * 3 + 0) >> 4;
|
377
|
+
a -= (d * 3 + 0) >> 3;
|
378
|
+
d = (a >> 1) - d;
|
379
|
+
a -= d;
|
380
|
+
|
381
|
+
*pa = a;
|
382
|
+
*pd = d;
|
383
|
+
}
|
384
|
+
|
385
|
+
/** Kron(Rotate(pi/8), Rotate(pi/8)) **/\
|
386
|
+
static Void fwdOddOdd(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
387
|
+
{
|
388
|
+
PixelI a, b, c, d, t1, t2;
|
389
|
+
|
390
|
+
a = *pa;
|
391
|
+
b = -*pb;
|
392
|
+
c = -*pc;
|
393
|
+
d = *pd;
|
394
|
+
|
395
|
+
/** butterflies **/
|
396
|
+
d += a;
|
397
|
+
c -= b;
|
398
|
+
a -= (t1 = d >> 1);
|
399
|
+
b += (t2 = c >> 1);
|
400
|
+
|
401
|
+
/** rotate pi/4 **/
|
402
|
+
a += (b * 3 + 4) >> 3;
|
403
|
+
b -= (a * 3 + 3) >> 2;
|
404
|
+
a += (b * 3 + 3) >> 3;
|
405
|
+
|
406
|
+
/** butterflies **/
|
407
|
+
b -= t2;
|
408
|
+
a += t1;
|
409
|
+
c += b;
|
410
|
+
d -= a;
|
411
|
+
|
412
|
+
*pa = a;
|
413
|
+
*pb = b;
|
414
|
+
*pc = c;
|
415
|
+
*pd = d;
|
416
|
+
}
|
417
|
+
/** Kron(Rotate(pi/8), Rotate(pi/8)) **/
|
418
|
+
static Void fwdOddOddPre(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
419
|
+
{
|
420
|
+
PixelI a, b, c, d, t1, t2;
|
421
|
+
a = *pa;
|
422
|
+
b = *pb;
|
423
|
+
c = *pc;
|
424
|
+
d = *pd;
|
425
|
+
|
426
|
+
/** butterflies **/
|
427
|
+
d += a;
|
428
|
+
c -= b;
|
429
|
+
a -= (t1 = d >> 1);
|
430
|
+
b += (t2 = c >> 1);
|
431
|
+
|
432
|
+
/** rotate pi/4 **/
|
433
|
+
a += (b * 3 + 4) >> 3;
|
434
|
+
b -= (a * 3 + 2) >> 2;
|
435
|
+
a += (b * 3 + 6) >> 3;
|
436
|
+
|
437
|
+
/** butterflies **/
|
438
|
+
b -= t2;
|
439
|
+
a += t1;
|
440
|
+
c += b;
|
441
|
+
d -= a;
|
442
|
+
|
443
|
+
*pa = a;
|
444
|
+
*pb = b;
|
445
|
+
*pc = c;
|
446
|
+
*pd = d;
|
447
|
+
}
|
448
|
+
|
449
|
+
/** Kron(Rotate(pi/8), [1 1; 1 -1]/sqrt(2)) **/
|
450
|
+
/** [a b c d] => [D C A B] **/
|
451
|
+
Void fwdOdd(PixelI *pa, PixelI *pb, PixelI *pc, PixelI *pd)
|
452
|
+
{
|
453
|
+
PixelI a, b, c, d;
|
454
|
+
a = *pa;
|
455
|
+
b = *pb;
|
456
|
+
c = *pc;
|
457
|
+
d = *pd;
|
458
|
+
|
459
|
+
/** butterflies **/
|
460
|
+
b -= c;
|
461
|
+
a += d;
|
462
|
+
c += (b + 1) >> 1;
|
463
|
+
d = ((a + 1) >> 1) - d;
|
464
|
+
|
465
|
+
/** rotate pi/8 **/
|
466
|
+
ROTATE2(a, b);
|
467
|
+
ROTATE2(c, d);
|
468
|
+
|
469
|
+
/** butterflies **/
|
470
|
+
d += (b) >> 1;
|
471
|
+
c -= (a + 1) >> 1;
|
472
|
+
b -= d;
|
473
|
+
a += c;
|
474
|
+
|
475
|
+
*pa = a;
|
476
|
+
*pb = b;
|
477
|
+
*pc = c;
|
478
|
+
*pd = d;
|
479
|
+
}
|
480
|
+
|
481
|
+
/*************************************************************************
|
482
|
+
Top-level function to tranform possible part of a macroblock
|
483
|
+
*************************************************************************/
|
484
|
+
Void transformMacroblock(CWMImageStrCodec * pSC)
|
485
|
+
{
|
486
|
+
OVERLAP olOverlap = pSC->WMISCP.olOverlap;
|
487
|
+
COLORFORMAT cfColorFormat = pSC->m_param.cfColorFormat;
|
488
|
+
Bool left = (pSC->cColumn == 0), right = (pSC->cColumn == pSC->cmbWidth);
|
489
|
+
Bool top = (pSC->cRow == 0), bottom = (pSC->cRow == pSC->cmbHeight);
|
490
|
+
Bool leftORright = (left || right), topORbottom = (top || bottom);
|
491
|
+
Bool topORleft = (left || top);// rightORbottom = (right || bottom);
|
492
|
+
Bool leftAdjacentColumn = (pSC->cColumn == 1), rightAdjacentColumn = (pSC->cColumn == pSC->cmbWidth - 1);
|
493
|
+
// Bool topAdjacentRow = (pSC->cRow == 1), bottomAdjacentRow = (pSC->cRow == pSC->cmbHeight - 1);
|
494
|
+
PixelI * p = NULL;// * pt = NULL;
|
495
|
+
Int i, j;
|
496
|
+
Int iNumChromaFullPlanes = (Int)((YUV_420 == cfColorFormat || YUV_422 == cfColorFormat) ?
|
497
|
+
1 : pSC->m_param.cNumChannels);
|
498
|
+
|
499
|
+
#define mbX pSC->mbX
|
500
|
+
#define mbY pSC->mbY
|
501
|
+
#define tileX pSC->tileX
|
502
|
+
#define tileY pSC->tileY
|
503
|
+
#define bVertTileBoundary pSC->bVertTileBoundary
|
504
|
+
#define bHoriTileBoundary pSC->bHoriTileBoundary
|
505
|
+
#define bOneMBLeftVertTB pSC->bOneMBLeftVertTB
|
506
|
+
#define bOneMBRightVertTB pSC->bOneMBRightVertTB
|
507
|
+
#define iPredBefore pSC->iPredBefore
|
508
|
+
#define iPredAfter pSC->iPredAfter
|
509
|
+
|
510
|
+
if (pSC->WMISCP.bUseHardTileBoundaries) {
|
511
|
+
//Add tile location information
|
512
|
+
if (pSC->cColumn == 0) {
|
513
|
+
bVertTileBoundary = FALSE;
|
514
|
+
tileY = 0;
|
515
|
+
}
|
516
|
+
bOneMBLeftVertTB = bOneMBRightVertTB = FALSE;
|
517
|
+
if(tileY > 0 && tileY <= pSC->WMISCP.cNumOfSliceMinus1H && (pSC->cColumn - 1) == pSC->WMISCP.uiTileY[tileY])
|
518
|
+
bOneMBRightVertTB = TRUE;
|
519
|
+
if(tileY < pSC->WMISCP.cNumOfSliceMinus1H && pSC->cColumn == pSC->WMISCP.uiTileY[tileY + 1]) {
|
520
|
+
bVertTileBoundary = TRUE;
|
521
|
+
tileY++;
|
522
|
+
}
|
523
|
+
else
|
524
|
+
bVertTileBoundary = FALSE;
|
525
|
+
if(tileY < pSC->WMISCP.cNumOfSliceMinus1H && (pSC->cColumn + 1) == pSC->WMISCP.uiTileY[tileY + 1])
|
526
|
+
bOneMBLeftVertTB = TRUE;
|
527
|
+
|
528
|
+
if (pSC->cRow == 0) {
|
529
|
+
bHoriTileBoundary = FALSE;
|
530
|
+
tileX = 0;
|
531
|
+
}
|
532
|
+
else if(mbY != pSC->cRow && tileX < pSC->WMISCP.cNumOfSliceMinus1V && pSC->cRow == pSC->WMISCP.uiTileX[tileX + 1]) {
|
533
|
+
bHoriTileBoundary = TRUE;
|
534
|
+
tileX++;
|
535
|
+
}
|
536
|
+
else if(mbY != pSC->cRow)
|
537
|
+
bHoriTileBoundary = FALSE;
|
538
|
+
}
|
539
|
+
else {
|
540
|
+
bVertTileBoundary = FALSE;
|
541
|
+
bHoriTileBoundary = FALSE;
|
542
|
+
bOneMBLeftVertTB = FALSE;
|
543
|
+
bOneMBRightVertTB = FALSE;
|
544
|
+
}
|
545
|
+
mbX = pSC->cColumn, mbY = pSC->cRow;
|
546
|
+
|
547
|
+
//================================================================
|
548
|
+
// 400_Y, 444_YUV
|
549
|
+
for(i = 0; i < iNumChromaFullPlanes; ++i)
|
550
|
+
{
|
551
|
+
PixelI* const p0 = pSC->p0MBbuffer[i];//(0 == i ? pSC->pY0 : (1 == i ? pSC->pU0 : pSC->pV0));
|
552
|
+
PixelI* const p1 = pSC->p1MBbuffer[i];//(0 == i ? pSC->pY1 : (1 == i ? pSC->pU1 : pSC->pV1));
|
553
|
+
|
554
|
+
//================================
|
555
|
+
// first level overlap
|
556
|
+
if(OL_NONE != olOverlap)
|
557
|
+
{
|
558
|
+
/* Corner operations */
|
559
|
+
if ((top || bHoriTileBoundary) && (left || bVertTileBoundary))
|
560
|
+
strPre4(p1 + 0, p1 + 1, p1 + 2, p1 + 3);
|
561
|
+
if ((top || bHoriTileBoundary) && (right || bVertTileBoundary))
|
562
|
+
strPre4(p1 - 59, p1 - 60, p1 - 57, p1 - 58);
|
563
|
+
if ((bottom || bHoriTileBoundary) && (left || bVertTileBoundary))
|
564
|
+
strPre4(p0 + 48 + 10, p0 + 48 + 11, p0 + 48 + 8, p0 + 48 + 9);
|
565
|
+
if ((bottom || bHoriTileBoundary) && (right || bVertTileBoundary))
|
566
|
+
strPre4(p0 - 1, p0 - 2, p0 - 3, p0 - 4);
|
567
|
+
if(!right && !bottom)
|
568
|
+
{
|
569
|
+
if (top || bHoriTileBoundary)
|
570
|
+
{
|
571
|
+
|
572
|
+
for (j = ((left || bVertTileBoundary) ? 0 : -64); j < 192; j += 64)
|
573
|
+
{
|
574
|
+
p = p1 + j;
|
575
|
+
strPre4(p + 5, p + 4, p + 64, p + 65);
|
576
|
+
strPre4(p + 7, p + 6, p + 66, p + 67);
|
577
|
+
p = NULL;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
else
|
581
|
+
{
|
582
|
+
for (j = ((left || bVertTileBoundary) ? 0 : -64); j < 192; j += 64)
|
583
|
+
{
|
584
|
+
strPre4x4Stage1Split(p0 + 48 + j, p1 + j, 0);
|
585
|
+
}
|
586
|
+
}
|
587
|
+
|
588
|
+
if (left || bVertTileBoundary)
|
589
|
+
{
|
590
|
+
if (!top && !bHoriTileBoundary)
|
591
|
+
{
|
592
|
+
strPre4(p0 + 58, p0 + 56, p1 + 0, p1 + 2);
|
593
|
+
strPre4(p0 + 59, p0 + 57, p1 + 1, p1 + 3);
|
594
|
+
}
|
595
|
+
|
596
|
+
for (j = -64; j < -16; j += 16)
|
597
|
+
{
|
598
|
+
p = p1 + j;
|
599
|
+
strPre4(p + 74, p + 72, p + 80, p + 82);
|
600
|
+
strPre4(p + 75, p + 73, p + 81, p + 83);
|
601
|
+
p = NULL;
|
602
|
+
}
|
603
|
+
}
|
604
|
+
else
|
605
|
+
{
|
606
|
+
for (j = -64; j < -16; j += 16)
|
607
|
+
{
|
608
|
+
strPre4x4Stage1(p1 + j, 0);
|
609
|
+
}
|
610
|
+
}
|
611
|
+
|
612
|
+
strPre4x4Stage1(p1 + 0, 0);
|
613
|
+
strPre4x4Stage1(p1 + 16, 0);
|
614
|
+
strPre4x4Stage1(p1 + 32, 0);
|
615
|
+
strPre4x4Stage1(p1 + 64, 0);
|
616
|
+
strPre4x4Stage1(p1 + 80, 0);
|
617
|
+
strPre4x4Stage1(p1 + 96, 0);
|
618
|
+
strPre4x4Stage1(p1 + 128, 0);
|
619
|
+
strPre4x4Stage1(p1 + 144, 0);
|
620
|
+
strPre4x4Stage1(p1 + 160, 0);
|
621
|
+
}
|
622
|
+
|
623
|
+
if (bottom || bHoriTileBoundary)
|
624
|
+
{
|
625
|
+
for (j = ((left || bVertTileBoundary) ? 48 : -16); j < (right ? -16 : 240); j += 64)
|
626
|
+
{
|
627
|
+
p = p0 + j;
|
628
|
+
strPre4(p + 15, p + 14, p + 74, p + 75);
|
629
|
+
strPre4(p + 13, p + 12, p + 72, p + 73);
|
630
|
+
p = NULL;
|
631
|
+
}
|
632
|
+
}
|
633
|
+
|
634
|
+
if ((right || bVertTileBoundary) && !bottom)
|
635
|
+
{
|
636
|
+
if (!top && !bHoriTileBoundary)
|
637
|
+
{
|
638
|
+
strPre4(p0 - 1, p0 - 3, p1 - 59, p1 - 57);
|
639
|
+
strPre4(p0 - 2, p0 - 4, p1 - 60, p1 - 58);
|
640
|
+
}
|
641
|
+
for (j = -64; j < -16; j += 16)
|
642
|
+
{
|
643
|
+
p = p1 + j;
|
644
|
+
strPre4(p + 15, p + 13, p + 21, p + 23);
|
645
|
+
strPre4(p + 14, p + 12, p + 20, p + 22);
|
646
|
+
p = NULL;
|
647
|
+
}
|
648
|
+
}
|
649
|
+
}
|
650
|
+
|
651
|
+
//================================
|
652
|
+
// first level transform
|
653
|
+
if (!top)
|
654
|
+
{
|
655
|
+
for (j = (left ? 48 : -16); j < (right ? 48 : 240); j += 64)
|
656
|
+
{
|
657
|
+
strDCT4x4Stage1(p0 + j);
|
658
|
+
}
|
659
|
+
}
|
660
|
+
|
661
|
+
if (!bottom)
|
662
|
+
{
|
663
|
+
for (j = (left ? 0 : -64); j < (right ? 0 : 192); j += 64)
|
664
|
+
{
|
665
|
+
strDCT4x4Stage1(p1 + j + 0);
|
666
|
+
strDCT4x4Stage1(p1 + j + 16);
|
667
|
+
strDCT4x4Stage1(p1 + j + 32);
|
668
|
+
}
|
669
|
+
}
|
670
|
+
|
671
|
+
//================================
|
672
|
+
// second level overlap
|
673
|
+
if (OL_TWO == olOverlap)
|
674
|
+
{
|
675
|
+
/* Corner operations */
|
676
|
+
if ((top || bHoriTileBoundary) && (left || bVertTileBoundary))
|
677
|
+
strPre4(p1 + 0, p1 + 64, p1 + 0 + 16, p1 + 64 + 16);
|
678
|
+
if ((top || bHoriTileBoundary) && (right || bVertTileBoundary))
|
679
|
+
strPre4(p1 - 128, p1 - 64, p1 - 128 + 16, p1 - 64 + 16);
|
680
|
+
if ((bottom || bHoriTileBoundary) && (left || bVertTileBoundary))
|
681
|
+
strPre4(p0 + 32, p0 + 96, p0 + 32 + 16, p0 + 96 + 16);
|
682
|
+
if ((bottom || bHoriTileBoundary) && (right || bVertTileBoundary))
|
683
|
+
strPre4(p0 - 96, p0 - 32, p0 - 96 + 16, p0 - 32 + 16);
|
684
|
+
if ((leftORright || bVertTileBoundary) && (!topORbottom && !bHoriTileBoundary))
|
685
|
+
{
|
686
|
+
if (left || bVertTileBoundary) {
|
687
|
+
j = 0;
|
688
|
+
strPre4(p0 + j + 32, p0 + j + 48, p1 + j + 0, p1 + j + 16);
|
689
|
+
strPre4(p0 + j + 96, p0 + j + 112, p1 + j + 64, p1 + j + 80);
|
690
|
+
}
|
691
|
+
if (right || bVertTileBoundary) {
|
692
|
+
j = -128;
|
693
|
+
strPre4(p0 + j + 32, p0 + j + 48, p1 + j + 0, p1 + j + 16);
|
694
|
+
strPre4(p0 + j + 96, p0 + j + 112, p1 + j + 64, p1 + j + 80);
|
695
|
+
}
|
696
|
+
}
|
697
|
+
|
698
|
+
if (!leftORright && !bVertTileBoundary)
|
699
|
+
{
|
700
|
+
if (topORbottom || bHoriTileBoundary)
|
701
|
+
{
|
702
|
+
if (top || bHoriTileBoundary) {
|
703
|
+
p = p1;
|
704
|
+
strPre4(p - 128, p - 64, p + 0, p + 64);
|
705
|
+
strPre4(p - 112, p - 48, p + 16, p + 80);
|
706
|
+
p = NULL;
|
707
|
+
}
|
708
|
+
if (bottom || bHoriTileBoundary) {
|
709
|
+
p = p0 + 32;
|
710
|
+
strPre4(p - 128, p - 64, p + 0, p + 64);
|
711
|
+
strPre4(p - 112, p - 48, p + 16, p + 80);
|
712
|
+
p = NULL;
|
713
|
+
}
|
714
|
+
}
|
715
|
+
else
|
716
|
+
{
|
717
|
+
strPre4x4Stage2Split(p0, p1);
|
718
|
+
}
|
719
|
+
}
|
720
|
+
}
|
721
|
+
|
722
|
+
//================================
|
723
|
+
// second level transform
|
724
|
+
if (!topORleft){
|
725
|
+
if (pSC->m_param.bScaledArith) {
|
726
|
+
strNormalizeEnc(p0 - 256, (i != 0));
|
727
|
+
}
|
728
|
+
strDCT4x4SecondStage(p0 - 256);
|
729
|
+
}
|
730
|
+
}
|
731
|
+
|
732
|
+
//================================================================
|
733
|
+
// 420_UV
|
734
|
+
for(i = 0; i < (YUV_420 == cfColorFormat? 2 : 0); ++i)
|
735
|
+
{
|
736
|
+
PixelI* const p0 = pSC->p0MBbuffer[1 + i];//(0 == i ? pSC->pU0 : pSC->pV0);
|
737
|
+
PixelI* const p1 = pSC->p1MBbuffer[1 + i];//(0 == i ? pSC->pU1 : pSC->pV1);
|
738
|
+
|
739
|
+
//================================
|
740
|
+
// first level overlap (420_UV)
|
741
|
+
if (OL_NONE != olOverlap)
|
742
|
+
{
|
743
|
+
/* Corner operations */
|
744
|
+
if ((top || bHoriTileBoundary) && (left || bVertTileBoundary))
|
745
|
+
strPre4(p1 + 0, p1 + 1, p1 + 2, p1 + 3);
|
746
|
+
if ((top || bHoriTileBoundary) && (right || bVertTileBoundary))
|
747
|
+
strPre4(p1 - 27, p1 - 28, p1 - 25, p1 - 26);
|
748
|
+
if ((bottom || bHoriTileBoundary) && (left || bVertTileBoundary))
|
749
|
+
strPre4(p0 + 16 + 10, p0 + 16 + 11, p0 + 16 + 8, p0 + 16 + 9);
|
750
|
+
if ((bottom || bHoriTileBoundary) && (right || bVertTileBoundary))
|
751
|
+
strPre4(p0 - 1, p0 - 2, p0 - 3, p0 - 4);
|
752
|
+
if(!right && !bottom)
|
753
|
+
{
|
754
|
+
if (top || bHoriTileBoundary)
|
755
|
+
{
|
756
|
+
|
757
|
+
for (j = ((left || bVertTileBoundary) ? 0 : -32); j < 32; j += 32)
|
758
|
+
{
|
759
|
+
p = p1 + j;
|
760
|
+
strPre4(p + 5, p + 4, p + 32, p + 33);
|
761
|
+
strPre4(p + 7, p + 6, p + 34, p + 35);
|
762
|
+
p = NULL;
|
763
|
+
}
|
764
|
+
}
|
765
|
+
else
|
766
|
+
{
|
767
|
+
for (j = ((left || bVertTileBoundary) ? 0: -32); j < 32; j += 32)
|
768
|
+
{
|
769
|
+
strPre4x4Stage1Split(p0 + 16 + j, p1 + j, 32);
|
770
|
+
}
|
771
|
+
}
|
772
|
+
|
773
|
+
if (left || bVertTileBoundary)
|
774
|
+
{
|
775
|
+
if (!top && !bHoriTileBoundary)
|
776
|
+
{
|
777
|
+
strPre4(p0 + 26, p0 + 24, p1 + 0, p1 + 2);
|
778
|
+
strPre4(p0 + 27, p0 + 25, p1 + 1, p1 + 3);
|
779
|
+
}
|
780
|
+
|
781
|
+
strPre4(p1 + 10, p1 + 8, p1 + 16, p1 + 18);
|
782
|
+
strPre4(p1 + 11, p1 + 9, p1 + 17, p1 + 19);
|
783
|
+
}
|
784
|
+
else if (!bVertTileBoundary)
|
785
|
+
{
|
786
|
+
strPre4x4Stage1(p1 - 32, 32);
|
787
|
+
}
|
788
|
+
|
789
|
+
strPre4x4Stage1(p1, 32);
|
790
|
+
}
|
791
|
+
|
792
|
+
if (bottom || bHoriTileBoundary)
|
793
|
+
{
|
794
|
+
for (j = ((left || bVertTileBoundary) ? 16: -16); j < (right ? -16: 32); j += 32)
|
795
|
+
{
|
796
|
+
p = p0 + j;
|
797
|
+
strPre4(p + 15, p + 14, p + 42, p + 43);
|
798
|
+
strPre4(p + 13, p + 12, p + 40, p + 41);
|
799
|
+
p = NULL;
|
800
|
+
}
|
801
|
+
}
|
802
|
+
|
803
|
+
if ((right || bVertTileBoundary) && !bottom)
|
804
|
+
{
|
805
|
+
if (!top && !bHoriTileBoundary)
|
806
|
+
{
|
807
|
+
strPre4(p0 - 1, p0 - 3, p1 - 27, p1 - 25);
|
808
|
+
strPre4(p0 - 2, p0 - 4, p1 - 28, p1 - 26);
|
809
|
+
}
|
810
|
+
|
811
|
+
strPre4(p1 - 17, p1 - 19, p1 - 11, p1 - 9);
|
812
|
+
strPre4(p1 - 18, p1 - 20, p1 - 12, p1 - 10);
|
813
|
+
}
|
814
|
+
}
|
815
|
+
|
816
|
+
//================================
|
817
|
+
// first level transform (420_UV)
|
818
|
+
if (!top)
|
819
|
+
{
|
820
|
+
for (j = (left ? 16 : -16); j < (right ? 16 : 48); j += 32)
|
821
|
+
{
|
822
|
+
strDCT4x4Stage1(p0 + j);
|
823
|
+
}
|
824
|
+
}
|
825
|
+
|
826
|
+
if (!bottom)
|
827
|
+
{
|
828
|
+
for (j = (left ? 0 : -32); j < (right ? 0 : 32); j += 32)
|
829
|
+
{
|
830
|
+
strDCT4x4Stage1(p1 + j);
|
831
|
+
}
|
832
|
+
}
|
833
|
+
|
834
|
+
//================================
|
835
|
+
// second level overlap (420_UV)
|
836
|
+
if (OL_TWO == olOverlap)
|
837
|
+
{
|
838
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (top || bHoriTileBoundary))
|
839
|
+
COMPUTE_CORNER_PRED_DIFF(p1 - 64 + 0, *(p1 - 64 + 32));
|
840
|
+
|
841
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (top || bHoriTileBoundary))
|
842
|
+
iPredBefore[i][0] = *(p1 + 0);
|
843
|
+
if ((right || bVertTileBoundary) && (top || bHoriTileBoundary))
|
844
|
+
COMPUTE_CORNER_PRED_DIFF(p1 - 64 + 32, iPredBefore[i][0]);
|
845
|
+
|
846
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (bottom || bHoriTileBoundary))
|
847
|
+
COMPUTE_CORNER_PRED_DIFF(p0 - 64 + 16, *(p0 - 64 + 48));
|
848
|
+
|
849
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (bottom || bHoriTileBoundary))
|
850
|
+
iPredBefore[i][1] = *(p0 + 16);
|
851
|
+
if ((right || bVertTileBoundary) && (bottom || bHoriTileBoundary))
|
852
|
+
COMPUTE_CORNER_PRED_DIFF(p0 - 64 + 48, iPredBefore[i][1]);
|
853
|
+
|
854
|
+
if ((leftORright || bVertTileBoundary) && !topORbottom && !bHoriTileBoundary)
|
855
|
+
{
|
856
|
+
if (left || bVertTileBoundary)
|
857
|
+
strPre2(p0 + 0 + 16, p1 + 0);
|
858
|
+
if (right || bVertTileBoundary)
|
859
|
+
strPre2(p0 + -32 + 16, p1 + -32);
|
860
|
+
}
|
861
|
+
|
862
|
+
if (!leftORright)
|
863
|
+
{
|
864
|
+
if ((topORbottom || bHoriTileBoundary) && !bVertTileBoundary)
|
865
|
+
{
|
866
|
+
if (top || bHoriTileBoundary)
|
867
|
+
strPre2(p1 - 32, p1);
|
868
|
+
if (bottom || bHoriTileBoundary)
|
869
|
+
strPre2(p0 + 16 - 32, p0 + 16);
|
870
|
+
}
|
871
|
+
else if (!topORbottom && !bHoriTileBoundary && !bVertTileBoundary)
|
872
|
+
strPre2x2(p0 - 16, p0 + 16, p1 - 32, p1);
|
873
|
+
}
|
874
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (top || bHoriTileBoundary))
|
875
|
+
COMPUTE_CORNER_PRED_ADD(p1 - 64 + 0, *(p1 - 64 + 32));
|
876
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (top || bHoriTileBoundary))
|
877
|
+
iPredAfter[i][0] = *(p1 + 0);
|
878
|
+
if ((right || bVertTileBoundary) && (top || bHoriTileBoundary))
|
879
|
+
COMPUTE_CORNER_PRED_ADD(p1 - 64 + 32, iPredAfter[i][0]);
|
880
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (bottom || bHoriTileBoundary))
|
881
|
+
COMPUTE_CORNER_PRED_ADD(p0 - 64 + 16, *(p0 - 64 + 48));
|
882
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (bottom || bHoriTileBoundary))
|
883
|
+
iPredAfter[i][1] = *(p0 + 16);
|
884
|
+
if ((right || bVertTileBoundary) && (bottom || bHoriTileBoundary))
|
885
|
+
COMPUTE_CORNER_PRED_ADD(p0 - 64 + 48, iPredAfter[i][1]);
|
886
|
+
}
|
887
|
+
|
888
|
+
//================================
|
889
|
+
// second level transform (420_UV)
|
890
|
+
if (!topORleft)
|
891
|
+
{
|
892
|
+
if (!pSC->m_param.bScaledArith) {
|
893
|
+
strDCT2x2dn(p0 - 64, p0 - 32, p0 - 48, p0 - 16);
|
894
|
+
}
|
895
|
+
else {
|
896
|
+
strDCT2x2dnEnc(p0 - 64, p0 - 32, p0 - 48, p0 - 16);
|
897
|
+
}
|
898
|
+
}
|
899
|
+
}
|
900
|
+
|
901
|
+
//================================================================
|
902
|
+
// 422_UV
|
903
|
+
for(i = 0; i < (YUV_422 == cfColorFormat? 2 : 0); ++i)
|
904
|
+
{
|
905
|
+
PixelI* const p0 = pSC->p0MBbuffer[1 + i];//(0 == i ? pSC->pU0 : pSC->pV0);
|
906
|
+
PixelI* const p1 = pSC->p1MBbuffer[1 + i];//(0 == i ? pSC->pU1 : pSC->pV1);
|
907
|
+
|
908
|
+
//================================
|
909
|
+
// first level overlap (422_UV)
|
910
|
+
if (OL_NONE != olOverlap)
|
911
|
+
{
|
912
|
+
/* Corner operations */
|
913
|
+
if ((top || bHoriTileBoundary) && (left || bVertTileBoundary))
|
914
|
+
strPre4(p1 + 0, p1 + 1, p1 + 2, p1 + 3);
|
915
|
+
if ((top || bHoriTileBoundary) && (right || bVertTileBoundary))
|
916
|
+
strPre4(p1 - 59, p1 - 60, p1 - 57, p1 - 58);
|
917
|
+
if ((bottom || bHoriTileBoundary) && (left || bVertTileBoundary))
|
918
|
+
strPre4(p0 + 48 + 10, p0 + 48 + 11, p0 + 48 + 8, p0 + 48 + 9);
|
919
|
+
if ((bottom || bHoriTileBoundary) && (right || bVertTileBoundary))
|
920
|
+
strPre4(p0 - 1, p0 - 2, p0 - 3, p0 - 4);
|
921
|
+
if(!right && !bottom)
|
922
|
+
{
|
923
|
+
if (top || bHoriTileBoundary)
|
924
|
+
{
|
925
|
+
|
926
|
+
for (j = ((left || bVertTileBoundary) ? 0 : -64); j < 64; j += 64)
|
927
|
+
{
|
928
|
+
p = p1 + j;
|
929
|
+
strPre4(p + 5, p + 4, p + 64, p + 65);
|
930
|
+
strPre4(p + 7, p + 6, p + 66, p + 67);
|
931
|
+
p = NULL;
|
932
|
+
}
|
933
|
+
}
|
934
|
+
else
|
935
|
+
{
|
936
|
+
for (j = ((left || bVertTileBoundary) ? 0: -64); j < 64; j += 64)
|
937
|
+
{
|
938
|
+
strPre4x4Stage1Split(p0 + 48 + j, p1 + j, 0);
|
939
|
+
}
|
940
|
+
}
|
941
|
+
|
942
|
+
if (left || bVertTileBoundary)
|
943
|
+
{
|
944
|
+
if (!top && !bHoriTileBoundary)
|
945
|
+
{
|
946
|
+
strPre4(p0 + 58, p0 + 56, p1 + 0, p1 + 2);
|
947
|
+
strPre4(p0 + 59, p0 + 57, p1 + 1, p1 + 3);
|
948
|
+
}
|
949
|
+
|
950
|
+
for (j = 0; j < 48; j += 16)
|
951
|
+
{
|
952
|
+
p = p1 + j;
|
953
|
+
strPre4(p + 10, p + 8, p + 16, p + 18);
|
954
|
+
strPre4(p + 11, p + 9, p + 17, p + 19);
|
955
|
+
p = NULL;
|
956
|
+
}
|
957
|
+
}
|
958
|
+
else if (!bVertTileBoundary)
|
959
|
+
{
|
960
|
+
for (j = -64; j < -16; j += 16)
|
961
|
+
{
|
962
|
+
strPre4x4Stage1(p1 + j, 0);
|
963
|
+
}
|
964
|
+
}
|
965
|
+
|
966
|
+
strPre4x4Stage1(p1 + 0, 0);
|
967
|
+
strPre4x4Stage1(p1 + 16, 0);
|
968
|
+
strPre4x4Stage1(p1 + 32, 0);
|
969
|
+
}
|
970
|
+
|
971
|
+
if (bottom || bHoriTileBoundary)
|
972
|
+
{
|
973
|
+
for (j = ((left || bVertTileBoundary) ? 48: -16); j < (right ? -16: 112); j += 64)
|
974
|
+
{
|
975
|
+
p = p0 + j;
|
976
|
+
strPre4(p + 15, p + 14, p + 74, p + 75);
|
977
|
+
strPre4(p + 13, p + 12, p + 72, p + 73);
|
978
|
+
p = NULL;
|
979
|
+
}
|
980
|
+
}
|
981
|
+
|
982
|
+
if ((right || bVertTileBoundary) && !bottom)
|
983
|
+
{
|
984
|
+
if (!top && !bHoriTileBoundary)
|
985
|
+
{
|
986
|
+
strPre4(p0 - 1, p0 - 3, p1 - 59, p1 - 57);
|
987
|
+
strPre4(p0 - 2, p0 - 4, p1 - 60, p1 - 58);
|
988
|
+
}
|
989
|
+
|
990
|
+
for (j = -64; j < -16; j += 16)
|
991
|
+
{
|
992
|
+
p = p1 + j;
|
993
|
+
strPre4(p + 15, p + 13, p + 21, p + 23);
|
994
|
+
strPre4(p + 14, p + 12, p + 20, p + 22);
|
995
|
+
p = NULL;
|
996
|
+
}
|
997
|
+
}
|
998
|
+
}
|
999
|
+
|
1000
|
+
//================================
|
1001
|
+
// first level transform (422_UV)
|
1002
|
+
if (!top)
|
1003
|
+
{
|
1004
|
+
for (j = (left ? 48 : -16); j < (right ? 48 : 112); j += 64)
|
1005
|
+
{
|
1006
|
+
strDCT4x4Stage1(p0 + j);
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
if (!bottom)
|
1011
|
+
{
|
1012
|
+
for (j = (left ? 0 : -64); j < (right ? 0 : 64); j += 64)
|
1013
|
+
{
|
1014
|
+
strDCT4x4Stage1(p1 + j + 0);
|
1015
|
+
strDCT4x4Stage1(p1 + j + 16);
|
1016
|
+
strDCT4x4Stage1(p1 + j + 32);
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
//================================
|
1021
|
+
// second level overlap (422_UV)
|
1022
|
+
if (OL_TWO == olOverlap)
|
1023
|
+
{
|
1024
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (top || bHoriTileBoundary))
|
1025
|
+
COMPUTE_CORNER_PRED_DIFF(p1 - 128 + 0, *(p1 - 128 + 64));
|
1026
|
+
|
1027
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (top || bHoriTileBoundary))
|
1028
|
+
iPredBefore[i][0] = *(p1 + 0);
|
1029
|
+
if ((right || bVertTileBoundary) && (top || bHoriTileBoundary))
|
1030
|
+
COMPUTE_CORNER_PRED_DIFF(p1 - 128 + 64, iPredBefore[i][0]);
|
1031
|
+
|
1032
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (bottom || bHoriTileBoundary))
|
1033
|
+
COMPUTE_CORNER_PRED_DIFF(p0 - 128 + 48, *(p0 - 128 + 112));
|
1034
|
+
|
1035
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (bottom || bHoriTileBoundary))
|
1036
|
+
iPredBefore[i][1] = *(p0 + 48);
|
1037
|
+
if ((right || bVertTileBoundary) && (bottom || bHoriTileBoundary))
|
1038
|
+
COMPUTE_CORNER_PRED_DIFF(p0 - 128 + 112, iPredBefore[i][1]);
|
1039
|
+
|
1040
|
+
if (!bottom)
|
1041
|
+
{
|
1042
|
+
if (leftORright || bVertTileBoundary)
|
1043
|
+
{
|
1044
|
+
if (!top && !bHoriTileBoundary)
|
1045
|
+
{
|
1046
|
+
if (left || bVertTileBoundary)
|
1047
|
+
strPre2(p0 + 48 + 0, p1 + 0);
|
1048
|
+
|
1049
|
+
if (right || bVertTileBoundary)
|
1050
|
+
strPre2(p0 + 48 + -64, p1 + -64);
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
if (left || bVertTileBoundary)
|
1054
|
+
strPre2(p1 + 16, p1 + 16 + 16);
|
1055
|
+
|
1056
|
+
if (right || bVertTileBoundary)
|
1057
|
+
strPre2(p1 + -48, p1 + -48 + 16);
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
if (!leftORright && !bVertTileBoundary)
|
1061
|
+
{
|
1062
|
+
if (top || bHoriTileBoundary)
|
1063
|
+
strPre2(p1 - 64, p1);
|
1064
|
+
else
|
1065
|
+
strPre2x2(p0 - 16, p0 + 48, p1 - 64, p1);
|
1066
|
+
|
1067
|
+
strPre2x2(p1 - 48, p1 + 16, p1 - 32, p1 + 32);
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
|
1071
|
+
if ((bottom || bHoriTileBoundary) && (!leftORright && !bVertTileBoundary))
|
1072
|
+
strPre2(p0 - 16, p0 + 48);
|
1073
|
+
|
1074
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (top || bHoriTileBoundary))
|
1075
|
+
COMPUTE_CORNER_PRED_ADD(p1 - 128 + 0, *(p1 - 128 + 64));
|
1076
|
+
|
1077
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (top || bHoriTileBoundary))
|
1078
|
+
iPredAfter[i][0] = *(p1 + 0);
|
1079
|
+
if ((right || bVertTileBoundary) && (top || bHoriTileBoundary))
|
1080
|
+
COMPUTE_CORNER_PRED_ADD(p1 - 128 + 64, iPredAfter[i][0]);
|
1081
|
+
|
1082
|
+
if ((leftAdjacentColumn || bOneMBRightVertTB) && (bottom || bHoriTileBoundary))
|
1083
|
+
COMPUTE_CORNER_PRED_ADD(p0 - 128 + 48, *(p0 - 128 + 112));
|
1084
|
+
|
1085
|
+
if ((rightAdjacentColumn || bOneMBLeftVertTB) && (bottom || bHoriTileBoundary))
|
1086
|
+
iPredAfter[i][1] = *(p0 + 48);
|
1087
|
+
if ((right || bVertTileBoundary) && (bottom || bHoriTileBoundary))
|
1088
|
+
COMPUTE_CORNER_PRED_ADD(p0 - 128 + 112, iPredAfter[i][1]);
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
//================================
|
1092
|
+
// second level transform (422_UV)
|
1093
|
+
if (!topORleft)
|
1094
|
+
{
|
1095
|
+
if (!pSC->m_param.bScaledArith) {
|
1096
|
+
strDCT2x2dn(p0 - 128, p0 - 64, p0 - 112, p0 - 48);
|
1097
|
+
strDCT2x2dn(p0 - 96, p0 - 32, p0 - 80, p0 - 16);
|
1098
|
+
}
|
1099
|
+
else {
|
1100
|
+
strDCT2x2dnEnc(p0 - 128, p0 - 64, p0 - 112, p0 - 48);
|
1101
|
+
strDCT2x2dnEnc(p0 - 96, p0 - 32, p0 - 80, p0 - 16);
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
// 1D lossless HT
|
1105
|
+
p0[- 96] -= p0[-128];
|
1106
|
+
p0[-128] += ((p0[-96] + 1) >> 1);
|
1107
|
+
}
|
1108
|
+
}
|
1109
|
+
assert(NULL == p);
|
1110
|
+
}
|
1111
|
+
|