35 summarize(
TIFF* tif,
size_t summand1,
size_t summand2,
const char* where)
41 uint32 bytes = summand1 + summand2;
43 if (bytes - summand1 != summand2) {
52 multiply(
TIFF* tif,
size_t nmemb,
size_t elem_size,
const char* where)
54 uint32 bytes = nmemb * elem_size;
56 if (elem_size && bytes / elem_size != nmemb) {
84 if (dx != 0 && dy != 0 && dz != 0) {
90 tile = (xpt*ypt*zpt)*s +
95 tile = (xpt*ypt)*(z/dz) + xpt*(y/dy) + x/dx;
111 "%lu: Col out of range, max %lu",
118 "%lu: Row out of range, max %lu",
125 "%lu: Depth out of range, max %lu",
133 "%lu: Sample out of range, max %lu",
159 ntiles = (dx == 0 || dy == 0 || dz == 0) ? 0 :
162 "TIFFNumberOfTiles"),
166 "TIFFNumberOfTiles");
219 if (samplingarea == 0) {
225 tilesize = multiply(tif, nrows, rowsize,
"TIFFVTileSize");
226 tilesize = summarize(tif, tilesize,
227 multiply(tif, 2, tilesize / samplingarea,
234 multiply(tif, tilesize, td->
td_tiledepth,
"TIFFVTileSize"));
262 if (*(int32*) tw < 1)
264 if (*(int32*) th < 1)
tsize_t TIFFTileRowSize(TIFF *tif)
int TIFFCheckTile(TIFF *tif, uint32 x, uint32 y, uint32 z, tsample_t s)
#define PHOTOMETRIC_YCBCR
void TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
GLint GLint GLint GLint GLint GLint y
#define TIFFhowmany(x, y)
GLint GLint GLint GLint GLint x
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
uint16 td_ycbcrsubsampling[2]
tsize_t TIFFVTileSize(TIFF *tif, uint32 nrows)
TIFFTileMethod tif_deftilesize
ttile_t TIFFNumberOfTiles(TIFF *tif)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
#define TIFFroundup(x, y)
ttile_t TIFFComputeTile(TIFF *tif, uint32 x, uint32 y, uint32 z, tsample_t s)
#define PLANARCONFIG_SEPARATE
void _TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
uint16 td_samplesperpixel
GLubyte GLubyte GLubyte GLubyte w
tsize_t TIFFTileSize(TIFF *tif)
#define PLANARCONFIG_CONTIG