JPEG: use optimized Huffman coding to reduce file size

git-svn-id: https://svn.osgeo.org/gdal/trunk@28207 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: for JPEG-compressed TIFF, use optimized Huffman coding by default

git-svn-id: https://svn.osgeo.org/gdal/trunk@28208 f0d54148-0727-0410-94bb-9a71ac55c965
Avoid crashes with some tests with libtiff 3.9.2

git-svn-id: https://svn.osgeo.org/gdal/trunk@28209 f0d54148-0727-0410-94bb-9a71ac55c965
Merge branch 'trunk' into trunk_travis_macosx