LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Functions
tif_tile.c File Reference

Compute tile geometry, coordinate checks, and default dimensions. More...

#include "tiffiop.h"
Include dependency graph for tif_tile.c:

Go to the source code of this file.

Functions

uint32_t TIFFComputeTile (TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
 Compute a tile index from pixel and sample coordinates.
 
uint32_t _TIFFComputeTileExt (TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s, bool *pOverflowed)
 Compute a tile index as TIFFComputeTile() does, and record an index overflow in a caller-provided flag.
 
int TIFFCheckTile (TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
 Check pixel and separate-sample coordinates against image bounds.
 
uint32_t TIFFNumberOfTiles (TIFF *tif)
 Compute the tile count across image depth and sample planes.
 
uint64_t TIFFTileRowSize64 (TIFF *tif)
 Compute the packed byte count of one tile row.
 
tmsize_t TIFFTileRowSize (TIFF *tif)
 Compute the packed byte count of one tile row.
 
uint64_t TIFFVTileSize64 (TIFF *tif, uint32_t nrows)
 Compute the decoded-size estimate for a requested tile height.
 
tmsize_t TIFFVTileSize (TIFF *tif, uint32_t nrows)
 Compute the decoded-size estimate for a requested tile height.
 
uint64_t TIFFTileSize64 (TIFF *tif)
 Compute the decoded-size estimate for the configured tile height.
 
tmsize_t TIFFTileSize (TIFF *tif)
 Compute the decoded-size estimate for the configured tile height.
 
void TIFFDefaultTileSize (TIFF *tif, uint32_t *tw, uint32_t *th)
 Ask the installed sizing method to adjust tile width and height.
 
void _TIFFDefaultTileSize (TIFF *tif, uint32_t *tw, uint32_t *th)
 Supply default tile dimensions and round them to multiples of sixteen.
 

Detailed Description

Compute tile geometry, coordinate checks, and default dimensions.

Definition in file tif_tile.c.