Debian Codegraph @

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

raw
1 TIFFsize
2 ========
3
4 Synopsis
5 --------
6
7 .. highlight:: c
8
9 ::
10
11 #include <tiffio.h>
12
13 .. c:function:: tsize_t TIFFRasterScanlineSize(TIFF* tif)
14
15 .. c:function:: uint64_t TIFFRasterScanlineSize64(TIFF* tif)
16
17 .. c:function:: tsize_t TIFFScanlineSize(TIFF* tif)
18
19 .. c:function:: uint64_t TIFFScanlineSize64(TIFF* tif)
20
21 Description
22 -----------
23
24 :c:func:`TIFFScanlineSize` returns the size in bytes of a row of data as
25 it would be returned in a call to :c:func:`TIFFReadScanline`, or as it
26 would be expected in a call to :c:func:`TIFFWriteScanline`.
27 Note that this number may be 1/samples-per-pixel if data is
28 stored as separate planes.
29 The `ScanlineSize` in case of YCbCrSubsampling is defined as the
30 strip size divided by the strip height, i.e. the size of a pack of vertical
31 subsampling lines divided by vertical subsampling. It should thus make
32 sense when multiplied by a multiple of vertical subsampling.
33 :c:func:`TIFFScanlineSize64` returns the size as :c:type:`uint64_t`.
34
35 :c:func:`TIFFRasterScanlineSize` returns the size in bytes of a complete
36 decoded and packed raster scanline. Note that this value may be different
37 from the value returned by :c:func:`TIFFScanlineSize` if data is stored
38 as separate planes.
39 :c:func:`TIFFRasterScanlineSize64` returns the size as :c:type:`uint64_t`.
40
41 Diagnostics
42 -----------
43
44 None.
45
46 See also
47 --------
48
49 :doc:`TIFFOpen` (3tiff),
50 :doc:`TIFFReadScanline` (3tiff),
51 :doc:`libtiff` (3tiff)