TIFFDataWidth(3tiff)

TIFFDataWidth3tiff

Get the size of tiff data types

Usage

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

Overview

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

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.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0–7
  3. 8
  4. 9
  5. 10–11
  6. 12
  7. 13

Author

LibTIFF contributors

From libtiff-dev 4.7.0-3+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.