Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/functions/TIFFstrip.rst

raw
1 TIFFstrip
2 =========
3
4 Synopsis
5 --------
6
7 .. highlight:: c
8
9 ::
10
11 #include <tiffio.h>
12
13 .. c:function:: uint32_t TIFFDefaultStripSize(TIFF* tif, uint32_t estimate)
14
15 .. c:function:: tmsize_t TIFFStripSize(TIFF* tif)
16
17 .. c:function:: uint64_t TIFFStripSize64(TIFF* tif)
18
19 .. c:function:: tmsize_t TIFFVStripSize(TIFF* tif, uint32_t nrows)
20
21 .. c:function:: uint64_t TIFFVStripSize64(TIFF* tif, uint32_t nrows)
22
23 .. c:function:: tmsize_t TIFFRawStripSize(TIFF* tif, uint32_t strip)
24
25 .. c:function:: uint64_t TIFFRawStripSize64(TIFF* tif, uint32_t strip)
26
27 .. c:function:: tstrip_t TIFFComputeStrip(TIFF* tif, uint32_t row, tsample_t sample)
28
29 .. c:function:: tstrip_t TIFFNumberOfStrips(TIFF* tif)
30
31 .. c:function:: int TIFFSetupStrips(TIFF* tif)
32
33 Description
34 -----------
35
36 :c:func:`TIFFDefaultStripSize` returns the number of rows for a
37 reasonable-sized strip according to the current settings of the
38 ``ImageWidth``, ``BitsPerSample`` and ``SamplesPerPixel``,
39 tags and any compression-specific requirements. If the *estimate*
40 parameter, sf non-zero, then it is taken as an estimate of the desired strip
41 size and adjusted according to any compression-specific requirements. The
42 value returned by this function is typically used to define the
43 ``RowsPerStrip`` tag. In lieu of any unusual requirements
44 ``TIFFDefaultStripSize`` tries to create strips that have approximately
45 8 kilobytes of uncompressed data.
46
47 :c:func:`TIFFStripSize` returns the equivalent size for a strip of data
48 as it would be returned in a call to :c:func:`TIFFReadEncodedStrip`
49 or as it would be expected in a call to :c:func:`TIFFWriteEncodedStrip`.
50 If an error occurs, 0 is returned.
51
52 :c:func:`TIFFStripSize64` returns the equivalent size for a strip of data
53 as :c:type:`uint64_t`.
54 If an error occurs, 0 is returned.
55
56 :c:func:`TIFFVStripSize` returns the number of bytes in a strip with
57 *nrows* rows of data.
58 If an error occurs, 0 is returned.
59
60 :c:func:`TIFFVStripSize64` returns the number of bytes in a strip with
61 *nrows* rows of data as :c:type:`uint64_t`.
62 If an error occurs, 0 is returned.
63
64 :c:func:`TIFFRawStripSize` returns the number of bytes in a raw strip
65 (i.e. not decoded).
66 If an error occurs, 0xFFFFFFFF `(=(tmsize_t(-1))` is returned.
67
68 :c:func:`TIFFRawStripSize64` returns the number of bytes in a raw strip
69 as :c:type:`uint64_t`.
70 If an error occurs, 0xFFFFFFFF `(=(uint64_t(-1))` is returned.
71
72 :c:func:`TIFFComputeStrip` returns the strip that contains the specified
73 coordinates. A valid strip is always returned; out-of-range coordinate
74 values are clamped to the bounds of the image. The *row* parameter is
75 always used in calculating a strip. The *sample* parameter is used only
76 if data are organized in separate planes (``PlanarConfiguration`` = 2).
77
78 :c:func:`TIFFNumberOfStrips` returns the number of strips in the image.
79
80 :c:func:`TIFFSetupStrips` setup or reset strip parameters and strip array memory.
81
82 Diagnostics
83 -----------
84
85 None.
86
87 See also
88 --------
89
90 :doc:`TIFFReadEncodedStrip` (3tiff),
91 :doc:`TIFFReadRawStrip` (3tiff),
92 :doc:`TIFFWriteEncodedStrip` (3tiff),
93 :doc:`TIFFWriteRawStrip` (3tiff),
94 :doc:`libtiff` (3tiff)