Products/PNGWorks/FreeImage/Source/LibTIFF/tif_strip.c
/*
 * Return the number of bytes to read/write in a call to
 * one of the scanline-oriented i/o routines.  Note that
 * this number may be 1/samples-per-pixel if data is
 * stored as separate planes.
 */
Return the number of bytes to read/write in a call to
one of the scanline-oriented i/o routines.  Note that
this number may be 1/samples-per-pixel if data is
stored as separate planes.
Return the number of bytes to read / write in a call to one of the scanline - oriented i / o routines . Note that this number may be 1 / samples - per - pixel if data is stored as separate planes .
tsize_t
TIFFScanlineSize(TIFF* tif)
{
	TIFFDirectory *td = &tif->tif_dir;
	tsize_t scanline;
	scanline = td->td_bitspersample * td->td_imagewidth;
	if (td->td_planarconfig == PLANARCONFIG_CONTIG)
		scanline *= td->td_samplesperpixel;
	return ((tsize_t) TIFFhowmany(scanline, 8));
}
tsize_t TIFFScanlineSize ( TIFF * tif ) { TIFFDirectory * td = & tif -> tif_dir ; tsize_t scanline ; scanline = td -> td_bitspersample * td -> td_imagewidth ; if ( td -> td_planarconfig == PLANARCONFIG_CONTIG ) scanline *= td -> td_samplesperpixel ; return ( ( tsize_t ) TIFFhowmany ( scanline , 8 ) ) ; }
Return the number of bytes to read/write in a call to
 one of the scanline-oriented i/o routines.
Return the number of bytes to read / write in a call to one of the scanline - oriented i / o routines .