SIZE(3T)

NAME
TIFFScanlineSize, TIFFStripSize, TIFFTileSize - return the size (in bytes) of a scanline, strip, or tile for an open TIFF file

SYNOPSIS
#include <tiffio.h>
tsize_t TIFFScanlineSize(TIFF* tif)
tsize_t TIFFStripSize(TIFF* tif)
tsize_t TIFFVStripSize(TIFF* tif, uint32 nrows)
tsize_t TIFFTileSize(TIFF* tif)
tsize_t TIFFVTileSize(TIFF* tif, uint32 nrows)

DESCRIPTION
TIFFScanlineSize returns the size in bytes of a row of data as it would be returned in a call to TIFFReadScanline, or as it would be expected in a call to TIFFWriteScanline.

TIFFStripSize returns the equivalent size for a strip of data as it would be returned in a call to TIFFReadEncodedStrip or as it would be expected in a call to TIFFWriteEncodedStrip.

TIFFTileSize returns the equivalent size for a tile of data as it would be returned in a call to TIFFReadTile or as it would be expected in a call to TIFFWriteTile.

TIFFVStripSize returns the number of bytes in a strip with nrows rows of data. Likewise, TIFFVTileSize returns the number of bytes in a row-aligned tile with nrows of data.

These sizes are typically used when dynamically allocating I/O buffers.

DIAGNOSTICS
None.

SEE ALSO
intro(3T), TIFFOpen(3T), TIFFReadScanline(3T), TIFFReadEncodedStrip(3T), TIFFReadTile(3T), TIFFWriteScanline(3T), TIFFWriteEncodedStrip(3T), TIFFWriteTile(3T)