Products/PNGWorks/FreeImage/Source/LibTIFF/tif_strip.c
/*
 * Return the number of bytes required to store a complete
 * decoded and packed raster scanline (as opposed to the
 * I/O size returned by TIFFScanlineSize which may be less
 * if data is store as separate planes).
 */
Return the number of bytes required to store a complete
decoded and packed raster scanline (as opposed to the
I/O size returned by TIFFScanlineSize which may be less
if data is store as separate planes).
Return the number of bytes required to store a complete decoded and packed raster scanline ( as opposed to the I / O size returned by TIFFScanlineSize which may be less if data is store as separate planes ) .
tsize_t
TIFFRasterScanlineSize(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));
	} else
		return ((tsize_t)
		    TIFFhowmany(scanline, 8)*td->td_samplesperpixel);
}
tsize_t TIFFRasterScanlineSize ( 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 ) ) ; } else return ( ( tsize_t ) TIFFhowmany ( scanline , 8 ) * td -> td_samplesperpixel ) ; }
Return the number of bytes required to store a complete
 decoded and packed raster scanline (as opposed to the
 I/O size returned by TIFFScanlineSize which may be less
 if data is store as separate planes).
Return the number of bytes required to store a complete decoded and packed raster scanline ( as opposed to the I / O size returned by TIFFScanlineSize which may be less if data is store as separate planes ) .