44 if (
td->td_imagedepth == 1)
47 dx =
td->td_imagewidth;
49 dy =
td->td_imagelength;
51 dz =
td->td_imagedepth;
52 if (
dx != 0 &&
dy != 0 && dz != 0)
59 tile = (xpt * ypt * zpt) *
s + (xpt * ypt) * (
z / dz) +
62 tile = (xpt * ypt) * (
z / dz) + xpt * (
y /
dy) +
x /
dx;
75 if (
x >=
td->td_imagewidth)
78 (
unsigned long)
x, (
unsigned long)(
td->td_imagewidth - 1));
81 if (
y >=
td->td_imagelength)
85 (
unsigned long)(
td->td_imagelength - 1));
88 if (
z >=
td->td_imagedepth)
91 (
unsigned long)
z, (
unsigned long)(
td->td_imagedepth - 1));
95 s >=
td->td_samplesperpixel)
99 (
unsigned long)(
td->td_samplesperpixel - 1));
117 dx =
td->td_imagewidth;
119 dy =
td->td_imagelength;
121 dz =
td->td_imagedepth;
123 (
dx == 0 ||
dy == 0 || dz == 0)
129 "TIFFNumberOfTiles"),
133 "TIFFNumberOfTiles");
142 static const char module[] =
"TIFFTileRowSize64";
147 if (
td->td_tilelength == 0)
152 if (
td->td_tilewidth == 0)
161 if (
td->td_samplesperpixel == 0)
170 if (tilerowsize == 0)
175 return (tilerowsize);
179 static const char module[] =
"TIFFTileRowSize";
190 static const char module[] =
"TIFFVTileSize64";
192 if (
td->td_tilelength == 0 ||
td->td_tilewidth == 0 ||
193 td->td_tiledepth == 0)
214 ycbcrsubsampling + 0, ycbcrsubsampling + 1);
215 if ((ycbcrsubsampling[0] != 1 && ycbcrsubsampling[0] != 2 &&
216 ycbcrsubsampling[0] != 4) ||
217 (ycbcrsubsampling[1] != 1 && ycbcrsubsampling[1] != 2 &&
218 ycbcrsubsampling[1] != 4))
221 ycbcrsubsampling[0], ycbcrsubsampling[1]);
224 samplingblock_samples = ycbcrsubsampling[0] * ycbcrsubsampling[1] + 2;
229 samplingblock_samples,
module);
231 tif, samplingrow_samples,
td->td_bitspersample,
module));
240 static const char module[] =
"TIFFVTileSize";
255 static const char module[] =
"TIFFTileSize";
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
TIFFTileMethod tif_deftilesize
SYMCRYPT_MAGIC_FIELD union @5304 td
int TIFFGetFieldDefaulted(TIFF *tif, uint32_t tag,...)
uint32_t _TIFFMultiply32(TIFF *tif, uint32_t first, uint32_t second, const char *where)
tmsize_t _TIFFCastUInt64ToSSize(TIFF *tif, uint64_t val, const char *module)
uint64_t _TIFFMultiply64(TIFF *tif, uint64_t first, uint64_t second, const char *where)
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
void _TIFFDefaultTileSize(TIFF *tif, uint32_t *tw, uint32_t *th)
tmsize_t TIFFTileSize(TIFF *tif)
uint64_t TIFFVTileSize64(TIFF *tif, uint32_t nrows)
tmsize_t TIFFTileRowSize(TIFF *tif)
uint64_t TIFFTileSize64(TIFF *tif)
tmsize_t TIFFVTileSize(TIFF *tif, uint32_t nrows)
uint32_t TIFFComputeTile(TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
int TIFFCheckTile(TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
uint32_t TIFFNumberOfTiles(TIFF *tif)
void TIFFDefaultTileSize(TIFF *tif, uint32_t *tw, uint32_t *th)
uint64_t TIFFTileRowSize64(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)