Table of Contents

Name

TIFFDataWidth - Get the size of TIFF data types

Synopsis

#include <tiffio.h>
int TIFFDataWidth(TIFFDataType type)

Description

TIFFDataWidth returns a size of type in bytes. Currently following data types are supported:
TIFF_BYTE
TIFF_ASCII
TIFF_SBYTE
TIFF_UNDEFINED
TIFF_SHORT
TIFF_SSHORT
TIFF_LONG
TIFF_SLONG
TIFF_FLOAT
TIFF_IFD
TIFF_RATIONAL
TIFF_SRATIONAL
TIFF_DOUBLE

Return Values


TIFFDataWidth returns a number of bytes occupied by the item of given type. 0 returned when uknown data type supplied.

See Also

libtiff(3) ,


Table of Contents