Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

TIFFDataWidth - get the size of TIFF data types

Author

       LibTIFF contributors

Description

TIFFDataWidth()  returns  the size of type within TIFF file 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

       • TIFF_LONG8

       • TIFF_SLONG8

       • TIFF_IFD8

Name

       TIFFDataWidth - get the size of TIFF data types

Return Values

TIFFDataWidth() returns a number of bytes occupied by the item of given type  within  the  TIFF  file.  0
       returned when unknown data type supplied.

See Also

libtiff (3tiff)

Synopsis

          #include <tiffio.h>

       intTIFFDataWidth(TIFFDataTypetype)

See Also