Lines Matching refs:td
40 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeTile() local
41 uint32 dx = td->td_tilewidth; in TIFFComputeTile()
42 uint32 dy = td->td_tilelength; in TIFFComputeTile()
43 uint32 dz = td->td_tiledepth; in TIFFComputeTile()
46 if (td->td_imagedepth == 1) in TIFFComputeTile()
49 dx = td->td_imagewidth; in TIFFComputeTile()
51 dy = td->td_imagelength; in TIFFComputeTile()
53 dz = td->td_imagedepth; in TIFFComputeTile()
55 uint32 xpt = TIFFhowmany_32(td->td_imagewidth, dx); in TIFFComputeTile()
56 uint32 ypt = TIFFhowmany_32(td->td_imagelength, dy); in TIFFComputeTile()
57 uint32 zpt = TIFFhowmany_32(td->td_imagedepth, dz); in TIFFComputeTile()
59 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) in TIFFComputeTile()
77 TIFFDirectory *td = &tif->tif_dir; in TIFFCheckTile() local
79 if (x >= td->td_imagewidth) { in TIFFCheckTile()
83 (unsigned long) (td->td_imagewidth - 1)); in TIFFCheckTile()
86 if (y >= td->td_imagelength) { in TIFFCheckTile()
90 (unsigned long) (td->td_imagelength - 1)); in TIFFCheckTile()
93 if (z >= td->td_imagedepth) { in TIFFCheckTile()
97 (unsigned long) (td->td_imagedepth - 1)); in TIFFCheckTile()
100 if (td->td_planarconfig == PLANARCONFIG_SEPARATE && in TIFFCheckTile()
101 s >= td->td_samplesperpixel) { in TIFFCheckTile()
105 (unsigned long) (td->td_samplesperpixel - 1)); in TIFFCheckTile()
117 TIFFDirectory *td = &tif->tif_dir; in TIFFNumberOfTiles() local
118 uint32 dx = td->td_tilewidth; in TIFFNumberOfTiles()
119 uint32 dy = td->td_tilelength; in TIFFNumberOfTiles()
120 uint32 dz = td->td_tiledepth; in TIFFNumberOfTiles()
124 dx = td->td_imagewidth; in TIFFNumberOfTiles()
126 dy = td->td_imagelength; in TIFFNumberOfTiles()
128 dz = td->td_imagedepth; in TIFFNumberOfTiles()
130 _TIFFMultiply32(tif, _TIFFMultiply32(tif, TIFFhowmany_32(td->td_imagewidth, dx), in TIFFNumberOfTiles()
131 TIFFhowmany_32(td->td_imagelength, dy), in TIFFNumberOfTiles()
133 TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles"); in TIFFNumberOfTiles()
134 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) in TIFFNumberOfTiles()
135 ntiles = _TIFFMultiply32(tif, ntiles, td->td_samplesperpixel, in TIFFNumberOfTiles()
147 TIFFDirectory *td = &tif->tif_dir; in TIFFTileRowSize64() local
151 if (td->td_tilelength == 0) in TIFFTileRowSize64()
156 if (td->td_tilewidth == 0) in TIFFTileRowSize64()
161 rowsize = _TIFFMultiply64(tif, td->td_bitspersample, td->td_tilewidth, in TIFFTileRowSize64()
163 if (td->td_planarconfig == PLANARCONFIG_CONTIG) in TIFFTileRowSize64()
165 if (td->td_samplesperpixel == 0) in TIFFTileRowSize64()
170 rowsize = _TIFFMultiply64(tif, rowsize, td->td_samplesperpixel, in TIFFTileRowSize64()
204 TIFFDirectory *td = &tif->tif_dir; in TIFFVTileSize64() local
205 if (td->td_tilelength == 0 || td->td_tilewidth == 0 || in TIFFVTileSize64()
206 td->td_tiledepth == 0) in TIFFVTileSize64()
208 if ((td->td_planarconfig==PLANARCONFIG_CONTIG)&& in TIFFVTileSize64()
209 (td->td_photometric==PHOTOMETRIC_YCBCR)&& in TIFFVTileSize64()
210 (td->td_samplesperpixel==3)&& in TIFFVTileSize64()
239 samplingblocks_hor=TIFFhowmany_32(td->td_tilewidth,ycbcrsubsampling[0]); in TIFFVTileSize64()
242 …samplingrow_size=TIFFhowmany8_64(_TIFFMultiply64(tif,samplingrow_samples,td->td_bitspersample,modu… in TIFFVTileSize64()