1TIFFTILE(3TIFF)                                                TIFFTILE(3TIFF)
2
3
4

NAME

6       TIFFTileSize,   TIFFTileRowSize,   TIFFVTileSize,  TIFFDefaultTileSize,
7       TIFFComputeTile, TIFFCheckTile, TIFFNumberOfTiles - tile-related  util‐
8       ity routines
9

SYNOPSIS

11       #include <tiffio.h>
12
13       void TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
14       tsize_t TIFFTileSize(TIFF *tif)
15       tsize_t TIFFTileRowSize(TIFF *tif)
16       tsize_t TIFFVTileSize(TIFF *tif, uint32 nrows)
17       ttile_t  TIFFComputeTile(TIFF *tif, uint32 x, uint32 y, uint32 z, tsam‐
18       ple_t sample)
19       int TIFFCheckTile(TIFF *tif, uint32 x, uint32 y,  uint32  z,  tsample_t
20       sample)
21       ttile_t TIFFNumberOfTiles(TIFF *tif)
22

DESCRIPTION

24       TIFFDefaultTileSize returns the pixel width and height of a reasonable-
25       sized tile; suitable for setting up the TileWidth and TileLength  tags.
26       If  the tw and th values passed in are non-zero, then they are adjusted
27       to reflect any compression-specific requirements.  The  returned  width
28       and  height  are  constrained  to be a multiple of 16 pixels to conform
29       with the TIFF specification.
30
31       TIFFTileSize returns the equivalent size for a tile of data as it would
32       be  returned  in a call to TIFFReadTile or as it would be expected in a
33       call to TIFFWriteTile.
34
35       TIFFVTileSize returns the number of bytes in a  row-aligned  tile  with
36       nrows of data.
37
38       TIFFTileRowSize returns the number of bytes of a row of data in a tile.
39
40       TIFFComputeTile  returns  the  tile that contains the specified coordi‐
41       nates. A valid tile is always returned; out-of-range coordinate  values
42       are  clamped  to  the  bounds  of the image. The x and y parameters are
43       always used in calculating a tile. The z parameter is used if the image
44       is  deeper  than  1 slice (ImageDepth>1).  The sample parameter is used
45       only if data are organized in separate planes (PlanarConfiguration=2).
46
47       TIFFCheckTile returns a non-zero value if the supplied coordinates  are
48       within  the  bounds of the image and zero otherwise. The x parameter is
49       checked against the value of the ImageWidth tag.  The  y  parameter  is
50       checked  against  the  value of the ImageLength tag. The z parameter is
51       checked against the value of the ImageDepth tag (if defined). The  sam‐
52       ple  parameter  is  checked  against  the  value of the SamplesPerPixel
53       parameter if the data are organized in separate planes.
54
55       TIFFNumberOfTiles returns the number of tiles in the image.
56

DIAGNOSTICS

58       None.
59

SEE ALSO

61       TIFFReadEncodedTile(3TIFF),      TIFFReadRawTile(3TIFF),      TIFFRead‐
62       Tile(3TIFF),    TIFFWriteEncodedTile(3TIFF),   TIFFWriteRawTile(3TIFF),
63       TIFFWriteTile(3TIFF), libtiff(3TIFF)
64
65       Libtiff library home page: http://www.simplesystems.org/libtiff/
66
67
68
69libtiff                        February 14, 1992               TIFFTILE(3TIFF)
Impressum