internal libtiff: refresh from upstream (Extra caution around assumption tag fetching is always successful; Extra caution for case where sp is NULL in tif_jpeg)

git-svn-id: https://svn.osgeo.org/gdal/trunk@23899 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: make GTIFF_DIRECT_IO also work with multiband images (still only stripped mode)

git-svn-id: https://svn.osgeo.org/gdal/trunk@23910 f0d54148-0727-0410-94bb-9a71ac55c965
update comment

git-svn-id: https://svn.osgeo.org/gdal/trunk@23911 f0d54148-0727-0410-94bb-9a71ac55c965
Restrict DirectIO() to usual photometric interpretations

git-svn-id: https://svn.osgeo.org/gdal/trunk@23912 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: set color interpretation to GCI_PaletteIndex after calling SetColorTable() (#4547)

git-svn-id: https://svn.osgeo.org/gdal/trunk@24075 f0d54148-0727-0410-94bb-9a71ac55c965
internal libtiff: upgrade to latest CVS HEAD (in particular, fixes zdi-can-1221,CVE-2012-1173)

git-svn-id: https://svn.osgeo.org/gdal/trunk@24201 f0d54148-0727-0410-94bb-9a71ac55c965
Conversion for 8-bit unpacked CMYK (PHOTOMETRIC_SEPARATED) to RGBA.

git-svn-id: https://svn.osgeo.org/gdal/trunk@24250 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: when CreateCopy'ing() from a JPEG dataset, and asking for COMPRESS=JPEG, use DCT coefficients (unless other options are incompatible, like strip/tile dimensions, specifying JPEG_QUALITY option, incompatible PHOTOMETRIC with the source colorspace, etc...) to avoid the lossy steps involved by uncompression/recompression

git-svn-id: https://svn.osgeo.org/gdal/trunk@24269 f0d54148-0727-0410-94bb-9a71ac55c965

Conflicts:
	autotest/gcore/tiff_write.py
	gdal/frmts/gtiff/geotiff.cpp
Optimized jpeg->jpeg-in-tiff copy: ensure libjpeg won't write any extraneous markers

git-svn-id: https://svn.osgeo.org/gdal/trunk@24272 f0d54148-0727-0410-94bb-9a71ac55c965
Optimized jpeg->jpeg-in-tiff copy: write TIFFTAG_JPEGTABLES (and TIFFTAG_REFERENCEBLACKWHITE if necessary) before directory freezing; make sure that JPEG tables are not written in each tile/strip

git-svn-id: https://svn.osgeo.org/gdal/trunk@24274 f0d54148-0727-0410-94bb-9a71ac55c965
Optimized jpeg->jpeg-in-tiff copy: small enhancement when running against libtiff 3.9

git-svn-id: https://svn.osgeo.org/gdal/trunk@24275 f0d54148-0727-0410-94bb-9a71ac55c965
Renaming of internal libgeotiff should be independant on whether we use internal or external libtiff

git-svn-id: https://svn.osgeo.org/gdal/trunk@24276 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: fix compilation of gt_jpeg_copy.cpp if JPEG driver isn't compiled

git-svn-id: https://svn.osgeo.org/gdal/trunk@24277 f0d54148-0727-0410-94bb-9a71ac55c965
Direct JPEG to JPEG-in-TIFF: write TIFFTAG_YCBCRSUBSAMPLING tag

git-svn-id: https://svn.osgeo.org/gdal/trunk@24336 f0d54148-0727-0410-94bb-9a71ac55c965
Direct JPEG to JPEG-in-TIFF: write TIFFTAG_YCBCRSUBSAMPLING tag, only for YCbCr color space

git-svn-id: https://svn.osgeo.org/gdal/trunk@24337 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: avoid a DoS on huge one-strip TIFF files

git-svn-id: https://svn.osgeo.org/gdal/trunk@24391 f0d54148-0727-0410-94bb-9a71ac55c965

Conflicts:
	autotest/gcore/tiff_read.py
Add DIV_ROUND_UP() macro to compute typically a number of blocks, etc... without risk of int overflow

git-svn-id: https://svn.osgeo.org/gdal/trunk@24392 f0d54148-0727-0410-94bb-9a71ac55c965
refresh from upstream, gets CT_HotineObliqueMercatorAzimuthCenter

git-svn-id: https://svn.osgeo.org/gdal/trunk@24400 f0d54148-0727-0410-94bb-9a71ac55c965
add hotineobliquemercatorazimuthcenter support

git-svn-id: https://svn.osgeo.org/gdal/trunk@24401 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: more verbose error message in case of write I/O error

git-svn-id: https://svn.osgeo.org/gdal/trunk@24411 f0d54148-0727-0410-94bb-9a71ac55c965