Lines Matching defs:strip

51 	tstrip_t strip;
65 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip;
67 strip = row / td->td_rowsperstrip;
68 if (strip != tif->tif_curstrip) { /* different strip, refill */
69 if (!TIFFFillStrip(tif, strip))
73 * Moving backwards within the same strip: backup
77 * strip, it's better to just read and decode the entire
78 * strip, and then access the decoded data in a random fashion.
80 if (!TIFFStartStrip(tif, strip))
116 * Read a strip of data and decompress the specified
120 TIFFReadEncodedStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size)
129 if (strip >= td->td_nstrips) {
131 (long) strip, (long) td->td_nstrips);
135 * Calculate the strip size according to the number of
136 * rows in the strip (check for truncated last strip on any
145 sep_strip = strip % strips_per_sep;
156 if (TIFFFillStrip(tif, strip) && (*tif->tif_decodestrip)(tif,
157 (tidata_t) buf, size, (tsample_t)(strip / td->td_stripsperimage))) {
166 tstrip_t strip, tdata_t buf, tsize_t size, const char* module)
173 if (!SeekOK(tif, td->td_stripoffset[strip])) {
175 "%s: Seek error at scanline %lu, strip %lu",
177 (tif_long) tif->tif_row, (tif_long) strip);
191 if (td->td_stripoffset[strip] + size > tif->tif_size) {
193 "%s: Read error at scanline %lu, strip %lu; got %lu bytes, expected %lu",
196 (tif_long) strip,
197 (tif_long)tif->tif_size-td->td_stripoffset[strip],
201 _TIFFmemcpy(buf, tif->tif_base+td->td_stripoffset[strip], size);
207 * Read a strip of data from the file.
210 TIFFReadRawStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size)
218 if (strip >= td->td_nstrips) {
220 (tif_long) strip, (tif_long) td->td_nstrips);
223 bytecount = td->td_stripbytecount[strip];
226 "%lu: Invalid strip byte count, strip %lu",
227 (tif_long) bytecount, (tif_long) strip);
232 return (TIFFReadRawStrip1(tif, strip, buf, bytecount, module));
236 * Read the specified strip and setup for decoding.
238 * hold the strip's data.
241 TIFFFillStrip(TIFF* tif, tstrip_t strip)
247 bytecount = td->td_stripbytecount[strip];
250 "%lu: Invalid strip byte count, strip %lu",
251 (tif_long) bytecount, (tif_long) strip);
271 if ( td->td_stripoffset[strip] + bytecount > tif->tif_size) {
277 "%s: Read error on strip %lu; got %lu bytes, expected %lu",
279 (tif_long) strip,
280 (tif_long)tif->tif_size-td->td_stripoffset[strip],
286 tif->tif_rawdata = tif->tif_base + td->td_stripoffset[strip];
290 * hold data strip coming from file
298 "%s: Data buffer too small to hold strip %lu",
299 tif->tif_name, (tif_long) strip);
306 if (TIFFReadRawStrip1(tif, strip, (tif_char *)tif->tif_rawdata,
313 return (TIFFStartStrip(tif, strip));
506 * reading a strip of raw data. If the buffer
510 * large enough to hold any individual strip of
545 * strip has just been read in.
548 TIFFStartStrip(TIFF* tif, tstrip_t strip)
557 tif->tif_curstrip = strip;
558 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
560 tif->tif_rawcc = td->td_stripbytecount[strip];
562 (tsample_t)(strip / td->td_stripsperimage)));