52 if (
dx != 0 &&
dy != 0 && dz != 0) {
58 tile = (xpt*ypt*zpt)*
s +
63 tile = (xpt*ypt)*(
z/dz) + xpt*(
y/
dy) +
x/
dx;
79 "%lu: Col out of range, max %lu",
86 "%lu: Row out of range, max %lu",
93 "%lu: Depth out of range, max %lu",
101 "%lu: Sample out of range, max %lu",
127 ntiles = (
dx == 0 ||
dy == 0 || dz == 0) ? 0 :
130 "TIFFNumberOfTiles"),
134 "TIFFNumberOfTiles");
144 static const char module[] =
"TIFFTileRowSize64";
172 if (tilerowsize == 0)
177 return (tilerowsize);
182 static const char module[] =
"TIFFTileRowSize";
194 static const char module[] =
"TIFFVTileSize64";
212 uint16 ycbcrsubsampling[2];
213 uint16 samplingblock_samples;
214 uint32 samplingblocks_hor;
215 uint32 samplingblocks_ver;
216 uint64 samplingrow_samples;
220 if ((ycbcrsubsampling[0] != 1 && ycbcrsubsampling[0] != 2 && ycbcrsubsampling[0] != 4)
221 ||(ycbcrsubsampling[1] != 1 && ycbcrsubsampling[1] != 2 && ycbcrsubsampling[1] != 4))
224 "Invalid YCbCr subsampling (%dx%d)",
226 ycbcrsubsampling[1] );
229 samplingblock_samples=ycbcrsubsampling[0]*ycbcrsubsampling[1]+2;
242 static const char module[] =
"TIFFVTileSize";
259 static const char module[] =
"TIFFTileSize";
281 if (*(
int32*) tw < 1)
283 if (*(
int32*) th < 1)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
uint16 td_samplesperpixel
TIFFTileMethod tif_deftilesize
uint64 _TIFFMultiply64(TIFF *tif, uint64 first, uint64 second, const char *where)
int TIFFGetFieldDefaulted(TIFF *tif, uint32 tag,...)
uint32 _TIFFMultiply32(TIFF *tif, uint32 first, uint32 second, const char *where)
tmsize_t _TIFFCastUInt64ToSSize(TIFF *tif, uint64 val, const char *module)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
tmsize_t TIFFTileSize(TIFF *tif)
tmsize_t TIFFVTileSize(TIFF *tif, uint32 nrows)
uint64 TIFFTileRowSize64(TIFF *tif)
tmsize_t TIFFTileRowSize(TIFF *tif)
void TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
int TIFFCheckTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
uint64 TIFFVTileSize64(TIFF *tif, uint32 nrows)
uint32 TIFFComputeTile(TIFF *tif, uint32 x, uint32 y, uint32 z, uint16 s)
void _TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
uint32 TIFFNumberOfTiles(TIFF *tif)
uint64 TIFFTileSize64(TIFF *tif)
#define PLANARCONFIG_SEPARATE
#define PHOTOMETRIC_YCBCR
#define TIFFTAG_YCBCRSUBSAMPLING
#define PLANARCONFIG_CONTIG
#define TIFFroundup_32(x, y)
#define TIFFhowmany_32(x, y)
#define TIFFhowmany8_64(x)