xp_comm_proj/ReadGeoTiff/libtiff/tif_aux.c
/*
 * Decode a hunk of pixels.
 */
Decode a hunk of pixels.
Decode a hunk of pixels .
static int
DumpModeDecode(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s)
{
	(void) s;
	if (tif->tif_rawcc < cc) {
		TIFFError(tif->tif_name,
		    "DumpModeDecode: Not enough data for scanline %d",
		    tif->tif_row);
		return (0);
	}
	if (tif->tif_rawcp != buf)
		_TIFFmemcpy(buf, tif->tif_rawcp, cc);
	tif->tif_rawcp += cc;
	tif->tif_rawcc -= cc;
	return (1);
}
static int DumpModeDecode ( TIFF * tif , tidata_t buf , tsize_t cc , tsample_t s ) { ( void ) s ; if ( tif -> tif_rawcc < cc ) { TIFFError ( tif -> tif_name , " " , tif -> tif_row ) ; return ( 0 ) ; } if ( tif -> tif_rawcp != buf ) _TIFFmemcpy ( buf , tif -> tif_rawcp , cc ) ; tif -> tif_rawcp += cc ; tif -> tif_rawcc -= cc ; return ( 1 ) ; }
Decode a hunk of pixels.
Decode a hunk of pixels .
/*
	 * Avoid copy if client has setup raw
	 * data buffer to avoid extra copy.
	 */