logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TIFFsize - return the size of various items associated with an open TIFF file

Author

       LibTIFF contributors

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().  Note that  this  number
       may  be  1/samples-per-pixel  if  data  is  stored  as  separate  planes.   The  ScanlineSize  in case of
       YCbCrSubsampling is defined as the strip size divided by the strip height, i.e. the size  of  a  pack  of
       vertical  subsampling lines divided by vertical subsampling. It should thus make sense when multiplied by
       a multiple of vertical subsampling.  TIFFScanlineSize64() returns the size as uint64_t.

       TIFFRasterScanlineSize() returns the size in bytes of a complete decoded and packed raster scanline. Note
       that this value may be different from the value returned by  TIFFScanlineSize()  if  data  is  stored  as
       separate planes.  TIFFRasterScanlineSize64() returns the size as uint64_t.

Diagnostics

       None.

Name

       TIFFsize - return the size of various items associated with an open TIFF file

See Also

TIFFOpen (3tiff), TIFFReadScanline (3tiff), libtiff (3tiff)

Synopsis

          #include <tiffio.h>

       tsize_tTIFFRasterScanlineSize(TIFF*tif)uint64_tTIFFRasterScanlineSize64(TIFF*tif)tsize_tTIFFScanlineSize(TIFF*tif)uint64_tTIFFScanlineSize64(TIFF*tif)

See Also