xp_comm_proj/ReadGeoTiff/libtiff/tif_aux.c
/*
 * Compute the # bytes in each row of a tile.
 */
Compute the # bytes in each row of a tile.
Compute the # bytes in each row of a tile .
tsize_t
TIFFTileRowSize(TIFF* tif)
{
	TIFFDirectory *td = &tif->tif_dir;
	tsize_t rowsize;
	if (td->td_tilelength == 0 || td->td_tilewidth == 0)
		return ((tsize_t) 0);
	rowsize = td->td_bitspersample * td->td_tilewidth;
	if (td->td_planarconfig == PLANARCONFIG_CONTIG)
		rowsize *= td->td_samplesperpixel;
	return ((tsize_t) TIFFhowmany(rowsize, 8));
}
tsize_t TIFFTileRowSize ( TIFF * tif ) { TIFFDirectory * td = & tif -> tif_dir ; tsize_t rowsize ; if ( td -> td_tilelength == 0 || td -> td_tilewidth == 0 ) return ( ( tsize_t ) 0 ) ; rowsize = td -> td_bitspersample * td -> td_tilewidth ; if ( td -> td_planarconfig == PLANARCONFIG_CONTIG ) rowsize *= td -> td_samplesperpixel ; return ( ( tsize_t ) TIFFhowmany ( rowsize , 8 ) ) ; }
Compute the # bytes in each row of a tile.
Compute the # bytes in each row of a tile .