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>
int TIFFScanlineSize(TIFF* tif)
u_long TIFFStripSize(TIFF* tif)
u_long TIFFTileSize(TIFF* tif)

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().

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)