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,93 @@
|
|
1
|
+
.\" $Id: sgi2tiff.1,v 1.1 2016-06-05 19:53:59 bfriesen Exp $
|
2
|
+
.\"
|
3
|
+
.\" Copyright (c) 1991-1997 Sam Leffler
|
4
|
+
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
5
|
+
.\"
|
6
|
+
.\" Permission to use, copy, modify, distribute, and sell this software and
|
7
|
+
.\" its documentation for any purpose is hereby granted without fee, provided
|
8
|
+
.\" that (i) the above copyright notices and this permission notice appear in
|
9
|
+
.\" all copies of the software and related documentation, and (ii) the names of
|
10
|
+
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
11
|
+
.\" publicity relating to the software without the specific, prior written
|
12
|
+
.\" permission of Sam Leffler and Silicon Graphics.
|
13
|
+
.\"
|
14
|
+
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
16
|
+
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
17
|
+
.\"
|
18
|
+
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
19
|
+
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
20
|
+
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
21
|
+
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
22
|
+
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
23
|
+
.\" OF THIS SOFTWARE.
|
24
|
+
.\"
|
25
|
+
.if n .po 0
|
26
|
+
.TH SGI2TIFF 1 "November 2, 2005" "libtiff"
|
27
|
+
.SH NAME
|
28
|
+
sgi2tiff \- create a
|
29
|
+
.SM TIFF
|
30
|
+
file from an
|
31
|
+
.SM SGI
|
32
|
+
image file
|
33
|
+
.SH SYNOPSIS
|
34
|
+
.B sgi2tiff
|
35
|
+
[
|
36
|
+
.I options
|
37
|
+
]
|
38
|
+
.I input.rgb
|
39
|
+
.I output.tif
|
40
|
+
.SH DESCRIPTION
|
41
|
+
.I sgi2tiff
|
42
|
+
converts a file in the
|
43
|
+
.SM SGI
|
44
|
+
image format to
|
45
|
+
.SM TIFF.
|
46
|
+
By default, the
|
47
|
+
.SM TIFF
|
48
|
+
image is created with data samples packed (\c
|
49
|
+
.IR PlanarConfiguration =1),
|
50
|
+
compressed with the Lempel-Ziv & Welch algorithm (\c
|
51
|
+
.IR Compression =5),
|
52
|
+
and with each strip no more than 8 kilobytes.
|
53
|
+
These characteristics can overridden, or explicitly specified
|
54
|
+
with the options described below.
|
55
|
+
.SH OPTIONS
|
56
|
+
.TP
|
57
|
+
.B \-c
|
58
|
+
Specify a compression scheme to use when writing image data:
|
59
|
+
.B "\-c none"
|
60
|
+
for no compression,
|
61
|
+
.B "\-c packbits"
|
62
|
+
for the PackBits compression algorithm),
|
63
|
+
.B "\-c jpeg"
|
64
|
+
for the baseline JPEG compression algorithm,
|
65
|
+
.B "\-c zip
|
66
|
+
for the Deflate compression algorithm,
|
67
|
+
and
|
68
|
+
.B "\-c lzw"
|
69
|
+
for Lempel-Ziv & Welch (the default).
|
70
|
+
.TP
|
71
|
+
.B \-p
|
72
|
+
Explicitly select the planar configuration used in organizing
|
73
|
+
data samples in the output image:
|
74
|
+
.B "\-p contig"
|
75
|
+
for samples packed contiguously, and
|
76
|
+
.B "\-p separate"
|
77
|
+
for samples stored separately.
|
78
|
+
By default samples are packed.
|
79
|
+
.TP
|
80
|
+
.B \-r
|
81
|
+
Write data with a specified number of rows per strip;
|
82
|
+
by default the number of rows/strip is selected so that each strip
|
83
|
+
is approximately 8 kilobytes.
|
84
|
+
.SH BUGS
|
85
|
+
Does not record colormap information.
|
86
|
+
.SH "SEE ALSO"
|
87
|
+
.BR tiffinfo (1),
|
88
|
+
.BR tiffcp (1),
|
89
|
+
.BR tiffmedian (1),
|
90
|
+
.BR libtiff (3)
|
91
|
+
.PP
|
92
|
+
Libtiff library home page:
|
93
|
+
.BR http://www.remotesensing.org/libtiff/
|
@@ -0,0 +1,142 @@
|
|
1
|
+
.\" $Id: tiffsv.1,v 1.1 2016-06-05 19:53:59 bfriesen Exp $
|
2
|
+
.\"
|
3
|
+
.\" Copyright (c) 1988-1997 Sam Leffler
|
4
|
+
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
5
|
+
.\"
|
6
|
+
.\" Permission to use, copy, modify, distribute, and sell this software and
|
7
|
+
.\" its documentation for any purpose is hereby granted without fee, provided
|
8
|
+
.\" that (i) the above copyright notices and this permission notice appear in
|
9
|
+
.\" all copies of the software and related documentation, and (ii) the names of
|
10
|
+
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
11
|
+
.\" publicity relating to the software without the specific, prior written
|
12
|
+
.\" permission of Sam Leffler and Silicon Graphics.
|
13
|
+
.\"
|
14
|
+
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
16
|
+
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
17
|
+
.\"
|
18
|
+
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
19
|
+
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
20
|
+
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
21
|
+
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
22
|
+
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
23
|
+
.\" OF THIS SOFTWARE.
|
24
|
+
.\"
|
25
|
+
.if n .po 0
|
26
|
+
.TH TIFFSV 1 "September 20, 2005" "libtiff"
|
27
|
+
.SH NAME
|
28
|
+
tiffsv \- save an image from the framebuffer in a
|
29
|
+
.SM TIFF
|
30
|
+
file (Silicon Graphics version)
|
31
|
+
.SH SYNOPSIS
|
32
|
+
.B tiffsv
|
33
|
+
[
|
34
|
+
.I options
|
35
|
+
]
|
36
|
+
.I output.tif
|
37
|
+
[
|
38
|
+
.I "x1 x2 y1 y2"
|
39
|
+
]
|
40
|
+
.SH DESCRIPTION
|
41
|
+
.I tiffsv
|
42
|
+
saves all or part of the framebuffer in a file using the
|
43
|
+
Tag Image File Format, Revision 6.0.
|
44
|
+
By default, the image is saved with data samples packed (\c
|
45
|
+
.IR PlanarConfiguration =1),
|
46
|
+
compressed with the Lempel-Ziv & Welch algorithm (\c
|
47
|
+
.IR Compression =5),
|
48
|
+
and with each strip no more than 8 kilobytes.
|
49
|
+
These characteristics can be overridden, or explicitly specified
|
50
|
+
with the options described below.
|
51
|
+
.SH OPTIONS
|
52
|
+
.TP
|
53
|
+
.B \-b
|
54
|
+
Save the image as a greyscale image
|
55
|
+
as if it were processed by
|
56
|
+
.IR tiff2bw (1).
|
57
|
+
This option is included for compatibility with the standard
|
58
|
+
.IR scrsave (6D)
|
59
|
+
program.
|
60
|
+
.TP
|
61
|
+
.B \-c
|
62
|
+
Specify the compression to use for data written to the output file:
|
63
|
+
.B none
|
64
|
+
for no compression,
|
65
|
+
.B packbits
|
66
|
+
for PackBits compression,
|
67
|
+
.B jpeg
|
68
|
+
for baseline JPEG compression,
|
69
|
+
.B zip
|
70
|
+
for Deflate compression,
|
71
|
+
and
|
72
|
+
.B lzw
|
73
|
+
for Lempel-Ziv & Welch compression (default).
|
74
|
+
.IP
|
75
|
+
.SM LZW
|
76
|
+
compression can be specified together with a
|
77
|
+
.I predictor
|
78
|
+
value.
|
79
|
+
A predictor value of 2 causes
|
80
|
+
each scanline of the output image to undergo horizontal
|
81
|
+
differencing before it is encoded; a value
|
82
|
+
of 1 forces each scanline to be encoded without differencing.
|
83
|
+
LZW-specific options are specified by appending a ``:''-separated
|
84
|
+
list to the ``lzw'' option; e.g.
|
85
|
+
.B "\-c lzw:2"
|
86
|
+
for
|
87
|
+
.SM LZW
|
88
|
+
compression with horizontal differencing.
|
89
|
+
.TP
|
90
|
+
.B \-p
|
91
|
+
Specify the planar configuration to use in writing image data.
|
92
|
+
By default,
|
93
|
+
.I tiffsv
|
94
|
+
will create a new file with the data samples packed contiguously.
|
95
|
+
Specifying
|
96
|
+
.B "\-p contig"
|
97
|
+
will force data to be written with multi-sample data packed
|
98
|
+
together, while
|
99
|
+
.B "\-p separate"
|
100
|
+
will force samples to be written in separate planes.
|
101
|
+
.TP
|
102
|
+
.B \-r
|
103
|
+
Specify the number of rows (scanlines) in each strip of data
|
104
|
+
written to the output file.
|
105
|
+
By default,
|
106
|
+
.I tiffsv
|
107
|
+
attempts to set the rows/strip
|
108
|
+
that no more than 8 kilobytes of data appear in a strip.
|
109
|
+
.SH NOTE
|
110
|
+
Except for the use of
|
111
|
+
.SM TIFF,
|
112
|
+
this program is equivalent to the standard
|
113
|
+
.I scrsave
|
114
|
+
program.
|
115
|
+
This means, for example, that you can use it in conjunction with
|
116
|
+
the standard
|
117
|
+
.IR icut
|
118
|
+
program simply by creating a link called
|
119
|
+
.IR scrsave ,
|
120
|
+
or by creating a shell script called
|
121
|
+
.I scrsave
|
122
|
+
that invokes
|
123
|
+
.I tiffgt
|
124
|
+
with the appropriate options.
|
125
|
+
.SH BUGS
|
126
|
+
If data are saved compressed and in separate planes, then the
|
127
|
+
rows in each strip is silently set to one to avoid limitations
|
128
|
+
in the
|
129
|
+
.BR libtiff (3TIFF)
|
130
|
+
library.
|
131
|
+
.SH "SEE ALSO"
|
132
|
+
.BR scrsave (6D)
|
133
|
+
.BR pal2rgb (1),
|
134
|
+
.BR tiffdump (1),
|
135
|
+
.BR tiffgt (1),
|
136
|
+
.BR tiffinfo (1),
|
137
|
+
.BR tiffcp (1),
|
138
|
+
.BR tiffmedian (1),
|
139
|
+
.BR libtiff (3TIFF)
|
140
|
+
.PP
|
141
|
+
Libtiff library home page:
|
142
|
+
.BR http://www.remotesensing.org/libtiff/
|
@@ -0,0 +1,937 @@
|
|
1
|
+
/* $Id: bmp2tiff.c,v 1.1 2016-06-05 19:53:59 bfriesen Exp $
|
2
|
+
*
|
3
|
+
* Project: libtiff tools
|
4
|
+
* Purpose: Convert Windows BMP files in TIFF.
|
5
|
+
* Author: Andrey Kiselev, dron@ak4719.spb.edu
|
6
|
+
*
|
7
|
+
******************************************************************************
|
8
|
+
* Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
|
9
|
+
*
|
10
|
+
* Permission to use, copy, modify, distribute, and sell this software and
|
11
|
+
* its documentation for any purpose is hereby granted without fee, provided
|
12
|
+
* that (i) the above copyright notices and this permission notice appear in
|
13
|
+
* all copies of the software and related documentation, and (ii) the names of
|
14
|
+
* Sam Leffler and Silicon Graphics may not be used in any advertising or
|
15
|
+
* publicity relating to the software without the specific, prior written
|
16
|
+
* permission of Sam Leffler and Silicon Graphics.
|
17
|
+
*
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
20
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
21
|
+
*
|
22
|
+
* IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
23
|
+
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
24
|
+
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
25
|
+
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
26
|
+
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
27
|
+
* OF THIS SOFTWARE.
|
28
|
+
*/
|
29
|
+
|
30
|
+
#include "tif_config.h"
|
31
|
+
|
32
|
+
#include <stdio.h>
|
33
|
+
#include <stdlib.h>
|
34
|
+
#include <string.h>
|
35
|
+
#include <ctype.h>
|
36
|
+
#include <errno.h>
|
37
|
+
#include <sys/types.h>
|
38
|
+
#include <sys/stat.h>
|
39
|
+
|
40
|
+
#ifdef HAVE_UNISTD_H
|
41
|
+
# include <unistd.h>
|
42
|
+
#endif
|
43
|
+
|
44
|
+
#if HAVE_FCNTL_H
|
45
|
+
# include <fcntl.h>
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#if HAVE_SYS_TYPES_H
|
49
|
+
# include <sys/types.h>
|
50
|
+
#endif
|
51
|
+
|
52
|
+
#if HAVE_IO_H
|
53
|
+
# include <io.h>
|
54
|
+
#endif
|
55
|
+
|
56
|
+
#ifdef NEED_LIBPORT
|
57
|
+
# include "libport.h"
|
58
|
+
#endif
|
59
|
+
|
60
|
+
#include "tiffiop.h"
|
61
|
+
#include "tiffio.h"
|
62
|
+
|
63
|
+
#ifndef O_BINARY
|
64
|
+
# define O_BINARY 0
|
65
|
+
#endif
|
66
|
+
|
67
|
+
enum BMPType
|
68
|
+
{
|
69
|
+
BMPT_WIN4, /* BMP used in Windows 3.0/NT 3.51/95 */
|
70
|
+
BMPT_WIN5, /* BMP used in Windows NT 4.0/98/Me/2000/XP */
|
71
|
+
BMPT_OS21, /* BMP used in OS/2 PM 1.x */
|
72
|
+
BMPT_OS22 /* BMP used in OS/2 PM 2.x */
|
73
|
+
};
|
74
|
+
|
75
|
+
/*
|
76
|
+
* Bitmap file consists of a BMPFileHeader structure followed by a
|
77
|
+
* BMPInfoHeader structure. An array of BMPColorEntry structures (also called
|
78
|
+
* a colour table) follows the bitmap information header structure. The colour
|
79
|
+
* table is followed by a second array of indexes into the colour table (the
|
80
|
+
* actual bitmap data). Data may be comressed, for 4-bpp and 8-bpp used RLE
|
81
|
+
* compression.
|
82
|
+
*
|
83
|
+
* +---------------------+
|
84
|
+
* | BMPFileHeader |
|
85
|
+
* +---------------------+
|
86
|
+
* | BMPInfoHeader |
|
87
|
+
* +---------------------+
|
88
|
+
* | BMPColorEntry array |
|
89
|
+
* +---------------------+
|
90
|
+
* | Colour-index array |
|
91
|
+
* +---------------------+
|
92
|
+
*
|
93
|
+
* All numbers stored in Intel order with least significant byte first.
|
94
|
+
*/
|
95
|
+
|
96
|
+
enum BMPComprMethod
|
97
|
+
{
|
98
|
+
BMPC_RGB = 0L, /* Uncompressed */
|
99
|
+
BMPC_RLE8 = 1L, /* RLE for 8 bpp images */
|
100
|
+
BMPC_RLE4 = 2L, /* RLE for 4 bpp images */
|
101
|
+
BMPC_BITFIELDS = 3L, /* Bitmap is not compressed and the colour table
|
102
|
+
* consists of three DWORD color masks that specify
|
103
|
+
* the red, green, and blue components of each
|
104
|
+
* pixel. This is valid when used with
|
105
|
+
* 16- and 32-bpp bitmaps. */
|
106
|
+
BMPC_JPEG = 4L, /* Indicates that the image is a JPEG image. */
|
107
|
+
BMPC_PNG = 5L /* Indicates that the image is a PNG image. */
|
108
|
+
};
|
109
|
+
|
110
|
+
enum BMPLCSType /* Type of logical color space. */
|
111
|
+
{
|
112
|
+
BMPLT_CALIBRATED_RGB = 0, /* This value indicates that endpoints and
|
113
|
+
* gamma values are given in the appropriate
|
114
|
+
* fields. */
|
115
|
+
BMPLT_DEVICE_RGB = 1,
|
116
|
+
BMPLT_DEVICE_CMYK = 2
|
117
|
+
};
|
118
|
+
|
119
|
+
typedef struct
|
120
|
+
{
|
121
|
+
int32 iCIEX;
|
122
|
+
int32 iCIEY;
|
123
|
+
int32 iCIEZ;
|
124
|
+
} BMPCIEXYZ;
|
125
|
+
|
126
|
+
typedef struct /* This structure contains the x, y, and z */
|
127
|
+
{ /* coordinates of the three colors that */
|
128
|
+
/* correspond */
|
129
|
+
BMPCIEXYZ iCIERed; /* to the red, green, and blue endpoints for */
|
130
|
+
BMPCIEXYZ iCIEGreen; /* a specified logical color space. */
|
131
|
+
BMPCIEXYZ iCIEBlue;
|
132
|
+
} BMPCIEXYZTriple;
|
133
|
+
|
134
|
+
typedef struct
|
135
|
+
{
|
136
|
+
char bType[2]; /* Signature "BM" */
|
137
|
+
uint32 iSize; /* Size in bytes of the bitmap file. Should
|
138
|
+
* always be ignored while reading because
|
139
|
+
* of error in Windows 3.0 SDK's description
|
140
|
+
* of this field */
|
141
|
+
uint16 iReserved1; /* Reserved, set as 0 */
|
142
|
+
uint16 iReserved2; /* Reserved, set as 0 */
|
143
|
+
uint32 iOffBits; /* Offset of the image from file start in bytes */
|
144
|
+
} BMPFileHeader;
|
145
|
+
|
146
|
+
/* File header size in bytes: */
|
147
|
+
const int BFH_SIZE = 14;
|
148
|
+
|
149
|
+
typedef struct
|
150
|
+
{
|
151
|
+
uint32 iSize; /* Size of BMPInfoHeader structure in bytes.
|
152
|
+
* Should be used to determine start of the
|
153
|
+
* colour table */
|
154
|
+
int32 iWidth; /* Image width */
|
155
|
+
int32 iHeight; /* Image height. If positive, image has bottom
|
156
|
+
* left origin, if negative --- top left. */
|
157
|
+
int16 iPlanes; /* Number of image planes (must be set to 1) */
|
158
|
+
int16 iBitCount; /* Number of bits per pixel (1, 4, 8, 16, 24
|
159
|
+
* or 32). If 0 then the number of bits per
|
160
|
+
* pixel is specified or is implied by the
|
161
|
+
* JPEG or PNG format. */
|
162
|
+
uint32 iCompression; /* Compression method */
|
163
|
+
uint32 iSizeImage; /* Size of uncomressed image in bytes. May
|
164
|
+
* be 0 for BMPC_RGB bitmaps. If iCompression
|
165
|
+
* is BI_JPEG or BI_PNG, iSizeImage indicates
|
166
|
+
* the size of the JPEG or PNG image buffer. */
|
167
|
+
int32 iXPelsPerMeter; /* X resolution, pixels per meter (0 if not used) */
|
168
|
+
int32 iYPelsPerMeter; /* Y resolution, pixels per meter (0 if not used) */
|
169
|
+
uint32 iClrUsed; /* Size of colour table. If 0, iBitCount should
|
170
|
+
* be used to calculate this value
|
171
|
+
* (1<<iBitCount). This value should be
|
172
|
+
* unsigned for proper shifting. */
|
173
|
+
int32 iClrImportant; /* Number of important colours. If 0, all
|
174
|
+
* colours are required */
|
175
|
+
|
176
|
+
/*
|
177
|
+
* Fields above should be used for bitmaps, compatible with Windows NT 3.51
|
178
|
+
* and earlier. Windows 98/Me, Windows 2000/XP introduces additional fields:
|
179
|
+
*/
|
180
|
+
|
181
|
+
int32 iRedMask; /* Colour mask that specifies the red component
|
182
|
+
* of each pixel, valid only if iCompression
|
183
|
+
* is set to BI_BITFIELDS. */
|
184
|
+
int32 iGreenMask; /* The same for green component */
|
185
|
+
int32 iBlueMask; /* The same for blue component */
|
186
|
+
int32 iAlphaMask; /* Colour mask that specifies the alpha
|
187
|
+
* component of each pixel. */
|
188
|
+
uint32 iCSType; /* Colour space of the DIB. */
|
189
|
+
BMPCIEXYZTriple sEndpoints; /* This member is ignored unless the iCSType
|
190
|
+
* member specifies BMPLT_CALIBRATED_RGB. */
|
191
|
+
int32 iGammaRed; /* Toned response curve for red. This member
|
192
|
+
* is ignored unless color values are
|
193
|
+
* calibrated RGB values and iCSType is set to
|
194
|
+
* BMPLT_CALIBRATED_RGB. Specified
|
195
|
+
* in 16^16 format. */
|
196
|
+
int32 iGammaGreen; /* Toned response curve for green. */
|
197
|
+
int32 iGammaBlue; /* Toned response curve for blue. */
|
198
|
+
} BMPInfoHeader;
|
199
|
+
|
200
|
+
/*
|
201
|
+
* Info header size in bytes:
|
202
|
+
*/
|
203
|
+
const unsigned int BIH_WIN4SIZE = 40; /* for BMPT_WIN4 */
|
204
|
+
const unsigned int BIH_WIN5SIZE = 57; /* for BMPT_WIN5 */
|
205
|
+
const unsigned int BIH_OS21SIZE = 12; /* for BMPT_OS21 */
|
206
|
+
const unsigned int BIH_OS22SIZE = 64; /* for BMPT_OS22 */
|
207
|
+
|
208
|
+
/*
|
209
|
+
* We will use plain byte array instead of this structure, but declaration
|
210
|
+
* provided for reference
|
211
|
+
*/
|
212
|
+
typedef struct
|
213
|
+
{
|
214
|
+
char bBlue;
|
215
|
+
char bGreen;
|
216
|
+
char bRed;
|
217
|
+
char bReserved; /* Must be 0 */
|
218
|
+
} BMPColorEntry;
|
219
|
+
|
220
|
+
static uint16 compression = (uint16) -1;
|
221
|
+
static int jpegcolormode = JPEGCOLORMODE_RGB;
|
222
|
+
static int quality = 75; /* JPEG quality */
|
223
|
+
static uint16 predictor = 0;
|
224
|
+
|
225
|
+
static void usage(void);
|
226
|
+
static int processCompressOptions(char*);
|
227
|
+
static void rearrangePixels(char *, uint32, uint32);
|
228
|
+
|
229
|
+
int
|
230
|
+
main(int argc, char* argv[])
|
231
|
+
{
|
232
|
+
uint32 width, length;
|
233
|
+
uint16 nbands = 1; /* number of bands in input image */
|
234
|
+
uint16 depth = 8; /* bits per pixel in input image */
|
235
|
+
uint32 rowsperstrip = (uint32) -1;
|
236
|
+
uint16 photometric = PHOTOMETRIC_MINISBLACK;
|
237
|
+
int fd = 0;
|
238
|
+
_TIFF_stat_s instat;
|
239
|
+
char *outfilename = NULL, *infilename = NULL;
|
240
|
+
TIFF *out = NULL;
|
241
|
+
|
242
|
+
BMPFileHeader file_hdr;
|
243
|
+
BMPInfoHeader info_hdr;
|
244
|
+
int bmp_type;
|
245
|
+
uint32 clr_tbl_size, n_clr_elems = 3;
|
246
|
+
unsigned char *clr_tbl;
|
247
|
+
unsigned short *red_tbl = NULL, *green_tbl = NULL, *blue_tbl = NULL;
|
248
|
+
uint32 row, clr;
|
249
|
+
|
250
|
+
int c;
|
251
|
+
#if !HAVE_DECL_OPTARG
|
252
|
+
extern int optind;
|
253
|
+
extern char* optarg;
|
254
|
+
#endif
|
255
|
+
|
256
|
+
while ((c = getopt(argc, argv, "c:r:o:h")) != -1) {
|
257
|
+
switch (c) {
|
258
|
+
case 'c': /* compression scheme */
|
259
|
+
if (!processCompressOptions(optarg))
|
260
|
+
usage();
|
261
|
+
break;
|
262
|
+
case 'r': /* rows/strip */
|
263
|
+
rowsperstrip = atoi(optarg);
|
264
|
+
break;
|
265
|
+
case 'o':
|
266
|
+
outfilename = optarg;
|
267
|
+
break;
|
268
|
+
case 'h':
|
269
|
+
usage();
|
270
|
+
default:
|
271
|
+
break;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
if (argc - optind < 2)
|
276
|
+
usage();
|
277
|
+
|
278
|
+
if (outfilename == NULL)
|
279
|
+
outfilename = argv[argc-1];
|
280
|
+
out = TIFFOpen(outfilename, "w");
|
281
|
+
if (out == NULL) {
|
282
|
+
TIFFError(infilename, "Cannot open file %s for output",
|
283
|
+
outfilename);
|
284
|
+
goto bad3;
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
while (optind < argc-1) {
|
289
|
+
infilename = argv[optind];
|
290
|
+
optind++;
|
291
|
+
|
292
|
+
fd = open(infilename, O_RDONLY|O_BINARY, 0);
|
293
|
+
if (fd < 0) {
|
294
|
+
TIFFError(infilename, "Cannot open input file");
|
295
|
+
return -1;
|
296
|
+
}
|
297
|
+
|
298
|
+
if (read(fd, file_hdr.bType, 2) != 2) {
|
299
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
300
|
+
strerror(errno));
|
301
|
+
goto bad;
|
302
|
+
}
|
303
|
+
if(file_hdr.bType[0] != 'B' || file_hdr.bType[1] != 'M') {
|
304
|
+
TIFFError(infilename, "File is not BMP");
|
305
|
+
goto bad;
|
306
|
+
}
|
307
|
+
|
308
|
+
/* -------------------------------------------------------------------- */
|
309
|
+
/* Read the BMPFileHeader. We need iOffBits value only */
|
310
|
+
/* -------------------------------------------------------------------- */
|
311
|
+
if (_TIFF_lseek_f(fd, 10, SEEK_SET) == (_TIFF_off_t)-1) {
|
312
|
+
TIFFError(infilename, "Failed to seek to offset");
|
313
|
+
goto bad;
|
314
|
+
}
|
315
|
+
if (read(fd, &file_hdr.iOffBits, 4) != 4) {
|
316
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
317
|
+
strerror(errno));
|
318
|
+
goto bad;
|
319
|
+
}
|
320
|
+
#ifdef WORDS_BIGENDIAN
|
321
|
+
TIFFSwabLong(&file_hdr.iOffBits);
|
322
|
+
#endif
|
323
|
+
if (_TIFF_fstat_f(fd, &instat) == -1) {
|
324
|
+
TIFFError(infilename, "Failed obtain file information");
|
325
|
+
goto bad;
|
326
|
+
}
|
327
|
+
file_hdr.iSize = instat.st_size;
|
328
|
+
|
329
|
+
/* -------------------------------------------------------------------- */
|
330
|
+
/* Read the BMPInfoHeader. */
|
331
|
+
/* -------------------------------------------------------------------- */
|
332
|
+
|
333
|
+
if (_TIFF_lseek_f(fd, BFH_SIZE, SEEK_SET) == (_TIFF_off_t)-1) {
|
334
|
+
TIFFError(infilename, "Failed to seek to offset");
|
335
|
+
goto bad;
|
336
|
+
}
|
337
|
+
if (read(fd, &info_hdr.iSize, 4) != 4) {
|
338
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
339
|
+
strerror(errno));
|
340
|
+
goto bad;
|
341
|
+
}
|
342
|
+
#ifdef WORDS_BIGENDIAN
|
343
|
+
TIFFSwabLong(&info_hdr.iSize);
|
344
|
+
#endif
|
345
|
+
|
346
|
+
if (info_hdr.iSize == BIH_WIN4SIZE)
|
347
|
+
bmp_type = BMPT_WIN4;
|
348
|
+
else if (info_hdr.iSize == BIH_OS21SIZE)
|
349
|
+
bmp_type = BMPT_OS21;
|
350
|
+
else if (info_hdr.iSize == BIH_OS22SIZE
|
351
|
+
|| info_hdr.iSize == 16)
|
352
|
+
bmp_type = BMPT_OS22;
|
353
|
+
else
|
354
|
+
bmp_type = BMPT_WIN5;
|
355
|
+
|
356
|
+
if (bmp_type == BMPT_WIN4
|
357
|
+
|| bmp_type == BMPT_WIN5
|
358
|
+
|| bmp_type == BMPT_OS22) {
|
359
|
+
if ((read(fd, &info_hdr.iWidth, 4) != 4) ||
|
360
|
+
(read(fd, &info_hdr.iHeight, 4) != 4) ||
|
361
|
+
(read(fd, &info_hdr.iPlanes, 2) != 2) ||
|
362
|
+
(read(fd, &info_hdr.iBitCount, 2) != 2) ||
|
363
|
+
(read(fd, &info_hdr.iCompression, 4) != 4) ||
|
364
|
+
(read(fd, &info_hdr.iSizeImage, 4) != 4) ||
|
365
|
+
(read(fd, &info_hdr.iXPelsPerMeter, 4) != 4) ||
|
366
|
+
(read(fd, &info_hdr.iYPelsPerMeter, 4) != 4) ||
|
367
|
+
(read(fd, &info_hdr.iClrUsed, 4) != 4) ||
|
368
|
+
(read(fd, &info_hdr.iClrImportant, 4) != 4)) {
|
369
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
370
|
+
strerror(errno));
|
371
|
+
goto bad;
|
372
|
+
}
|
373
|
+
#ifdef WORDS_BIGENDIAN
|
374
|
+
TIFFSwabLong((uint32*) &info_hdr.iWidth);
|
375
|
+
TIFFSwabLong((uint32*) &info_hdr.iHeight);
|
376
|
+
TIFFSwabShort((uint16*) &info_hdr.iPlanes);
|
377
|
+
TIFFSwabShort((uint16*) &info_hdr.iBitCount);
|
378
|
+
TIFFSwabLong((uint32*) &info_hdr.iCompression);
|
379
|
+
TIFFSwabLong((uint32*) &info_hdr.iSizeImage);
|
380
|
+
TIFFSwabLong((uint32*) &info_hdr.iXPelsPerMeter);
|
381
|
+
TIFFSwabLong((uint32*) &info_hdr.iYPelsPerMeter);
|
382
|
+
TIFFSwabLong((uint32*) &info_hdr.iClrUsed);
|
383
|
+
TIFFSwabLong((uint32*) &info_hdr.iClrImportant);
|
384
|
+
#endif
|
385
|
+
n_clr_elems = 4;
|
386
|
+
}
|
387
|
+
|
388
|
+
if (bmp_type == BMPT_OS22) {
|
389
|
+
/*
|
390
|
+
* FIXME: different info in different documents
|
391
|
+
* regarding this!
|
392
|
+
*/
|
393
|
+
n_clr_elems = 3;
|
394
|
+
}
|
395
|
+
|
396
|
+
if (bmp_type == BMPT_OS21) {
|
397
|
+
int16 iShort;
|
398
|
+
|
399
|
+
if ( read(fd, &iShort, 2) != 2 ) {
|
400
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
401
|
+
strerror(errno));
|
402
|
+
goto bad;
|
403
|
+
}
|
404
|
+
#ifdef WORDS_BIGENDIAN
|
405
|
+
TIFFSwabShort((uint16*) &iShort);
|
406
|
+
#endif
|
407
|
+
info_hdr.iWidth = iShort;
|
408
|
+
if ( read(fd, &iShort, 2) != 2 ) {
|
409
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
410
|
+
strerror(errno));
|
411
|
+
goto bad;
|
412
|
+
}
|
413
|
+
#ifdef WORDS_BIGENDIAN
|
414
|
+
TIFFSwabShort((uint16*) &iShort);
|
415
|
+
#endif
|
416
|
+
info_hdr.iHeight = iShort;
|
417
|
+
if (read(fd, &iShort, 2) != 2 ) {
|
418
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
419
|
+
strerror(errno));
|
420
|
+
goto bad;
|
421
|
+
}
|
422
|
+
#ifdef WORDS_BIGENDIAN
|
423
|
+
TIFFSwabShort((uint16*) &iShort);
|
424
|
+
#endif
|
425
|
+
info_hdr.iPlanes = iShort;
|
426
|
+
if ( read(fd, &iShort, 2) != 2 ) {
|
427
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
428
|
+
strerror(errno));
|
429
|
+
goto bad;
|
430
|
+
}
|
431
|
+
#ifdef WORDS_BIGENDIAN
|
432
|
+
TIFFSwabShort((uint16*) &iShort);
|
433
|
+
#endif
|
434
|
+
info_hdr.iBitCount = iShort;
|
435
|
+
info_hdr.iCompression = BMPC_RGB;
|
436
|
+
n_clr_elems = 3;
|
437
|
+
}
|
438
|
+
|
439
|
+
if (info_hdr.iBitCount != 1 && info_hdr.iBitCount != 4 &&
|
440
|
+
info_hdr.iBitCount != 8 && info_hdr.iBitCount != 16 &&
|
441
|
+
info_hdr.iBitCount != 24 && info_hdr.iBitCount != 32) {
|
442
|
+
TIFFError(infilename,
|
443
|
+
"Cannot process BMP file with bit count %d",
|
444
|
+
info_hdr.iBitCount);
|
445
|
+
close(fd);
|
446
|
+
return 0;
|
447
|
+
}
|
448
|
+
|
449
|
+
width = info_hdr.iWidth;
|
450
|
+
length = (info_hdr.iHeight > 0) ? info_hdr.iHeight : -info_hdr.iHeight;
|
451
|
+
if( width <= 0 || length <= 0 )
|
452
|
+
{
|
453
|
+
TIFFError(infilename,
|
454
|
+
"Invalid dimensions of BMP file" );
|
455
|
+
close(fd);
|
456
|
+
return -1;
|
457
|
+
}
|
458
|
+
|
459
|
+
switch (info_hdr.iBitCount)
|
460
|
+
{
|
461
|
+
case 1:
|
462
|
+
case 4:
|
463
|
+
case 8:
|
464
|
+
nbands = 1;
|
465
|
+
depth = info_hdr.iBitCount;
|
466
|
+
photometric = PHOTOMETRIC_PALETTE;
|
467
|
+
/* Allocate memory for colour table and read it. */
|
468
|
+
if (info_hdr.iClrUsed)
|
469
|
+
clr_tbl_size =
|
470
|
+
((uint32)(1<<depth)<info_hdr.iClrUsed)
|
471
|
+
? (uint32) (1 << depth)
|
472
|
+
: info_hdr.iClrUsed;
|
473
|
+
else
|
474
|
+
clr_tbl_size = 1 << depth;
|
475
|
+
clr_tbl = (unsigned char *)
|
476
|
+
_TIFFmalloc(n_clr_elems * clr_tbl_size);
|
477
|
+
if (!clr_tbl) {
|
478
|
+
TIFFError(infilename,
|
479
|
+
"Can't allocate space for color table");
|
480
|
+
goto bad;
|
481
|
+
}
|
482
|
+
|
483
|
+
if (_TIFF_lseek_f(fd, BFH_SIZE + info_hdr.iSize, SEEK_SET) == (_TIFF_off_t)-1) {
|
484
|
+
TIFFError(infilename, "Failed to seek to offset");
|
485
|
+
goto bad;
|
486
|
+
}
|
487
|
+
if ( read(fd, clr_tbl, n_clr_elems * clr_tbl_size)
|
488
|
+
!= (long) (n_clr_elems * clr_tbl_size) ) {
|
489
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
490
|
+
strerror(errno));
|
491
|
+
goto bad;
|
492
|
+
}
|
493
|
+
|
494
|
+
red_tbl = (unsigned short*)
|
495
|
+
_TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short));
|
496
|
+
if (!red_tbl) {
|
497
|
+
TIFFError(infilename,
|
498
|
+
"Can't allocate space for red component table");
|
499
|
+
_TIFFfree(clr_tbl);
|
500
|
+
goto bad1;
|
501
|
+
}
|
502
|
+
green_tbl = (unsigned short*)
|
503
|
+
_TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short));
|
504
|
+
if (!green_tbl) {
|
505
|
+
TIFFError(infilename,
|
506
|
+
"Can't allocate space for green component table");
|
507
|
+
_TIFFfree(clr_tbl);
|
508
|
+
goto bad2;
|
509
|
+
}
|
510
|
+
blue_tbl = (unsigned short*)
|
511
|
+
_TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short));
|
512
|
+
if (!blue_tbl) {
|
513
|
+
TIFFError(infilename,
|
514
|
+
"Can't allocate space for blue component table");
|
515
|
+
_TIFFfree(clr_tbl);
|
516
|
+
goto bad3;
|
517
|
+
}
|
518
|
+
|
519
|
+
for(clr = 0; clr < clr_tbl_size; clr++) {
|
520
|
+
red_tbl[clr] = 257*clr_tbl[clr*n_clr_elems+2];
|
521
|
+
green_tbl[clr] = 257*clr_tbl[clr*n_clr_elems+1];
|
522
|
+
blue_tbl[clr] = 257*clr_tbl[clr*n_clr_elems];
|
523
|
+
}
|
524
|
+
|
525
|
+
_TIFFfree(clr_tbl);
|
526
|
+
break;
|
527
|
+
case 16:
|
528
|
+
case 24:
|
529
|
+
nbands = 3;
|
530
|
+
depth = info_hdr.iBitCount / nbands;
|
531
|
+
photometric = PHOTOMETRIC_RGB;
|
532
|
+
break;
|
533
|
+
case 32:
|
534
|
+
nbands = 3;
|
535
|
+
depth = 8;
|
536
|
+
photometric = PHOTOMETRIC_RGB;
|
537
|
+
break;
|
538
|
+
default:
|
539
|
+
break;
|
540
|
+
}
|
541
|
+
|
542
|
+
/* -------------------------------------------------------------------- */
|
543
|
+
/* Create output file. */
|
544
|
+
/* -------------------------------------------------------------------- */
|
545
|
+
|
546
|
+
TIFFSetField(out, TIFFTAG_IMAGEWIDTH, width);
|
547
|
+
TIFFSetField(out, TIFFTAG_IMAGELENGTH, length);
|
548
|
+
TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
|
549
|
+
TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, nbands);
|
550
|
+
TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, depth);
|
551
|
+
TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
|
552
|
+
TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric);
|
553
|
+
TIFFSetField(out, TIFFTAG_ROWSPERSTRIP,
|
554
|
+
TIFFDefaultStripSize(out, rowsperstrip));
|
555
|
+
|
556
|
+
if (red_tbl && green_tbl && blue_tbl) {
|
557
|
+
TIFFSetField(out, TIFFTAG_COLORMAP,
|
558
|
+
red_tbl, green_tbl, blue_tbl);
|
559
|
+
}
|
560
|
+
|
561
|
+
if (compression == (uint16) -1)
|
562
|
+
compression = COMPRESSION_PACKBITS;
|
563
|
+
TIFFSetField(out, TIFFTAG_COMPRESSION, compression);
|
564
|
+
switch (compression) {
|
565
|
+
case COMPRESSION_JPEG:
|
566
|
+
if (photometric == PHOTOMETRIC_RGB
|
567
|
+
&& jpegcolormode == JPEGCOLORMODE_RGB)
|
568
|
+
photometric = PHOTOMETRIC_YCBCR;
|
569
|
+
TIFFSetField(out, TIFFTAG_JPEGQUALITY, quality);
|
570
|
+
TIFFSetField(out, TIFFTAG_JPEGCOLORMODE, jpegcolormode);
|
571
|
+
break;
|
572
|
+
case COMPRESSION_LZW:
|
573
|
+
case COMPRESSION_DEFLATE:
|
574
|
+
if (predictor != 0)
|
575
|
+
TIFFSetField(out, TIFFTAG_PREDICTOR, predictor);
|
576
|
+
break;
|
577
|
+
}
|
578
|
+
|
579
|
+
/* -------------------------------------------------------------------- */
|
580
|
+
/* Read uncompressed image data. */
|
581
|
+
/* -------------------------------------------------------------------- */
|
582
|
+
|
583
|
+
if (info_hdr.iCompression == BMPC_RGB) {
|
584
|
+
uint32 offset, size;
|
585
|
+
char *scanbuf;
|
586
|
+
|
587
|
+
/* XXX: Avoid integer overflow. We can calculate size
|
588
|
+
* in one step using
|
589
|
+
*
|
590
|
+
* size = ((width * info_hdr.iBitCount + 31) & ~31) / 8
|
591
|
+
*
|
592
|
+
* formulae, but we should check for overflow
|
593
|
+
* conditions during calculation.
|
594
|
+
*/
|
595
|
+
size = width * info_hdr.iBitCount + 31;
|
596
|
+
if (!width || !info_hdr.iBitCount
|
597
|
+
|| (size - 31) / info_hdr.iBitCount != width ) {
|
598
|
+
TIFFError(infilename,
|
599
|
+
"Wrong image parameters; can't "
|
600
|
+
"allocate space for scanline buffer");
|
601
|
+
goto bad3;
|
602
|
+
}
|
603
|
+
size = (size & ~31) / 8;
|
604
|
+
|
605
|
+
scanbuf = (char *) _TIFFmalloc(size);
|
606
|
+
if (!scanbuf) {
|
607
|
+
TIFFError(infilename,
|
608
|
+
"Can't allocate space for scanline buffer");
|
609
|
+
goto bad3;
|
610
|
+
}
|
611
|
+
|
612
|
+
for (row = 0; row < length; row++) {
|
613
|
+
if (info_hdr.iHeight > 0)
|
614
|
+
offset = file_hdr.iOffBits+(length-row-1)*size;
|
615
|
+
else
|
616
|
+
offset = file_hdr.iOffBits + row * size;
|
617
|
+
if (_TIFF_lseek_f(fd, offset, SEEK_SET) == (_TIFF_off_t)-1) {
|
618
|
+
TIFFError(infilename,
|
619
|
+
"scanline %lu: Seek error",
|
620
|
+
(unsigned long) row);
|
621
|
+
break;
|
622
|
+
}
|
623
|
+
|
624
|
+
if (read(fd, scanbuf, size) != (long) size) {
|
625
|
+
TIFFError(infilename,
|
626
|
+
"scanline %lu: Read error",
|
627
|
+
(unsigned long) row);
|
628
|
+
break;
|
629
|
+
}
|
630
|
+
|
631
|
+
rearrangePixels(scanbuf, width, info_hdr.iBitCount);
|
632
|
+
|
633
|
+
if (TIFFWriteScanline(out, scanbuf, row, 0)<0) {
|
634
|
+
TIFFError(infilename,
|
635
|
+
"scanline %lu: Write error",
|
636
|
+
(unsigned long) row);
|
637
|
+
break;
|
638
|
+
}
|
639
|
+
}
|
640
|
+
|
641
|
+
_TIFFfree(scanbuf);
|
642
|
+
|
643
|
+
/* -------------------------------------------------------------------- */
|
644
|
+
/* Read compressed image data. */
|
645
|
+
/* -------------------------------------------------------------------- */
|
646
|
+
|
647
|
+
} else if ( info_hdr.iCompression == BMPC_RLE8
|
648
|
+
|| info_hdr.iCompression == BMPC_RLE4 ) {
|
649
|
+
uint32 i, j, k, runlength;
|
650
|
+
uint32 compr_size, uncompr_size;
|
651
|
+
unsigned char *comprbuf;
|
652
|
+
unsigned char *uncomprbuf;
|
653
|
+
|
654
|
+
compr_size = file_hdr.iSize - file_hdr.iOffBits;
|
655
|
+
uncompr_size = width * length;
|
656
|
+
/* Detect int overflow */
|
657
|
+
if( uncompr_size / width != length ) {
|
658
|
+
TIFFError(infilename,
|
659
|
+
"Invalid dimensions of BMP file" );
|
660
|
+
close(fd);
|
661
|
+
return -1;
|
662
|
+
}
|
663
|
+
if ( (compr_size == 0) ||
|
664
|
+
(compr_size > ((uint32) ~0) >> 1) ||
|
665
|
+
(uncompr_size == 0) ||
|
666
|
+
(uncompr_size > ((uint32) ~0) >> 1) ) {
|
667
|
+
TIFFError(infilename,
|
668
|
+
"Invalid dimensions of BMP file" );
|
669
|
+
close(fd);
|
670
|
+
return -1;
|
671
|
+
}
|
672
|
+
comprbuf = (unsigned char *) _TIFFmalloc( compr_size );
|
673
|
+
if (!comprbuf) {
|
674
|
+
TIFFError(infilename,
|
675
|
+
"Can't allocate space for compressed scanline buffer");
|
676
|
+
goto bad3;
|
677
|
+
}
|
678
|
+
uncomprbuf = (unsigned char *)_TIFFmalloc(uncompr_size);
|
679
|
+
if (!uncomprbuf) {
|
680
|
+
TIFFError(infilename,
|
681
|
+
"Can't allocate space for uncompressed scanline buffer");
|
682
|
+
goto bad3;
|
683
|
+
}
|
684
|
+
|
685
|
+
if (_TIFF_lseek_f(fd, file_hdr.iOffBits, SEEK_SET) == (_TIFF_off_t)-1) {
|
686
|
+
TIFFError(infilename, "Failed to seek to offset");
|
687
|
+
goto bad3;
|
688
|
+
}
|
689
|
+
if ( read(fd, comprbuf, compr_size) != (long) compr_size ) {
|
690
|
+
TIFFError(infilename, "Failed to read from file (%s)",
|
691
|
+
strerror(errno));
|
692
|
+
goto bad;
|
693
|
+
}
|
694
|
+
i = 0;
|
695
|
+
j = 0;
|
696
|
+
if (info_hdr.iBitCount == 8) { /* RLE8 */
|
697
|
+
while(j < uncompr_size && i < compr_size) {
|
698
|
+
if ( comprbuf[i] ) {
|
699
|
+
runlength = comprbuf[i++];
|
700
|
+
while( runlength > 0
|
701
|
+
&& j < uncompr_size
|
702
|
+
&& i < compr_size ) {
|
703
|
+
uncomprbuf[j++] = comprbuf[i];
|
704
|
+
runlength--;
|
705
|
+
}
|
706
|
+
i++;
|
707
|
+
} else {
|
708
|
+
i++;
|
709
|
+
if (comprbuf[i] == 0) /* Next scanline */
|
710
|
+
i++;
|
711
|
+
else if (comprbuf[i] == 1) /* End of image */
|
712
|
+
break;
|
713
|
+
else if (comprbuf[i] == 2) { /* Move to... */
|
714
|
+
i++;
|
715
|
+
if (i < compr_size - 1) {
|
716
|
+
j+=comprbuf[i]+comprbuf[i+1]*width;
|
717
|
+
i += 2;
|
718
|
+
}
|
719
|
+
else
|
720
|
+
break;
|
721
|
+
} else { /* Absolute mode */
|
722
|
+
runlength = comprbuf[i++];
|
723
|
+
for (k = 0; k < runlength && j < uncompr_size && i < compr_size; k++)
|
724
|
+
uncomprbuf[j++] = comprbuf[i++];
|
725
|
+
if ( k & 0x01 )
|
726
|
+
i++;
|
727
|
+
}
|
728
|
+
}
|
729
|
+
}
|
730
|
+
}
|
731
|
+
else { /* RLE4 */
|
732
|
+
while( j < uncompr_size && i < compr_size ) {
|
733
|
+
if ( comprbuf[i] ) {
|
734
|
+
runlength = comprbuf[i++];
|
735
|
+
while( runlength > 0 && j < uncompr_size && i < compr_size ) {
|
736
|
+
if ( runlength & 0x01 )
|
737
|
+
uncomprbuf[j++] = (comprbuf[i] & 0xF0) >> 4;
|
738
|
+
else
|
739
|
+
uncomprbuf[j++] = comprbuf[i] & 0x0F;
|
740
|
+
runlength--;
|
741
|
+
}
|
742
|
+
i++;
|
743
|
+
} else {
|
744
|
+
i++;
|
745
|
+
if (comprbuf[i] == 0) /* Next scanline */
|
746
|
+
i++;
|
747
|
+
else if (comprbuf[i] == 1) /* End of image */
|
748
|
+
break;
|
749
|
+
else if (comprbuf[i] == 2) { /* Move to... */
|
750
|
+
i++;
|
751
|
+
if (i < compr_size - 1) {
|
752
|
+
j+=comprbuf[i]+comprbuf[i+1]*width;
|
753
|
+
i += 2;
|
754
|
+
}
|
755
|
+
else
|
756
|
+
break;
|
757
|
+
} else { /* Absolute mode */
|
758
|
+
runlength = comprbuf[i++];
|
759
|
+
for (k = 0; k < runlength && j < uncompr_size && i < compr_size; k++) {
|
760
|
+
if (k & 0x01)
|
761
|
+
uncomprbuf[j++] = comprbuf[i++] & 0x0F;
|
762
|
+
else
|
763
|
+
uncomprbuf[j++] = (comprbuf[i] & 0xF0) >> 4;
|
764
|
+
}
|
765
|
+
if (k & 0x01)
|
766
|
+
i++;
|
767
|
+
}
|
768
|
+
}
|
769
|
+
}
|
770
|
+
}
|
771
|
+
|
772
|
+
_TIFFfree(comprbuf);
|
773
|
+
|
774
|
+
for (row = 0; row < length; row++) {
|
775
|
+
if (TIFFWriteScanline(out,
|
776
|
+
uncomprbuf + (length - row - 1) * width,
|
777
|
+
row, 0) < 0) {
|
778
|
+
TIFFError(infilename,
|
779
|
+
"scanline %lu: Write error.\n",
|
780
|
+
(unsigned long) row);
|
781
|
+
}
|
782
|
+
}
|
783
|
+
|
784
|
+
_TIFFfree(uncomprbuf);
|
785
|
+
}
|
786
|
+
TIFFWriteDirectory(out);
|
787
|
+
if (blue_tbl) {
|
788
|
+
_TIFFfree(blue_tbl);
|
789
|
+
blue_tbl=NULL;
|
790
|
+
}
|
791
|
+
if (green_tbl) {
|
792
|
+
_TIFFfree(green_tbl);
|
793
|
+
green_tbl=NULL;
|
794
|
+
}
|
795
|
+
if (red_tbl) {
|
796
|
+
_TIFFfree(red_tbl);
|
797
|
+
red_tbl=NULL;
|
798
|
+
}
|
799
|
+
}
|
800
|
+
|
801
|
+
bad3:
|
802
|
+
if (blue_tbl)
|
803
|
+
_TIFFfree(blue_tbl);
|
804
|
+
bad2:
|
805
|
+
if (green_tbl)
|
806
|
+
_TIFFfree(green_tbl);
|
807
|
+
bad1:
|
808
|
+
if (red_tbl)
|
809
|
+
_TIFFfree(red_tbl);
|
810
|
+
bad:
|
811
|
+
close(fd);
|
812
|
+
|
813
|
+
if (out)
|
814
|
+
TIFFClose(out);
|
815
|
+
return 0;
|
816
|
+
}
|
817
|
+
|
818
|
+
/*
|
819
|
+
* Image data in BMP file stored in BGR (or ABGR) format. We should rearrange
|
820
|
+
* pixels to RGB (RGBA) format.
|
821
|
+
*/
|
822
|
+
static void
|
823
|
+
rearrangePixels(char *buf, uint32 width, uint32 bit_count)
|
824
|
+
{
|
825
|
+
char tmp;
|
826
|
+
uint32 i;
|
827
|
+
|
828
|
+
switch(bit_count) {
|
829
|
+
case 16: /* FIXME: need a sample file */
|
830
|
+
break;
|
831
|
+
case 24:
|
832
|
+
for (i = 0; i < width; i++, buf += 3) {
|
833
|
+
tmp = *buf;
|
834
|
+
*buf = *(buf + 2);
|
835
|
+
*(buf + 2) = tmp;
|
836
|
+
}
|
837
|
+
break;
|
838
|
+
case 32:
|
839
|
+
{
|
840
|
+
char *buf1 = buf;
|
841
|
+
|
842
|
+
for (i = 0; i < width; i++, buf += 4) {
|
843
|
+
tmp = *buf;
|
844
|
+
*buf1++ = *(buf + 2);
|
845
|
+
*buf1++ = *(buf + 1);
|
846
|
+
*buf1++ = tmp;
|
847
|
+
}
|
848
|
+
}
|
849
|
+
break;
|
850
|
+
default:
|
851
|
+
break;
|
852
|
+
}
|
853
|
+
}
|
854
|
+
|
855
|
+
static int
|
856
|
+
processCompressOptions(char* opt)
|
857
|
+
{
|
858
|
+
if (strcmp(opt, "none") == 0)
|
859
|
+
compression = COMPRESSION_NONE;
|
860
|
+
else if (strcmp(opt, "packbits") == 0)
|
861
|
+
compression = COMPRESSION_PACKBITS;
|
862
|
+
else if (strncmp(opt, "jpeg", 4) == 0) {
|
863
|
+
char* cp = strchr(opt, ':');
|
864
|
+
|
865
|
+
compression = COMPRESSION_JPEG;
|
866
|
+
while( cp )
|
867
|
+
{
|
868
|
+
if (isdigit((int)cp[1]))
|
869
|
+
quality = atoi(cp+1);
|
870
|
+
else if (cp[1] == 'r' )
|
871
|
+
jpegcolormode = JPEGCOLORMODE_RAW;
|
872
|
+
else
|
873
|
+
usage();
|
874
|
+
|
875
|
+
cp = strchr(cp+1,':');
|
876
|
+
}
|
877
|
+
} else if (strncmp(opt, "lzw", 3) == 0) {
|
878
|
+
char* cp = strchr(opt, ':');
|
879
|
+
if (cp)
|
880
|
+
predictor = atoi(cp+1);
|
881
|
+
compression = COMPRESSION_LZW;
|
882
|
+
} else if (strncmp(opt, "zip", 3) == 0) {
|
883
|
+
char* cp = strchr(opt, ':');
|
884
|
+
if (cp)
|
885
|
+
predictor = atoi(cp+1);
|
886
|
+
compression = COMPRESSION_DEFLATE;
|
887
|
+
} else
|
888
|
+
return (0);
|
889
|
+
return (1);
|
890
|
+
}
|
891
|
+
|
892
|
+
static char* stuff[] = {
|
893
|
+
"bmp2tiff --- convert Windows BMP files to TIFF",
|
894
|
+
"usage: bmp2tiff [options] input.bmp [input2.bmp ...] output.tif",
|
895
|
+
"where options are:",
|
896
|
+
" -r # make each strip have no more than # rows",
|
897
|
+
"",
|
898
|
+
" -c lzw[:opts] compress output with Lempel-Ziv & Welch encoding",
|
899
|
+
" -c zip[:opts] compress output with deflate encoding",
|
900
|
+
" -c jpeg[:opts]compress output with JPEG encoding",
|
901
|
+
" -c packbits compress output with packbits encoding",
|
902
|
+
" -c none use no compression algorithm on output",
|
903
|
+
"",
|
904
|
+
"JPEG options:",
|
905
|
+
" # set compression quality level (0-100, default 75)",
|
906
|
+
" r output color image as RGB rather than YCbCr",
|
907
|
+
"For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality",
|
908
|
+
"",
|
909
|
+
"LZW and deflate options:",
|
910
|
+
" # set predictor value",
|
911
|
+
"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing",
|
912
|
+
" -o out.tif write output to out.tif",
|
913
|
+
" -h this help message",
|
914
|
+
NULL
|
915
|
+
};
|
916
|
+
|
917
|
+
static void
|
918
|
+
usage(void)
|
919
|
+
{
|
920
|
+
char buf[BUFSIZ];
|
921
|
+
int i;
|
922
|
+
|
923
|
+
setbuf(stderr, buf);
|
924
|
+
fprintf(stderr, "%s\n\n", TIFFGetVersion());
|
925
|
+
for (i = 0; stuff[i] != NULL; i++)
|
926
|
+
fprintf(stderr, "%s\n", stuff[i]);
|
927
|
+
exit(-1);
|
928
|
+
}
|
929
|
+
|
930
|
+
/* vim: set ts=8 sts=8 sw=8 noet: */
|
931
|
+
/*
|
932
|
+
* Local Variables:
|
933
|
+
* mode: c
|
934
|
+
* c-basic-offset: 8
|
935
|
+
* fill-column: 78
|
936
|
+
* End:
|
937
|
+
*/
|