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
π COPYRIGHT π
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 π β¨
π¦ where this page comes from
- fedora 43: libtiff-devel 4.7.2-1.fc43
- fedora 43: libtiff-devel 4.7.2-1.fc43
- fedora 43: libtiff-devel 4.7.2-3.fc43 Β· libtiff
- fedora 43: libtiff-devel 4.7.2-3.fc43 Β· libtiff
- fedora 44: libtiff-devel 4.7.2-1.fc44
- fedora 44: libtiff-devel 4.7.2-1.fc44
- fedora 44: libtiff-devel 4.7.2-3.fc44 Β· libtiff
- fedora 44: libtiff-devel 4.7.2-3.fc44 Β· libtiff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms