Products/PNGWorks/FreeImage/Source/LibTIFF/tif_strip.c
/*
 * Compute how many strips are in an image.
 */
Compute how many strips are in an image.
Compute how many strips are in an image .
tstrip_t
TIFFNumberOfStrips(TIFF* tif)
{
	TIFFDirectory *td = &tif->tif_dir;
	tstrip_t nstrips;
	nstrips = (td->td_rowsperstrip == (uint32) -1 ?
	     (td->td_imagelength != 0 ? 1 : 0) :
	     TIFFhowmany(td->td_imagelength, td->td_rowsperstrip));
	if (td->td_planarconfig == PLANARCONFIG_SEPARATE)
		nstrips *= td->td_samplesperpixel;
	return (nstrips);
}
tstrip_t TIFFNumberOfStrips ( TIFF * tif ) { TIFFDirectory * td = & tif -> tif_dir ; tstrip_t nstrips ; nstrips = ( td -> td_rowsperstrip == ( uint32 ) - 1 ? ( td -> td_imagelength != 0 ? 1 : 0 ) : TIFFhowmany ( td -> td_imagelength , td -> td_rowsperstrip ) ) ; if ( td -> td_planarconfig == PLANARCONFIG_SEPARATE ) nstrips *= td -> td_samplesperpixel ; return ( nstrips ) ; }
Compute how many strips are in an image.
Compute how many strips are in an image .