Debian Codegraph @

doc/releases/v4.1.0.rst

raw
1 Changes in TIFF v4.1.0
2 ======================
3
4 .. table:: References
5 :widths: auto
6
7 ====================== ==========================================
8 Current Version v4.1.0 (:tag:`v4.1.0`)
9 Previous Version :doc:`v4.0.10 <v4.0.10>`
10 Master Download Site `<https://download.osgeo.org/libtiff/>`_
11 Master HTTP Site #1 `<http://www.simplesystems.org/libtiff/>`_
12 Master HTTP Site #2 `<http://libtiff.maptools.org/>`_
13 ====================== ==========================================
14
15 This document describes the changes made to the software between the
16 *previous* and *current* versions (see above). If you don't
17 find something listed here, then it was not done in this timeframe, or
18 it was not considered important enough to be mentioned. The following
19 information is located here. A change summary is also provided by the
20 :file:`ChangeLog` file included in the release package and by the Git commit
21 history:
22
23
24 Major changes
25 -------------
26
27 * Make defer strile offset/bytecount loading available at runtime
28 and add per-strile offset/bytecount loading capabilities. Part of
29 this commit makes the behaviour that was previously met when libtiff
30 was compiled with ``-DDEFER_STRILE_LOAD`` available for default builds
31 when specifying the new ``D`` (Deferred) :c:func:`TIFFOpen` flag. In that
32 mode, the [``Tile``/``Strip``][``ByteCounts``/``Offsets``] arrays are only loaded
33 when first accessed. This can speed-up the opening of files stored
34 on the network when just metadata retrieval is needed.
35
36 Another addition is the capability of loading only the values of
37 the offset/bytecount of the strile of interest instead of the
38 whole array. This is enabled with the new ``O`` (Ondemand) flag of
39 :c:func:`TIFFOpen` (which implies ``D``).
40
41 The public :c:func:`TIFFGetStrileOffset`,
42 :c:func:`TIFFGetStrileOffsetWithErr`,
43 :c:func:`TIFFGetStrileByteCount` and
44 :c:func:`TIFFGetStrileByteCountWithErr` functions have been added to
45 API. They are of particular interest when using sparse files (with
46 ``offset == bytecount == 0``) and you want to detect if a strile is
47 present or not without decompressing the data, or updating an
48 existing sparse file.
49
50 * The BigTIFF writer now optimizes file size by using 32-bit ``LONG``
51 values (rather than 64-bit) where it is reasonable and safe to do
52 so. Likewise, the 16-bit ``SHORT`` type is used when possible for
53 ``StripByteCounts``/``TileByteCounts``.
54
55
56 Software configuration changes
57 ------------------------------
58
59 * The ``WIN32`` build now uses :file:`tif_win32.c` when building with CMake.
60
61 * Properly set value of :c:macro:`HOST_FILLORDER` to :c:macro:`LSB2MSB` for Windows
62 CMake builds. It was not being properly set!
63
64
65 Library changes
66 ---------------
67
68 * Changes in the libtiff library may be viewed on-line
69 `Libtiff Library Commits <https://gitlab.com/libtiff/libtiff/commits/master/libtiff>`_..
70
71 * New function :c:func:`TIFFReadFromUserBuffer` which replaces the use of
72 :c:func:`TIFFReadEncodedStrip`/:c:func:`TIFFReadEncodedTile` when the user can
73 provide the buffer for the input data, for example when he wants
74 to avoid libtiff to read the strile offset/count values from the
75 ``[Strip|Tile][Offsets/ByteCounts]`` array.
76
77 * New functions :c:func:`TIFFDeferStrileArrayWriting` and :c:func:`TIFFForceStrileArrayWriting`.
78 Those advanced writing functions must be used in a particular sequence
79 to make their intended effect. Their aim is to control when/where
80 the ``[Strip/Tile][Offsets/ByteCounts]`` arrays are written into the file.
81
82 The purpose of this is to generate 'cloud-optimized geotiff' files where
83 the first KB of the file only contain the IFD entries without the potentially
84 large strile arrays. Those are written afterwards.
85
86
87 Tools changes
88 -------------
89
90 * Changes in the libtiff utilities may be viewed on-line
91 at `Libtiff Tools Commits <https://gitlab.com/libtiff/libtiff/commits/master/tools>`_.
92
93
94 Contributed software changes
95 ----------------------------
96
97 * Changes in the libtiff contrib area may be viewed on-line
98 at `Libtiff Contrib Commits <https://gitlab.com/libtiff/libtiff/commits/master/contrib>`_.