TIFFSIZE(3tiff)

πŸ’– TIFFSIZE β€” bestie, it's the size-checking page (3tiff) πŸ’–

okay so this is TIFFSIZE(3tiff) from LibTIFF and it's literally just here to tell you how big stuff is. no drama, just measurements. we love a low-stakes queen. ✨


🌸 SYNOPSIS 🌸

#include <tiffio.h>

tmsize_t TIFFRasterScanlineSize(TIFF *tif)

uint64_t TIFFRasterScanlineSize64(TIFF *tif)

tmsize_t TIFFScanlineSize(TIFF *tif)

uint64_t TIFFScanlineSize64(TIFF *tif)

four functions, one job. it's giving ✨specialist✨.


πŸ¦‹ DESCRIPTION πŸ¦‹

πŸ’… the scanline girlies

TIFFScanlineSize() hands you the size in bytes of a row of data β€” like, exactly how it would come back at you from a call to TIFFReadScanline(), or how it would be expected if you called TIFFWriteScanline(). same number, both directions. iconic. 🫢

bestie, heads up: this number may be 1/samples-per-pixel if the data is stored as separate planes. don't come for me, that's just what it does. 😭

and when YCbCrSubsampling is in the picture, the ScanlineSize is defined as the strip size divided by the strip height β€” aka the size of a pack of vertical subsampling lines divided by vertical subsampling. so it should still make sense when you multiply it by a multiple of vertical subsampling. math girlies stay winning. 🧚

TIFFScanlineSize64() is the same vibe but it returns the size as a uint64_t. big number energy. πŸ‘‘

πŸ’œ the raster scanline girlies

TIFFRasterScanlineSize() gives you the size in bytes of a complete decoded and packed raster scanline. fully assembled. no crumbs. 🌈

ngl, this value may be different from what TIFFScanlineSize() gave you if the data is stored as separate planes. not a bug, just the truth. πŸ’€

TIFFRasterScanlineSize64() returns that size as a uint64_t. slay. ⭐


πŸ™ˆ DIAGNOSTICS πŸ™ˆ

None.

literally nothing. no errors, no warnings, no notes. she's unproblematic fr fr. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

  • TIFFOpen (3tiff)
  • TIFFReadScanline (3tiff)
  • libtiff (3tiff)

go read those next, bestie, iykyk. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

LibTIFF contributors


1988-2025, LibTIFF contributors


and that's the whole page, periodt. this was LibTIFF 4.7, dated Jun 27, 2026 β€” ty for coming to my ted talk, mwah πŸ’…βœ¨