laag-libtiff 4.0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +57 -0
- data/LICENSE.txt +21 -0
- data/README.org +34 -0
- data/ext/laag/libtiff/extconf.rb +13 -0
- data/laag-libtiff.gemspec +20 -0
- data/lib/laag/libtiff.rb +29 -0
- data/vendor/gitlab.com/libtiff/libtiff/.appveyor.yml +109 -0
- data/vendor/gitlab.com/libtiff/libtiff/.cvsignore +4 -0
- data/vendor/gitlab.com/libtiff/libtiff/.travis.yml +34 -0
- data/vendor/gitlab.com/libtiff/libtiff/CMakeLists.txt +764 -0
- data/vendor/gitlab.com/libtiff/libtiff/COMMITTERS +19 -0
- data/vendor/gitlab.com/libtiff/libtiff/COPYRIGHT +21 -0
- data/vendor/gitlab.com/libtiff/libtiff/ChangeLog +8073 -0
- data/vendor/gitlab.com/libtiff/libtiff/HOWTO-RELEASE +119 -0
- data/vendor/gitlab.com/libtiff/libtiff/HOWTO-SECURITY-RELEASE +19 -0
- data/vendor/gitlab.com/libtiff/libtiff/Makefile.am +91 -0
- data/vendor/gitlab.com/libtiff/libtiff/Makefile.in +995 -0
- data/vendor/gitlab.com/libtiff/libtiff/Makefile.vc +58 -0
- data/vendor/gitlab.com/libtiff/libtiff/README +61 -0
- data/vendor/gitlab.com/libtiff/libtiff/README.vms +12 -0
- data/vendor/gitlab.com/libtiff/libtiff/RELEASE-DATE +1 -0
- data/vendor/gitlab.com/libtiff/libtiff/SConstruct +171 -0
- data/vendor/gitlab.com/libtiff/libtiff/TODO +12 -0
- data/vendor/gitlab.com/libtiff/libtiff/VERSION +1 -0
- data/vendor/gitlab.com/libtiff/libtiff/aclocal.m4 +1194 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/html/man/bmp2tiff.1.html +121 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/html/man/gif2tiff.1.html +141 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/html/man/ras2tiff.1.html +139 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/html/man/sgi2tiff.1.html +147 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/html/man/tiffsv.1.html +207 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/man/bmp2tiff.1 +85 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/man/gif2tiff.1 +81 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/man/ras2tiff.1 +96 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/man/sgi2tiff.1 +93 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/man/tiffsv.1 +142 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/bmp2tiff.c +937 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/gif2tiff.c +591 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/ras2tiff.c +338 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/rasterfile.h +44 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/sgi2tiff.c +337 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/sgisv.c +318 -0
- data/vendor/gitlab.com/libtiff/libtiff/archive/tools/ycbcr.c +168 -0
- data/vendor/gitlab.com/libtiff/libtiff/autogen.sh +8 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/.cvsignore +1 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/CMakeLists.txt +25 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/Makefile.am +32 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/Makefile.in +680 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/README +3 -0
- data/vendor/gitlab.com/libtiff/libtiff/build/travis-ci +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/commit +233 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/compile +347 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/config.guess +1526 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/config.sub +1658 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/depcomp +791 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/install-sh +507 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/ltmain.sh +11156 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/missing +215 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/mkinstalldirs +161 -0
- data/vendor/gitlab.com/libtiff/libtiff/config/test-driver +127 -0
- data/vendor/gitlab.com/libtiff/libtiff/configure +23612 -0
- data/vendor/gitlab.com/libtiff/libtiff/configure.ac +1112 -0
- data/vendor/gitlab.com/libtiff/libtiff/configure.com +1357 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/CMakeLists.txt +35 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/Makefile.am +31 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/Makefile.in +679 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/README +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/.cvsignore +5 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/CMakeLists.txt +34 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/Makefile.am +39 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/Makefile.in +652 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/Makefile.vc +28 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/README +142 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/addtiffo.c +181 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/tif_overview.c +916 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/tif_ovrcache.c +344 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/addtiffo/tif_ovrcache.h +103 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/.cvsignore +8 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/CMakeLists.txt +43 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/Makefile.am +46 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/Makefile.in +798 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/README +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/tiff-bi.c +91 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/tiff-grayscale.c +147 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/tiff-palette.c +284 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/tiff-rgb.c +201 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/CMakeLists.txt +29 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/Makefile.am +47 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/Makefile.in +516 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/README +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/patchlevel.h +8 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/xtiff.c +1290 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/dbs/xtiff/xtifficon.h +21 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/.cvsignore +5 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/CMakeLists.txt +35 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/Makefile.am +40 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/Makefile.in +650 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/README +25 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/iptcutil.c +954 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/test.iptc +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/iptcutil/test.txt +32 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/CMakeLists.txt +27 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/Makefile.am +29 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/Makefile.in +499 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/README +37 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/mfs/mfs_file.c +586 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/CMakeLists.txt +30 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/Makefile.am +32 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/Makefile.in +502 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/README +90 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/tif_imageiter.c +525 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/tif_imageiter.h +64 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/tif_pdsdirread.c +1131 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/pds/tif_pdsdirwrite.c +971 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/CMakeLists.txt +28 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/Makefile.am +30 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/Makefile.in +500 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/README +10 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/ras2tif.c +254 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/ras/tif2ras.c +344 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/CMakeLists.txt +28 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/Makefile.am +30 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/Makefile.in +500 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/README +30 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/tiffstream.cpp +238 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/stream/tiffstream.h +70 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/CMakeLists.txt +32 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/Makefile.am +33 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/Makefile.in +503 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/README +132 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/listtif.c +39 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/maketif.c +77 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/xtif_dir.c +350 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/xtiffio.h +59 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/tags/xtiffiop.h +72 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/CMakeLists.txt +30 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/Makefile.am +32 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/Makefile.in +502 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/Makefile.w95 +134 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/README.Tiffile +31 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/README.tiff2dib +51 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/Tiffile.cpp +449 -0
- data/vendor/gitlab.com/libtiff/libtiff/contrib/win_dib/tiff2dib.c +379 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/.cvsignore +5 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/BigTIFFProposal.html +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/CMakeLists.txt +87 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/Makefile.am +96 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/Makefile.in +798 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/TIFFTechNote2.html +707 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/addingtags.html +292 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffdesign.html +80 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffpr.html +77 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffpr_images/esri.png +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffpr_images/leica.png +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffpr_images/safe.png +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bigtiffpr_images/weogeo.png +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/bugs.html +61 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/build.html +737 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/contrib.html +209 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/document.html +52 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images.html +41 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/CMakeLists.txt +46 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/Makefile.am +49 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/Makefile.in +572 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/back.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/bali.jpg +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/cat.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/cover.jpg +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/cramps.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/dave.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/info.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/jello.jpg +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/jim.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/note.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/oxford.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/quad.jpg +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/ring.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/smallliz.jpg +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/strike.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/images/warning.gif +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/index.html +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/internals.html +572 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/intro.html +68 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/libtiff.html +747 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/.cvsignore +2 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/CMakeLists.txt +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/HtmlDoc.cmake +50 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/Makefile.am +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/Makefile.in +642 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFClose.3tiff.html +87 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFDataWidth.3tiff.html +98 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFError.3tiff.html +106 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldDataType.3tiff.html +89 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldName.3tiff.html +86 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldPassCount.3tiff.html +98 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldReadCount.3tiff.html +101 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldTag.3tiff.html +88 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFieldWriteCount.3tiff.html +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFFlush.3tiff.html +113 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFGetField.3tiff.html +1969 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFOpen.3tiff.html +421 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFPrintDirectory.3tiff.html +225 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFRGBAImage.3tiff.html +319 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadDirectory.3tiff.html +218 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadEncodedStrip.3tiff.html +133 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadEncodedTile.3tiff.html +130 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadRGBAImage.3tiff.html +301 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadRGBAStrip.3tiff.html +208 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadRGBATile.3tiff.html +261 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadRawStrip.3tiff.html +109 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadRawTile.3tiff.html +111 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadScanline.3tiff.html +157 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFReadTile.3tiff.html +133 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFSetDirectory.3tiff.html +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFSetField.3tiff.html +1865 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWarning.3tiff.html +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteDirectory.3tiff.html +176 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteEncodedStrip.3tiff.html +153 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteEncodedTile.3tiff.html +147 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteRawStrip.3tiff.html +144 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteRawTile.3tiff.html +128 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteScanline.3tiff.html +206 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFWriteTile.3tiff.html +115 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFbuffer.3tiff.html +116 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFcodec.3tiff.html +116 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFcolor.3tiff.html +975 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFmemory.3tiff.html +110 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFquery.3tiff.html +148 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFsize.3tiff.html +95 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFstrip.3tiff.html +129 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFswab.3tiff.html +110 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/TIFFtile.3tiff.html +141 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/fax2ps.1.html +252 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/fax2tiff.1.html +607 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/index.html +64 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/libtiff.3tiff.html +1150 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/pal2rgb.1.html +189 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/ppm2tiff.1.html +141 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/raw2tiff.1.html +510 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/rgb2ycbcr.1.html +155 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/thumbnail.1.html +148 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiff2bw.1.html +161 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiff2pdf.1.html +609 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiff2ps.1.html +639 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiff2rgba.1.html +162 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffcmp.1.html +156 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffcp.1.html +569 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffcrop.1.html +684 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffdither.1.html +196 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffdump.1.html +145 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffgt.1.html +551 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffinfo.1.html +196 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffmedian.1.html +183 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffset.1.html +176 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/man/tiffsplit.1.html +102 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/misc.html +117 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/support.html +655 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/tools.html +137 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta007.html +112 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta016.html +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta018.html +84 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta024.html +139 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta028.html +146 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta029.html +86 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta031.html +94 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta032.html +90 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta033.html +82 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta034.html +68 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta035.html +63 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.4beta036.html +117 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.1.html +75 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.2.html +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.3.html +132 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.4.html +88 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.5.html +155 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.6-beta.html +185 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.5.7.html +259 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.6.0.html +434 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.6.1.html +199 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.0.html +144 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.0alpha.html +249 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.0beta.html +162 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.0beta2.html +131 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.1.html +233 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.2.html +222 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.3.html +230 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.7.4.html +133 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.8.0.html +199 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.8.1.html +217 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.8.2.html +137 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.0.html +261 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.0beta.html +304 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.1.html +115 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.2.html +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.3.html +160 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.4.html +125 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v3.9.5.html +270 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.0.html +269 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.1.html +113 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.2.html +118 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.3.html +125 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.4.html +274 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.4beta.html +291 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.5.html +148 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.6.html +139 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.7.html +411 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.8.html +445 -0
- data/vendor/gitlab.com/libtiff/libtiff/html/v4.0.9.html +373 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff-4.pc.in +11 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/.cvsignore +22 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/CMakeLists.txt +165 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/Makefile.am +154 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/Makefile.in +966 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/Makefile.lcc +129 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/Makefile.vc +102 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/SConstruct +73 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/libtiff.def +168 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/libtiff.map +4 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/libtiffxx.map +4 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/mkg3states.c +454 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/mkspans.c +82 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/t4.h +292 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_aux.c +376 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_close.c +140 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_codec.c +165 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_color.c +309 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_compress.c +304 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_config.h-vms +46 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_config.h.cmake.in +261 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_config.h.in +410 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_config.vc.h +137 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_config.wince.h +71 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dir.c +1767 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dir.h +309 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dirinfo.c +1070 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dirread.c +5803 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dirwrite.c +3024 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_dumpmode.c +143 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_error.c +88 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_extension.c +118 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_fax3.c +1648 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_fax3.h +540 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_fax3sm.c +1260 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_flush.c +118 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_getimage.c +3048 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_jbig.c +214 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_jpeg.c +2601 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_jpeg_12.c +69 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_luv.c +1765 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_lzma.c +495 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_lzw.c +1218 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_next.c +189 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_ojpeg.c +2563 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_open.c +725 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_packbits.c +311 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_pixarlog.c +1485 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_predict.c +881 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_predict.h +79 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_print.c +722 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_read.c +1572 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_stream.cxx +430 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_strip.c +389 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_swab.c +312 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_thunder.c +208 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_tile.c +322 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_unix.c +386 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_version.c +40 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_vms.c +611 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_warning.c +89 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_win32.c +476 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_wince.c +293 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_write.c +834 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tif_zip.c +476 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiff.h +681 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffconf.h-vms +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffconf.h.cmake.in +130 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffconf.h.in +127 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffconf.vc.h +161 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffconf.wince.h +121 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffio.h +560 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffio.hxx +49 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffiop.h +445 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffvers.h +9 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/tiffvers.h.in +9 -0
- data/vendor/gitlab.com/libtiff/libtiff/libtiff/uvcode.h +180 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/acinclude.m4 +851 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/ice_find_athena.m4 +187 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/libtool.m4 +8388 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/ltoptions.m4 +437 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/ltsugar.m4 +124 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/ltversion.m4 +23 -0
- data/vendor/gitlab.com/libtiff/libtiff/m4/lt~obsolete.m4 +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/.cvsignore +3 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/CMakeLists.txt +97 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/Makefile.am +94 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/Makefile.in +684 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFClose.3tiff +53 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFDataWidth.3tiff +74 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFError.3tiff +69 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldDataType.3tiff +53 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldName.3tiff +52 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldPassCount.3tiff +73 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldReadCount.3tiff +77 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldTag.3tiff +56 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFieldWriteCount.3tiff +88 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFFlush.3tiff +64 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFGetField.3tiff +229 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFOpen.3tiff +279 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFPrintDirectory.3tiff +70 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFRGBAImage.3tiff +286 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadDirectory.3tiff +164 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadEncodedStrip.3tiff +78 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadEncodedTile.3tiff +76 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadRGBAImage.3tiff +218 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadRGBAStrip.3tiff +170 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadRGBATile.3tiff +171 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadRawStrip.3tiff +64 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadRawTile.3tiff +65 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadScanline.3tiff +94 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFReadTile.3tiff +84 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFSetDirectory.3tiff +79 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFSetField.3tiff +217 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWarning.3tiff +70 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteDirectory.3tiff +138 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteEncodedStrip.3tiff +102 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteEncodedTile.3tiff +96 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteRawStrip.3tiff +96 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteRawTile.3tiff +84 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteScanline.3tiff +154 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFWriteTile.3tiff +77 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFbuffer.3tiff +77 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFcodec.3tiff +82 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFcolor.3tiff +268 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFmemory.3tiff +90 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFquery.3tiff +142 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFsize.3tiff +59 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFstrip.3tiff +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFswab.3tiff +80 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/TIFFtile.3tiff +131 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/fax2ps.1 +159 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/fax2tiff.1 +286 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/libtiff.3tiff +545 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/pal2rgb.1 +111 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/ppm2tiff.1 +105 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/raw2tiff.1 +196 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/rgb2ycbcr.1 +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/thumbnail.1 +90 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiff2bw.1 +94 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiff2pdf.1 +254 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiff2ps.1 +294 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiff2rgba.1 +97 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffcmp.1 +87 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffcp.1 +317 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffcrop.1 +571 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffdither.1 +135 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffdump.1 +81 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffgt.1 +245 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffinfo.1 +88 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffmedian.1 +112 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffset.1 +99 -0
- data/vendor/gitlab.com/libtiff/libtiff/man/tiffsplit.1 +69 -0
- data/vendor/gitlab.com/libtiff/libtiff/nmake.opt +229 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/.cvsignore +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/CMakeLists.txt +60 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/Makefile.am +35 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/Makefile.in +656 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/Makefile.vc +44 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/dummy.c +12 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/getopt.c +125 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/lfind.c +62 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/libport.h +60 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/snprintf.c +38 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/strcasecmp.c +51 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/strtoul.c +109 -0
- data/vendor/gitlab.com/libtiff/libtiff/port/strtoull.c +116 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/.cvsignore +12 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/CMakeLists.txt +382 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/Makefile.am +334 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/Makefile.in +1987 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/TiffSplitTest.cmake +34 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/TiffTest.cmake +63 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/TiffTestCommon.cmake +108 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/ascii_tag.c +177 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/check_tag.c +91 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/common.sh +122 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/custom_dir.c +247 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/README.txt +29 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/logluv-3c-16b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/minisblack-1c-16b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/minisblack-1c-8b.pgm +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/minisblack-1c-8b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/minisblack-2c-8b-alpha.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/miniswhite-1c-1b.pbm +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/miniswhite-1c-1b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/palette-1c-1b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/palette-1c-4b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/palette-1c-8b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/quad-lzw-compat.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/quad-tile.jpg.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/rgb-3c-16b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/rgb-3c-8b.ppm +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/images/rgb-3c-8b.tiff +0 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/long_tag.c +156 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/ppm2tiff_pbm.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/ppm2tiff_pgm.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/ppm2tiff_ppm.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/raw_decode.c +304 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/rewrite_tag.c +344 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/short_tag.c +205 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/strip.c +290 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/strip_rw.c +157 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/test_arrays.c +829 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/test_arrays.h +63 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2bw-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2bw-quad-lzw-compat.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2bw-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2pdf.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2ps-EPS1.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2ps-PS1.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2ps-PS2.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2ps-PS3.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-logluv-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-minisblack-1c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-minisblack-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-minisblack-2c-8b-alpha.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-miniswhite-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-palette-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-palette-1c-4b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-quad-tile.jpg.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-rgb-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiff2rgba-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g3-1d-fill.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g3-1d.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g3-2d-fill.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g3-2d.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g3.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-g4.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-logluv.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-lzw-compat.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-split-join.sh +16 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-split.sh +13 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcp-thumbnail.sh +10 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-logluv-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-minisblack-1c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-minisblack-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-minisblack-2c-8b-alpha.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-miniswhite-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-palette-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-palette-1c-4b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-quad-tile.jpg.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-rgb-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-R90-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-logluv-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-minisblack-1c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-minisblack-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-minisblack-2c-8b-alpha.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-miniswhite-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-palette-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-palette-1c-4b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-quad-tile.jpg.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-rgb-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-doubleflip-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-logluv-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-minisblack-1c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-minisblack-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-minisblack-2c-8b-alpha.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-miniswhite-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-palette-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-palette-1c-4b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-quad-tile.jpg.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-rgb-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extract-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-logluv-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-minisblack-1c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-minisblack-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-minisblack-2c-8b-alpha.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-miniswhite-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-palette-1c-1b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-palette-1c-4b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-palette-1c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-quad-tile.jpg.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-rgb-3c-16b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffcrop-extractz14-rgb-3c-8b.sh +7 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffdump.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tiffinfo.sh +6 -0
- data/vendor/gitlab.com/libtiff/libtiff/test/tifftest.h +42 -0
- data/vendor/gitlab.com/libtiff/libtiff/tiff.spec +68 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/.cvsignore +27 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/CMakeLists.txt +125 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/Makefile.am +138 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/Makefile.in +955 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/Makefile.lcc +133 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/Makefile.vc +52 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/fax2ps.c +463 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/fax2tiff.c +491 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/pal2rgb.c +438 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/ppm2tiff.c +397 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/raw2tiff.c +690 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/rgb2ycbcr.c +397 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/thumbnail.c +691 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiff2bw.c +501 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiff2pdf.c +5594 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiff2ps.c +3106 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiff2rgba.c +569 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffcmp.c +659 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffcp.c +1913 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffcrop.c +9231 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffdither.c +347 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffdump.c +889 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffgt.c +486 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffinfo.c +488 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffinfoce.c +472 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffmedian.c +918 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffset.c +356 -0
- data/vendor/gitlab.com/libtiff/libtiff/tools/tiffsplit.c +305 -0
- metadata +692 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
/* $Id: mkspans.c,v 1.4 2010-03-10 18:56:48 bfriesen Exp $ */
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Copyright (c) 1991-1997 Sam Leffler
|
5
|
+
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
6
|
+
*
|
7
|
+
* Permission to use, copy, modify, distribute, and sell this software and
|
8
|
+
* its documentation for any purpose is hereby granted without fee, provided
|
9
|
+
* that (i) the above copyright notices and this permission notice appear in
|
10
|
+
* all copies of the software and related documentation, and (ii) the names of
|
11
|
+
* Sam Leffler and Silicon Graphics may not be used in any advertising or
|
12
|
+
* publicity relating to the software without the specific, prior written
|
13
|
+
* permission of Sam Leffler and Silicon Graphics.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
17
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
18
|
+
*
|
19
|
+
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
20
|
+
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
21
|
+
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
22
|
+
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
23
|
+
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
24
|
+
* OF THIS SOFTWARE.
|
25
|
+
*/
|
26
|
+
|
27
|
+
#include <string.h>
|
28
|
+
#include <stdio.h>
|
29
|
+
|
30
|
+
/*
|
31
|
+
* Hack program to construct tables used to find
|
32
|
+
* runs of zeros and ones in Group 3 Fax encoding.
|
33
|
+
*/
|
34
|
+
|
35
|
+
dumparray(name, runs)
|
36
|
+
char *name;
|
37
|
+
unsigned char runs[256];
|
38
|
+
{
|
39
|
+
int i;
|
40
|
+
char *sep;
|
41
|
+
printf("static unsigned char %s[256] = {\n", name);
|
42
|
+
sep = " ";
|
43
|
+
for (i = 0; i < 256; i++) {
|
44
|
+
printf("%s%d", sep, runs[i]);
|
45
|
+
if (((i + 1) % 16) == 0) {
|
46
|
+
printf(", /* 0x%02x - 0x%02x */\n", i-15, i);
|
47
|
+
sep = " ";
|
48
|
+
} else
|
49
|
+
sep = ", ";
|
50
|
+
}
|
51
|
+
printf("\n};\n");
|
52
|
+
}
|
53
|
+
|
54
|
+
main()
|
55
|
+
{
|
56
|
+
unsigned char runs[2][256];
|
57
|
+
|
58
|
+
memset(runs[0], 0, 256*sizeof (char));
|
59
|
+
memset(runs[1], 0, 256*sizeof (char));
|
60
|
+
{ register int run, runlen, i;
|
61
|
+
runlen = 1;
|
62
|
+
for (run = 0x80; run != 0xff; run = (run>>1)|0x80) {
|
63
|
+
for (i = run-1; i >= 0; i--) {
|
64
|
+
runs[1][run|i] = runlen;
|
65
|
+
runs[0][(~(run|i)) & 0xff] = runlen;
|
66
|
+
}
|
67
|
+
runlen++;
|
68
|
+
}
|
69
|
+
runs[1][0xff] = runs[0][0] = 8;
|
70
|
+
}
|
71
|
+
dumparray("bruns", runs[0]);
|
72
|
+
dumparray("wruns", runs[1]);
|
73
|
+
}
|
74
|
+
|
75
|
+
/* vim: set ts=8 sts=8 sw=8 noet: */
|
76
|
+
/*
|
77
|
+
* Local Variables:
|
78
|
+
* mode: c
|
79
|
+
* c-basic-offset: 8
|
80
|
+
* fill-column: 78
|
81
|
+
* End:
|
82
|
+
*/
|
@@ -0,0 +1,292 @@
|
|
1
|
+
/* $Id: t4.h,v 1.3 2010-03-10 18:56:48 bfriesen Exp $ */
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Copyright (c) 1988-1997 Sam Leffler
|
5
|
+
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
6
|
+
*
|
7
|
+
* Permission to use, copy, modify, distribute, and sell this software and
|
8
|
+
* its documentation for any purpose is hereby granted without fee, provided
|
9
|
+
* that (i) the above copyright notices and this permission notice appear in
|
10
|
+
* all copies of the software and related documentation, and (ii) the names of
|
11
|
+
* Sam Leffler and Silicon Graphics may not be used in any advertising or
|
12
|
+
* publicity relating to the software without the specific, prior written
|
13
|
+
* permission of Sam Leffler and Silicon Graphics.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
17
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
18
|
+
*
|
19
|
+
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
20
|
+
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
21
|
+
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
22
|
+
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
23
|
+
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
24
|
+
* OF THIS SOFTWARE.
|
25
|
+
*/
|
26
|
+
|
27
|
+
#ifndef _T4_
|
28
|
+
#define _T4_
|
29
|
+
/*
|
30
|
+
* CCITT T.4 1D Huffman runlength codes and
|
31
|
+
* related definitions. Given the small sizes
|
32
|
+
* of these tables it does not seem
|
33
|
+
* worthwhile to make code & length 8 bits.
|
34
|
+
*/
|
35
|
+
typedef struct tableentry {
|
36
|
+
unsigned short length; /* bit length of g3 code */
|
37
|
+
unsigned short code; /* g3 code */
|
38
|
+
short runlen; /* run length in bits */
|
39
|
+
} tableentry;
|
40
|
+
|
41
|
+
#define EOL 0x001 /* EOL code value - 0000 0000 0000 1 */
|
42
|
+
|
43
|
+
/* status values returned instead of a run length */
|
44
|
+
#define G3CODE_EOL -1 /* NB: ACT_EOL - ACT_WRUNT */
|
45
|
+
#define G3CODE_INVALID -2 /* NB: ACT_INVALID - ACT_WRUNT */
|
46
|
+
#define G3CODE_EOF -3 /* end of input data */
|
47
|
+
#define G3CODE_INCOMP -4 /* incomplete run code */
|
48
|
+
|
49
|
+
/*
|
50
|
+
* Note that these tables are ordered such that the
|
51
|
+
* index into the table is known to be either the
|
52
|
+
* run length, or (run length / 64) + a fixed offset.
|
53
|
+
*
|
54
|
+
* NB: The G3CODE_INVALID entries are only used
|
55
|
+
* during state generation (see mkg3states.c).
|
56
|
+
*/
|
57
|
+
#ifdef G3CODES
|
58
|
+
const tableentry TIFFFaxWhiteCodes[] = {
|
59
|
+
{ 8, 0x35, 0 }, /* 0011 0101 */
|
60
|
+
{ 6, 0x7, 1 }, /* 0001 11 */
|
61
|
+
{ 4, 0x7, 2 }, /* 0111 */
|
62
|
+
{ 4, 0x8, 3 }, /* 1000 */
|
63
|
+
{ 4, 0xB, 4 }, /* 1011 */
|
64
|
+
{ 4, 0xC, 5 }, /* 1100 */
|
65
|
+
{ 4, 0xE, 6 }, /* 1110 */
|
66
|
+
{ 4, 0xF, 7 }, /* 1111 */
|
67
|
+
{ 5, 0x13, 8 }, /* 1001 1 */
|
68
|
+
{ 5, 0x14, 9 }, /* 1010 0 */
|
69
|
+
{ 5, 0x7, 10 }, /* 0011 1 */
|
70
|
+
{ 5, 0x8, 11 }, /* 0100 0 */
|
71
|
+
{ 6, 0x8, 12 }, /* 0010 00 */
|
72
|
+
{ 6, 0x3, 13 }, /* 0000 11 */
|
73
|
+
{ 6, 0x34, 14 }, /* 1101 00 */
|
74
|
+
{ 6, 0x35, 15 }, /* 1101 01 */
|
75
|
+
{ 6, 0x2A, 16 }, /* 1010 10 */
|
76
|
+
{ 6, 0x2B, 17 }, /* 1010 11 */
|
77
|
+
{ 7, 0x27, 18 }, /* 0100 111 */
|
78
|
+
{ 7, 0xC, 19 }, /* 0001 100 */
|
79
|
+
{ 7, 0x8, 20 }, /* 0001 000 */
|
80
|
+
{ 7, 0x17, 21 }, /* 0010 111 */
|
81
|
+
{ 7, 0x3, 22 }, /* 0000 011 */
|
82
|
+
{ 7, 0x4, 23 }, /* 0000 100 */
|
83
|
+
{ 7, 0x28, 24 }, /* 0101 000 */
|
84
|
+
{ 7, 0x2B, 25 }, /* 0101 011 */
|
85
|
+
{ 7, 0x13, 26 }, /* 0010 011 */
|
86
|
+
{ 7, 0x24, 27 }, /* 0100 100 */
|
87
|
+
{ 7, 0x18, 28 }, /* 0011 000 */
|
88
|
+
{ 8, 0x2, 29 }, /* 0000 0010 */
|
89
|
+
{ 8, 0x3, 30 }, /* 0000 0011 */
|
90
|
+
{ 8, 0x1A, 31 }, /* 0001 1010 */
|
91
|
+
{ 8, 0x1B, 32 }, /* 0001 1011 */
|
92
|
+
{ 8, 0x12, 33 }, /* 0001 0010 */
|
93
|
+
{ 8, 0x13, 34 }, /* 0001 0011 */
|
94
|
+
{ 8, 0x14, 35 }, /* 0001 0100 */
|
95
|
+
{ 8, 0x15, 36 }, /* 0001 0101 */
|
96
|
+
{ 8, 0x16, 37 }, /* 0001 0110 */
|
97
|
+
{ 8, 0x17, 38 }, /* 0001 0111 */
|
98
|
+
{ 8, 0x28, 39 }, /* 0010 1000 */
|
99
|
+
{ 8, 0x29, 40 }, /* 0010 1001 */
|
100
|
+
{ 8, 0x2A, 41 }, /* 0010 1010 */
|
101
|
+
{ 8, 0x2B, 42 }, /* 0010 1011 */
|
102
|
+
{ 8, 0x2C, 43 }, /* 0010 1100 */
|
103
|
+
{ 8, 0x2D, 44 }, /* 0010 1101 */
|
104
|
+
{ 8, 0x4, 45 }, /* 0000 0100 */
|
105
|
+
{ 8, 0x5, 46 }, /* 0000 0101 */
|
106
|
+
{ 8, 0xA, 47 }, /* 0000 1010 */
|
107
|
+
{ 8, 0xB, 48 }, /* 0000 1011 */
|
108
|
+
{ 8, 0x52, 49 }, /* 0101 0010 */
|
109
|
+
{ 8, 0x53, 50 }, /* 0101 0011 */
|
110
|
+
{ 8, 0x54, 51 }, /* 0101 0100 */
|
111
|
+
{ 8, 0x55, 52 }, /* 0101 0101 */
|
112
|
+
{ 8, 0x24, 53 }, /* 0010 0100 */
|
113
|
+
{ 8, 0x25, 54 }, /* 0010 0101 */
|
114
|
+
{ 8, 0x58, 55 }, /* 0101 1000 */
|
115
|
+
{ 8, 0x59, 56 }, /* 0101 1001 */
|
116
|
+
{ 8, 0x5A, 57 }, /* 0101 1010 */
|
117
|
+
{ 8, 0x5B, 58 }, /* 0101 1011 */
|
118
|
+
{ 8, 0x4A, 59 }, /* 0100 1010 */
|
119
|
+
{ 8, 0x4B, 60 }, /* 0100 1011 */
|
120
|
+
{ 8, 0x32, 61 }, /* 0011 0010 */
|
121
|
+
{ 8, 0x33, 62 }, /* 0011 0011 */
|
122
|
+
{ 8, 0x34, 63 }, /* 0011 0100 */
|
123
|
+
{ 5, 0x1B, 64 }, /* 1101 1 */
|
124
|
+
{ 5, 0x12, 128 }, /* 1001 0 */
|
125
|
+
{ 6, 0x17, 192 }, /* 0101 11 */
|
126
|
+
{ 7, 0x37, 256 }, /* 0110 111 */
|
127
|
+
{ 8, 0x36, 320 }, /* 0011 0110 */
|
128
|
+
{ 8, 0x37, 384 }, /* 0011 0111 */
|
129
|
+
{ 8, 0x64, 448 }, /* 0110 0100 */
|
130
|
+
{ 8, 0x65, 512 }, /* 0110 0101 */
|
131
|
+
{ 8, 0x68, 576 }, /* 0110 1000 */
|
132
|
+
{ 8, 0x67, 640 }, /* 0110 0111 */
|
133
|
+
{ 9, 0xCC, 704 }, /* 0110 0110 0 */
|
134
|
+
{ 9, 0xCD, 768 }, /* 0110 0110 1 */
|
135
|
+
{ 9, 0xD2, 832 }, /* 0110 1001 0 */
|
136
|
+
{ 9, 0xD3, 896 }, /* 0110 1001 1 */
|
137
|
+
{ 9, 0xD4, 960 }, /* 0110 1010 0 */
|
138
|
+
{ 9, 0xD5, 1024 }, /* 0110 1010 1 */
|
139
|
+
{ 9, 0xD6, 1088 }, /* 0110 1011 0 */
|
140
|
+
{ 9, 0xD7, 1152 }, /* 0110 1011 1 */
|
141
|
+
{ 9, 0xD8, 1216 }, /* 0110 1100 0 */
|
142
|
+
{ 9, 0xD9, 1280 }, /* 0110 1100 1 */
|
143
|
+
{ 9, 0xDA, 1344 }, /* 0110 1101 0 */
|
144
|
+
{ 9, 0xDB, 1408 }, /* 0110 1101 1 */
|
145
|
+
{ 9, 0x98, 1472 }, /* 0100 1100 0 */
|
146
|
+
{ 9, 0x99, 1536 }, /* 0100 1100 1 */
|
147
|
+
{ 9, 0x9A, 1600 }, /* 0100 1101 0 */
|
148
|
+
{ 6, 0x18, 1664 }, /* 0110 00 */
|
149
|
+
{ 9, 0x9B, 1728 }, /* 0100 1101 1 */
|
150
|
+
{ 11, 0x8, 1792 }, /* 0000 0001 000 */
|
151
|
+
{ 11, 0xC, 1856 }, /* 0000 0001 100 */
|
152
|
+
{ 11, 0xD, 1920 }, /* 0000 0001 101 */
|
153
|
+
{ 12, 0x12, 1984 }, /* 0000 0001 0010 */
|
154
|
+
{ 12, 0x13, 2048 }, /* 0000 0001 0011 */
|
155
|
+
{ 12, 0x14, 2112 }, /* 0000 0001 0100 */
|
156
|
+
{ 12, 0x15, 2176 }, /* 0000 0001 0101 */
|
157
|
+
{ 12, 0x16, 2240 }, /* 0000 0001 0110 */
|
158
|
+
{ 12, 0x17, 2304 }, /* 0000 0001 0111 */
|
159
|
+
{ 12, 0x1C, 2368 }, /* 0000 0001 1100 */
|
160
|
+
{ 12, 0x1D, 2432 }, /* 0000 0001 1101 */
|
161
|
+
{ 12, 0x1E, 2496 }, /* 0000 0001 1110 */
|
162
|
+
{ 12, 0x1F, 2560 }, /* 0000 0001 1111 */
|
163
|
+
{ 12, 0x1, G3CODE_EOL }, /* 0000 0000 0001 */
|
164
|
+
{ 9, 0x1, G3CODE_INVALID }, /* 0000 0000 1 */
|
165
|
+
{ 10, 0x1, G3CODE_INVALID }, /* 0000 0000 01 */
|
166
|
+
{ 11, 0x1, G3CODE_INVALID }, /* 0000 0000 001 */
|
167
|
+
{ 12, 0x0, G3CODE_INVALID }, /* 0000 0000 0000 */
|
168
|
+
};
|
169
|
+
|
170
|
+
const tableentry TIFFFaxBlackCodes[] = {
|
171
|
+
{ 10, 0x37, 0 }, /* 0000 1101 11 */
|
172
|
+
{ 3, 0x2, 1 }, /* 010 */
|
173
|
+
{ 2, 0x3, 2 }, /* 11 */
|
174
|
+
{ 2, 0x2, 3 }, /* 10 */
|
175
|
+
{ 3, 0x3, 4 }, /* 011 */
|
176
|
+
{ 4, 0x3, 5 }, /* 0011 */
|
177
|
+
{ 4, 0x2, 6 }, /* 0010 */
|
178
|
+
{ 5, 0x3, 7 }, /* 0001 1 */
|
179
|
+
{ 6, 0x5, 8 }, /* 0001 01 */
|
180
|
+
{ 6, 0x4, 9 }, /* 0001 00 */
|
181
|
+
{ 7, 0x4, 10 }, /* 0000 100 */
|
182
|
+
{ 7, 0x5, 11 }, /* 0000 101 */
|
183
|
+
{ 7, 0x7, 12 }, /* 0000 111 */
|
184
|
+
{ 8, 0x4, 13 }, /* 0000 0100 */
|
185
|
+
{ 8, 0x7, 14 }, /* 0000 0111 */
|
186
|
+
{ 9, 0x18, 15 }, /* 0000 1100 0 */
|
187
|
+
{ 10, 0x17, 16 }, /* 0000 0101 11 */
|
188
|
+
{ 10, 0x18, 17 }, /* 0000 0110 00 */
|
189
|
+
{ 10, 0x8, 18 }, /* 0000 0010 00 */
|
190
|
+
{ 11, 0x67, 19 }, /* 0000 1100 111 */
|
191
|
+
{ 11, 0x68, 20 }, /* 0000 1101 000 */
|
192
|
+
{ 11, 0x6C, 21 }, /* 0000 1101 100 */
|
193
|
+
{ 11, 0x37, 22 }, /* 0000 0110 111 */
|
194
|
+
{ 11, 0x28, 23 }, /* 0000 0101 000 */
|
195
|
+
{ 11, 0x17, 24 }, /* 0000 0010 111 */
|
196
|
+
{ 11, 0x18, 25 }, /* 0000 0011 000 */
|
197
|
+
{ 12, 0xCA, 26 }, /* 0000 1100 1010 */
|
198
|
+
{ 12, 0xCB, 27 }, /* 0000 1100 1011 */
|
199
|
+
{ 12, 0xCC, 28 }, /* 0000 1100 1100 */
|
200
|
+
{ 12, 0xCD, 29 }, /* 0000 1100 1101 */
|
201
|
+
{ 12, 0x68, 30 }, /* 0000 0110 1000 */
|
202
|
+
{ 12, 0x69, 31 }, /* 0000 0110 1001 */
|
203
|
+
{ 12, 0x6A, 32 }, /* 0000 0110 1010 */
|
204
|
+
{ 12, 0x6B, 33 }, /* 0000 0110 1011 */
|
205
|
+
{ 12, 0xD2, 34 }, /* 0000 1101 0010 */
|
206
|
+
{ 12, 0xD3, 35 }, /* 0000 1101 0011 */
|
207
|
+
{ 12, 0xD4, 36 }, /* 0000 1101 0100 */
|
208
|
+
{ 12, 0xD5, 37 }, /* 0000 1101 0101 */
|
209
|
+
{ 12, 0xD6, 38 }, /* 0000 1101 0110 */
|
210
|
+
{ 12, 0xD7, 39 }, /* 0000 1101 0111 */
|
211
|
+
{ 12, 0x6C, 40 }, /* 0000 0110 1100 */
|
212
|
+
{ 12, 0x6D, 41 }, /* 0000 0110 1101 */
|
213
|
+
{ 12, 0xDA, 42 }, /* 0000 1101 1010 */
|
214
|
+
{ 12, 0xDB, 43 }, /* 0000 1101 1011 */
|
215
|
+
{ 12, 0x54, 44 }, /* 0000 0101 0100 */
|
216
|
+
{ 12, 0x55, 45 }, /* 0000 0101 0101 */
|
217
|
+
{ 12, 0x56, 46 }, /* 0000 0101 0110 */
|
218
|
+
{ 12, 0x57, 47 }, /* 0000 0101 0111 */
|
219
|
+
{ 12, 0x64, 48 }, /* 0000 0110 0100 */
|
220
|
+
{ 12, 0x65, 49 }, /* 0000 0110 0101 */
|
221
|
+
{ 12, 0x52, 50 }, /* 0000 0101 0010 */
|
222
|
+
{ 12, 0x53, 51 }, /* 0000 0101 0011 */
|
223
|
+
{ 12, 0x24, 52 }, /* 0000 0010 0100 */
|
224
|
+
{ 12, 0x37, 53 }, /* 0000 0011 0111 */
|
225
|
+
{ 12, 0x38, 54 }, /* 0000 0011 1000 */
|
226
|
+
{ 12, 0x27, 55 }, /* 0000 0010 0111 */
|
227
|
+
{ 12, 0x28, 56 }, /* 0000 0010 1000 */
|
228
|
+
{ 12, 0x58, 57 }, /* 0000 0101 1000 */
|
229
|
+
{ 12, 0x59, 58 }, /* 0000 0101 1001 */
|
230
|
+
{ 12, 0x2B, 59 }, /* 0000 0010 1011 */
|
231
|
+
{ 12, 0x2C, 60 }, /* 0000 0010 1100 */
|
232
|
+
{ 12, 0x5A, 61 }, /* 0000 0101 1010 */
|
233
|
+
{ 12, 0x66, 62 }, /* 0000 0110 0110 */
|
234
|
+
{ 12, 0x67, 63 }, /* 0000 0110 0111 */
|
235
|
+
{ 10, 0xF, 64 }, /* 0000 0011 11 */
|
236
|
+
{ 12, 0xC8, 128 }, /* 0000 1100 1000 */
|
237
|
+
{ 12, 0xC9, 192 }, /* 0000 1100 1001 */
|
238
|
+
{ 12, 0x5B, 256 }, /* 0000 0101 1011 */
|
239
|
+
{ 12, 0x33, 320 }, /* 0000 0011 0011 */
|
240
|
+
{ 12, 0x34, 384 }, /* 0000 0011 0100 */
|
241
|
+
{ 12, 0x35, 448 }, /* 0000 0011 0101 */
|
242
|
+
{ 13, 0x6C, 512 }, /* 0000 0011 0110 0 */
|
243
|
+
{ 13, 0x6D, 576 }, /* 0000 0011 0110 1 */
|
244
|
+
{ 13, 0x4A, 640 }, /* 0000 0010 0101 0 */
|
245
|
+
{ 13, 0x4B, 704 }, /* 0000 0010 0101 1 */
|
246
|
+
{ 13, 0x4C, 768 }, /* 0000 0010 0110 0 */
|
247
|
+
{ 13, 0x4D, 832 }, /* 0000 0010 0110 1 */
|
248
|
+
{ 13, 0x72, 896 }, /* 0000 0011 1001 0 */
|
249
|
+
{ 13, 0x73, 960 }, /* 0000 0011 1001 1 */
|
250
|
+
{ 13, 0x74, 1024 }, /* 0000 0011 1010 0 */
|
251
|
+
{ 13, 0x75, 1088 }, /* 0000 0011 1010 1 */
|
252
|
+
{ 13, 0x76, 1152 }, /* 0000 0011 1011 0 */
|
253
|
+
{ 13, 0x77, 1216 }, /* 0000 0011 1011 1 */
|
254
|
+
{ 13, 0x52, 1280 }, /* 0000 0010 1001 0 */
|
255
|
+
{ 13, 0x53, 1344 }, /* 0000 0010 1001 1 */
|
256
|
+
{ 13, 0x54, 1408 }, /* 0000 0010 1010 0 */
|
257
|
+
{ 13, 0x55, 1472 }, /* 0000 0010 1010 1 */
|
258
|
+
{ 13, 0x5A, 1536 }, /* 0000 0010 1101 0 */
|
259
|
+
{ 13, 0x5B, 1600 }, /* 0000 0010 1101 1 */
|
260
|
+
{ 13, 0x64, 1664 }, /* 0000 0011 0010 0 */
|
261
|
+
{ 13, 0x65, 1728 }, /* 0000 0011 0010 1 */
|
262
|
+
{ 11, 0x8, 1792 }, /* 0000 0001 000 */
|
263
|
+
{ 11, 0xC, 1856 }, /* 0000 0001 100 */
|
264
|
+
{ 11, 0xD, 1920 }, /* 0000 0001 101 */
|
265
|
+
{ 12, 0x12, 1984 }, /* 0000 0001 0010 */
|
266
|
+
{ 12, 0x13, 2048 }, /* 0000 0001 0011 */
|
267
|
+
{ 12, 0x14, 2112 }, /* 0000 0001 0100 */
|
268
|
+
{ 12, 0x15, 2176 }, /* 0000 0001 0101 */
|
269
|
+
{ 12, 0x16, 2240 }, /* 0000 0001 0110 */
|
270
|
+
{ 12, 0x17, 2304 }, /* 0000 0001 0111 */
|
271
|
+
{ 12, 0x1C, 2368 }, /* 0000 0001 1100 */
|
272
|
+
{ 12, 0x1D, 2432 }, /* 0000 0001 1101 */
|
273
|
+
{ 12, 0x1E, 2496 }, /* 0000 0001 1110 */
|
274
|
+
{ 12, 0x1F, 2560 }, /* 0000 0001 1111 */
|
275
|
+
{ 12, 0x1, G3CODE_EOL }, /* 0000 0000 0001 */
|
276
|
+
{ 9, 0x1, G3CODE_INVALID }, /* 0000 0000 1 */
|
277
|
+
{ 10, 0x1, G3CODE_INVALID }, /* 0000 0000 01 */
|
278
|
+
{ 11, 0x1, G3CODE_INVALID }, /* 0000 0000 001 */
|
279
|
+
{ 12, 0x0, G3CODE_INVALID }, /* 0000 0000 0000 */
|
280
|
+
};
|
281
|
+
#else
|
282
|
+
extern const tableentry TIFFFaxWhiteCodes[];
|
283
|
+
extern const tableentry TIFFFaxBlackCodes[];
|
284
|
+
#endif
|
285
|
+
#endif /* _T4_ */
|
286
|
+
/*
|
287
|
+
* Local Variables:
|
288
|
+
* mode: c
|
289
|
+
* c-basic-offset: 8
|
290
|
+
* fill-column: 78
|
291
|
+
* End:
|
292
|
+
*/
|
@@ -0,0 +1,376 @@
|
|
1
|
+
/* $Id: tif_aux.c,v 1.31 2017-11-17 20:21:00 erouault Exp $ */
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Copyright (c) 1991-1997 Sam Leffler
|
5
|
+
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
6
|
+
*
|
7
|
+
* Permission to use, copy, modify, distribute, and sell this software and
|
8
|
+
* its documentation for any purpose is hereby granted without fee, provided
|
9
|
+
* that (i) the above copyright notices and this permission notice appear in
|
10
|
+
* all copies of the software and related documentation, and (ii) the names of
|
11
|
+
* Sam Leffler and Silicon Graphics may not be used in any advertising or
|
12
|
+
* publicity relating to the software without the specific, prior written
|
13
|
+
* permission of Sam Leffler and Silicon Graphics.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
17
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
18
|
+
*
|
19
|
+
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
20
|
+
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
21
|
+
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
22
|
+
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
23
|
+
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
24
|
+
* OF THIS SOFTWARE.
|
25
|
+
*/
|
26
|
+
|
27
|
+
/*
|
28
|
+
* TIFF Library.
|
29
|
+
*
|
30
|
+
* Auxiliary Support Routines.
|
31
|
+
*/
|
32
|
+
#include "tiffiop.h"
|
33
|
+
#include "tif_predict.h"
|
34
|
+
#include <math.h>
|
35
|
+
|
36
|
+
uint32
|
37
|
+
_TIFFMultiply32(TIFF* tif, uint32 first, uint32 second, const char* where)
|
38
|
+
{
|
39
|
+
uint32 bytes = first * second;
|
40
|
+
|
41
|
+
if (second && bytes / second != first) {
|
42
|
+
TIFFErrorExt(tif->tif_clientdata, where, "Integer overflow in %s", where);
|
43
|
+
bytes = 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
return bytes;
|
47
|
+
}
|
48
|
+
|
49
|
+
uint64
|
50
|
+
_TIFFMultiply64(TIFF* tif, uint64 first, uint64 second, const char* where)
|
51
|
+
{
|
52
|
+
uint64 bytes = first * second;
|
53
|
+
|
54
|
+
if (second && bytes / second != first) {
|
55
|
+
TIFFErrorExt(tif->tif_clientdata, where, "Integer overflow in %s", where);
|
56
|
+
bytes = 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
return bytes;
|
60
|
+
}
|
61
|
+
|
62
|
+
void*
|
63
|
+
_TIFFCheckRealloc(TIFF* tif, void* buffer,
|
64
|
+
tmsize_t nmemb, tmsize_t elem_size, const char* what)
|
65
|
+
{
|
66
|
+
void* cp = NULL;
|
67
|
+
tmsize_t bytes = nmemb * elem_size;
|
68
|
+
|
69
|
+
/*
|
70
|
+
* XXX: Check for integer overflow.
|
71
|
+
*/
|
72
|
+
if (nmemb && elem_size && bytes / elem_size == nmemb)
|
73
|
+
cp = _TIFFrealloc(buffer, bytes);
|
74
|
+
|
75
|
+
if (cp == NULL) {
|
76
|
+
TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
|
77
|
+
"Failed to allocate memory for %s "
|
78
|
+
"(%ld elements of %ld bytes each)",
|
79
|
+
what,(long) nmemb, (long) elem_size);
|
80
|
+
}
|
81
|
+
|
82
|
+
return cp;
|
83
|
+
}
|
84
|
+
|
85
|
+
void*
|
86
|
+
_TIFFCheckMalloc(TIFF* tif, tmsize_t nmemb, tmsize_t elem_size, const char* what)
|
87
|
+
{
|
88
|
+
return _TIFFCheckRealloc(tif, NULL, nmemb, elem_size, what);
|
89
|
+
}
|
90
|
+
|
91
|
+
static int
|
92
|
+
TIFFDefaultTransferFunction(TIFFDirectory* td)
|
93
|
+
{
|
94
|
+
uint16 **tf = td->td_transferfunction;
|
95
|
+
tmsize_t i, n, nbytes;
|
96
|
+
|
97
|
+
tf[0] = tf[1] = tf[2] = 0;
|
98
|
+
if (td->td_bitspersample >= sizeof(tmsize_t) * 8 - 2)
|
99
|
+
return 0;
|
100
|
+
|
101
|
+
n = ((tmsize_t)1)<<td->td_bitspersample;
|
102
|
+
nbytes = n * sizeof (uint16);
|
103
|
+
tf[0] = (uint16 *)_TIFFmalloc(nbytes);
|
104
|
+
if (tf[0] == NULL)
|
105
|
+
return 0;
|
106
|
+
tf[0][0] = 0;
|
107
|
+
for (i = 1; i < n; i++) {
|
108
|
+
double t = (double)i/((double) n-1.);
|
109
|
+
tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5);
|
110
|
+
}
|
111
|
+
|
112
|
+
if (td->td_samplesperpixel - td->td_extrasamples > 1) {
|
113
|
+
tf[1] = (uint16 *)_TIFFmalloc(nbytes);
|
114
|
+
if(tf[1] == NULL)
|
115
|
+
goto bad;
|
116
|
+
_TIFFmemcpy(tf[1], tf[0], nbytes);
|
117
|
+
tf[2] = (uint16 *)_TIFFmalloc(nbytes);
|
118
|
+
if (tf[2] == NULL)
|
119
|
+
goto bad;
|
120
|
+
_TIFFmemcpy(tf[2], tf[0], nbytes);
|
121
|
+
}
|
122
|
+
return 1;
|
123
|
+
|
124
|
+
bad:
|
125
|
+
if (tf[0])
|
126
|
+
_TIFFfree(tf[0]);
|
127
|
+
if (tf[1])
|
128
|
+
_TIFFfree(tf[1]);
|
129
|
+
if (tf[2])
|
130
|
+
_TIFFfree(tf[2]);
|
131
|
+
tf[0] = tf[1] = tf[2] = 0;
|
132
|
+
return 0;
|
133
|
+
}
|
134
|
+
|
135
|
+
static int
|
136
|
+
TIFFDefaultRefBlackWhite(TIFFDirectory* td)
|
137
|
+
{
|
138
|
+
int i;
|
139
|
+
|
140
|
+
td->td_refblackwhite = (float *)_TIFFmalloc(6*sizeof (float));
|
141
|
+
if (td->td_refblackwhite == NULL)
|
142
|
+
return 0;
|
143
|
+
if (td->td_photometric == PHOTOMETRIC_YCBCR) {
|
144
|
+
/*
|
145
|
+
* YCbCr (Class Y) images must have the ReferenceBlackWhite
|
146
|
+
* tag set. Fix the broken images, which lacks that tag.
|
147
|
+
*/
|
148
|
+
td->td_refblackwhite[0] = 0.0F;
|
149
|
+
td->td_refblackwhite[1] = td->td_refblackwhite[3] =
|
150
|
+
td->td_refblackwhite[5] = 255.0F;
|
151
|
+
td->td_refblackwhite[2] = td->td_refblackwhite[4] = 128.0F;
|
152
|
+
} else {
|
153
|
+
/*
|
154
|
+
* Assume RGB (Class R)
|
155
|
+
*/
|
156
|
+
for (i = 0; i < 3; i++) {
|
157
|
+
td->td_refblackwhite[2*i+0] = 0;
|
158
|
+
td->td_refblackwhite[2*i+1] =
|
159
|
+
(float)((1L<<td->td_bitspersample)-1L);
|
160
|
+
}
|
161
|
+
}
|
162
|
+
return 1;
|
163
|
+
}
|
164
|
+
|
165
|
+
/*
|
166
|
+
* Like TIFFGetField, but return any default
|
167
|
+
* value if the tag is not present in the directory.
|
168
|
+
*
|
169
|
+
* NB: We use the value in the directory, rather than
|
170
|
+
* explicit values so that defaults exist only one
|
171
|
+
* place in the library -- in TIFFDefaultDirectory.
|
172
|
+
*/
|
173
|
+
int
|
174
|
+
TIFFVGetFieldDefaulted(TIFF* tif, uint32 tag, va_list ap)
|
175
|
+
{
|
176
|
+
TIFFDirectory *td = &tif->tif_dir;
|
177
|
+
|
178
|
+
if (TIFFVGetField(tif, tag, ap))
|
179
|
+
return (1);
|
180
|
+
switch (tag) {
|
181
|
+
case TIFFTAG_SUBFILETYPE:
|
182
|
+
*va_arg(ap, uint32 *) = td->td_subfiletype;
|
183
|
+
return (1);
|
184
|
+
case TIFFTAG_BITSPERSAMPLE:
|
185
|
+
*va_arg(ap, uint16 *) = td->td_bitspersample;
|
186
|
+
return (1);
|
187
|
+
case TIFFTAG_THRESHHOLDING:
|
188
|
+
*va_arg(ap, uint16 *) = td->td_threshholding;
|
189
|
+
return (1);
|
190
|
+
case TIFFTAG_FILLORDER:
|
191
|
+
*va_arg(ap, uint16 *) = td->td_fillorder;
|
192
|
+
return (1);
|
193
|
+
case TIFFTAG_ORIENTATION:
|
194
|
+
*va_arg(ap, uint16 *) = td->td_orientation;
|
195
|
+
return (1);
|
196
|
+
case TIFFTAG_SAMPLESPERPIXEL:
|
197
|
+
*va_arg(ap, uint16 *) = td->td_samplesperpixel;
|
198
|
+
return (1);
|
199
|
+
case TIFFTAG_ROWSPERSTRIP:
|
200
|
+
*va_arg(ap, uint32 *) = td->td_rowsperstrip;
|
201
|
+
return (1);
|
202
|
+
case TIFFTAG_MINSAMPLEVALUE:
|
203
|
+
*va_arg(ap, uint16 *) = td->td_minsamplevalue;
|
204
|
+
return (1);
|
205
|
+
case TIFFTAG_MAXSAMPLEVALUE:
|
206
|
+
*va_arg(ap, uint16 *) = td->td_maxsamplevalue;
|
207
|
+
return (1);
|
208
|
+
case TIFFTAG_PLANARCONFIG:
|
209
|
+
*va_arg(ap, uint16 *) = td->td_planarconfig;
|
210
|
+
return (1);
|
211
|
+
case TIFFTAG_RESOLUTIONUNIT:
|
212
|
+
*va_arg(ap, uint16 *) = td->td_resolutionunit;
|
213
|
+
return (1);
|
214
|
+
case TIFFTAG_PREDICTOR:
|
215
|
+
{
|
216
|
+
TIFFPredictorState* sp = (TIFFPredictorState*) tif->tif_data;
|
217
|
+
if( sp == NULL )
|
218
|
+
{
|
219
|
+
TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
|
220
|
+
"Cannot get \"Predictor\" tag as plugin is not configured");
|
221
|
+
*va_arg(ap, uint16*) = 0;
|
222
|
+
return 0;
|
223
|
+
}
|
224
|
+
*va_arg(ap, uint16*) = (uint16) sp->predictor;
|
225
|
+
return 1;
|
226
|
+
}
|
227
|
+
case TIFFTAG_DOTRANGE:
|
228
|
+
*va_arg(ap, uint16 *) = 0;
|
229
|
+
*va_arg(ap, uint16 *) = (1<<td->td_bitspersample)-1;
|
230
|
+
return (1);
|
231
|
+
case TIFFTAG_INKSET:
|
232
|
+
*va_arg(ap, uint16 *) = INKSET_CMYK;
|
233
|
+
return 1;
|
234
|
+
case TIFFTAG_NUMBEROFINKS:
|
235
|
+
*va_arg(ap, uint16 *) = 4;
|
236
|
+
return (1);
|
237
|
+
case TIFFTAG_EXTRASAMPLES:
|
238
|
+
*va_arg(ap, uint16 *) = td->td_extrasamples;
|
239
|
+
*va_arg(ap, uint16 **) = td->td_sampleinfo;
|
240
|
+
return (1);
|
241
|
+
case TIFFTAG_MATTEING:
|
242
|
+
*va_arg(ap, uint16 *) =
|
243
|
+
(td->td_extrasamples == 1 &&
|
244
|
+
td->td_sampleinfo[0] == EXTRASAMPLE_ASSOCALPHA);
|
245
|
+
return (1);
|
246
|
+
case TIFFTAG_TILEDEPTH:
|
247
|
+
*va_arg(ap, uint32 *) = td->td_tiledepth;
|
248
|
+
return (1);
|
249
|
+
case TIFFTAG_DATATYPE:
|
250
|
+
*va_arg(ap, uint16 *) = td->td_sampleformat-1;
|
251
|
+
return (1);
|
252
|
+
case TIFFTAG_SAMPLEFORMAT:
|
253
|
+
*va_arg(ap, uint16 *) = td->td_sampleformat;
|
254
|
+
return(1);
|
255
|
+
case TIFFTAG_IMAGEDEPTH:
|
256
|
+
*va_arg(ap, uint32 *) = td->td_imagedepth;
|
257
|
+
return (1);
|
258
|
+
case TIFFTAG_YCBCRCOEFFICIENTS:
|
259
|
+
{
|
260
|
+
/* defaults are from CCIR Recommendation 601-1 */
|
261
|
+
static float ycbcrcoeffs[] = { 0.299f, 0.587f, 0.114f };
|
262
|
+
*va_arg(ap, float **) = ycbcrcoeffs;
|
263
|
+
return 1;
|
264
|
+
}
|
265
|
+
case TIFFTAG_YCBCRSUBSAMPLING:
|
266
|
+
*va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[0];
|
267
|
+
*va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[1];
|
268
|
+
return (1);
|
269
|
+
case TIFFTAG_YCBCRPOSITIONING:
|
270
|
+
*va_arg(ap, uint16 *) = td->td_ycbcrpositioning;
|
271
|
+
return (1);
|
272
|
+
case TIFFTAG_WHITEPOINT:
|
273
|
+
{
|
274
|
+
static float whitepoint[2];
|
275
|
+
|
276
|
+
/* TIFF 6.0 specification tells that it is no default
|
277
|
+
value for the WhitePoint, but AdobePhotoshop TIFF
|
278
|
+
Technical Note tells that it should be CIE D50. */
|
279
|
+
whitepoint[0] = D50_X0 / (D50_X0 + D50_Y0 + D50_Z0);
|
280
|
+
whitepoint[1] = D50_Y0 / (D50_X0 + D50_Y0 + D50_Z0);
|
281
|
+
*va_arg(ap, float **) = whitepoint;
|
282
|
+
return 1;
|
283
|
+
}
|
284
|
+
case TIFFTAG_TRANSFERFUNCTION:
|
285
|
+
if (!td->td_transferfunction[0] &&
|
286
|
+
!TIFFDefaultTransferFunction(td)) {
|
287
|
+
TIFFErrorExt(tif->tif_clientdata, tif->tif_name, "No space for \"TransferFunction\" tag");
|
288
|
+
return (0);
|
289
|
+
}
|
290
|
+
*va_arg(ap, uint16 **) = td->td_transferfunction[0];
|
291
|
+
if (td->td_samplesperpixel - td->td_extrasamples > 1) {
|
292
|
+
*va_arg(ap, uint16 **) = td->td_transferfunction[1];
|
293
|
+
*va_arg(ap, uint16 **) = td->td_transferfunction[2];
|
294
|
+
}
|
295
|
+
return (1);
|
296
|
+
case TIFFTAG_REFERENCEBLACKWHITE:
|
297
|
+
if (!td->td_refblackwhite && !TIFFDefaultRefBlackWhite(td))
|
298
|
+
return (0);
|
299
|
+
*va_arg(ap, float **) = td->td_refblackwhite;
|
300
|
+
return (1);
|
301
|
+
}
|
302
|
+
return 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
/*
|
306
|
+
* Like TIFFGetField, but return any default
|
307
|
+
* value if the tag is not present in the directory.
|
308
|
+
*/
|
309
|
+
int
|
310
|
+
TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...)
|
311
|
+
{
|
312
|
+
int ok;
|
313
|
+
va_list ap;
|
314
|
+
|
315
|
+
va_start(ap, tag);
|
316
|
+
ok = TIFFVGetFieldDefaulted(tif, tag, ap);
|
317
|
+
va_end(ap);
|
318
|
+
return (ok);
|
319
|
+
}
|
320
|
+
|
321
|
+
struct _Int64Parts {
|
322
|
+
int32 low, high;
|
323
|
+
};
|
324
|
+
|
325
|
+
typedef union {
|
326
|
+
struct _Int64Parts part;
|
327
|
+
int64 value;
|
328
|
+
} _Int64;
|
329
|
+
|
330
|
+
float
|
331
|
+
_TIFFUInt64ToFloat(uint64 ui64)
|
332
|
+
{
|
333
|
+
_Int64 i;
|
334
|
+
|
335
|
+
i.value = ui64;
|
336
|
+
if (i.part.high >= 0) {
|
337
|
+
return (float)i.value;
|
338
|
+
} else {
|
339
|
+
long double df;
|
340
|
+
df = (long double)i.value;
|
341
|
+
df += 18446744073709551616.0; /* adding 2**64 */
|
342
|
+
return (float)df;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
double
|
347
|
+
_TIFFUInt64ToDouble(uint64 ui64)
|
348
|
+
{
|
349
|
+
_Int64 i;
|
350
|
+
|
351
|
+
i.value = ui64;
|
352
|
+
if (i.part.high >= 0) {
|
353
|
+
return (double)i.value;
|
354
|
+
} else {
|
355
|
+
long double df;
|
356
|
+
df = (long double)i.value;
|
357
|
+
df += 18446744073709551616.0; /* adding 2**64 */
|
358
|
+
return (double)df;
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
int _TIFFSeekOK(TIFF* tif, toff_t off)
|
363
|
+
{
|
364
|
+
/* Huge offsets, especially -1 / UINT64_MAX, can cause issues */
|
365
|
+
/* See http://bugzilla.maptools.org/show_bug.cgi?id=2726 */
|
366
|
+
return off <= (~(uint64)0)/2 && TIFFSeekFile(tif,off,SEEK_SET)==off;
|
367
|
+
}
|
368
|
+
|
369
|
+
/* vim: set ts=8 sts=8 sw=8 noet: */
|
370
|
+
/*
|
371
|
+
* Local Variables:
|
372
|
+
* mode: c
|
373
|
+
* c-basic-offset: 8
|
374
|
+
* fill-column: 78
|
375
|
+
* End:
|
376
|
+
*/
|