Lines Matching defs:strip

50 	tstrip_t strip;
66 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip;
68 strip = row / td->td_rowsperstrip;
69 if (strip != tif->tif_curstrip) { /* different strip, refill */
70 if (!TIFFFillStrip(tif, strip))
74 * Moving backwards within the same strip: backup
78 * strip, it's better to just read and decode the entire
79 * strip, and then access the decoded data in a random fashion.
81 if (!TIFFStartStrip(tif, strip))
120 * Read a strip of data and decompress the specified
124 TIFFReadEncodedStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size)
133 if (strip >= td->td_nstrips) {
136 (long) strip, (long) td->td_nstrips);
140 * Calculate the strip size according to the number of
141 * rows in the strip (check for truncated last strip on any
150 sep_strip = strip % strips_per_sep;
161 if (TIFFFillStrip(tif, strip)
163 (tsample_t)(strip / td->td_stripsperimage)) > 0 ) {
172 tstrip_t strip, tdata_t buf, tsize_t size, const char* module)
180 if (!SeekOK(tif, td->td_stripoffset[strip])) {
182 "%s: Seek error at scanline %lu, strip %lu",
184 (unsigned long) tif->tif_row, (unsigned long) strip);
198 if (td->td_stripoffset[strip] + size > tif->tif_size) {
200 "%s: Read error at scanline %lu, strip %lu; got %lu bytes, expected %lu",
203 (unsigned long) strip,
204 (unsigned long) tif->tif_size - td->td_stripoffset[strip],
208 _TIFFmemcpy(buf, tif->tif_base + td->td_stripoffset[strip],
215 * Read a strip of data from the file.
218 TIFFReadRawStrip(TIFF* tif, tstrip_t strip, tdata_t buf, tsize_t size)
232 if (strip >= td->td_nstrips) {
235 (unsigned long) strip,
245 bytecount = td->td_stripbytecount[strip];
248 "%lu: Invalid strip byte count, strip %lu",
249 (unsigned long) bytecount, (unsigned long) strip);
254 return (TIFFReadRawStrip1(tif, strip, buf, bytecount, module));
258 * Read the specified strip and setup for decoding. The data buffer is
259 * expanded, as necessary, to hold the strip's data.
262 TIFFFillStrip(TIFF* tif, tstrip_t strip)
275 uint32 bytecount = td->td_stripbytecount[strip];
278 "%s: Invalid strip byte count %lu, strip %lu",
280 (unsigned long) strip);
304 * td->td_stripoffset[strip]+bytecount > tif->tif_size
310 td->td_stripoffset[strip] > tif->tif_size - bytecount) {
318 "%s: Read error on strip %lu; "
320 tif->tif_name, (unsigned long) strip,
321 (unsigned long) tif->tif_size - td->td_stripoffset[strip],
327 tif->tif_rawdata = tif->tif_base + td->td_stripoffset[strip];
331 * strip coming from file (perhaps should set upper
339 "%s: Data buffer too small to hold strip %lu",
341 (unsigned long) strip);
348 if ((uint32)TIFFReadRawStrip1(tif, strip,
357 return (TIFFStartStrip(tif, strip));
585 * reading a strip of raw data. If the buffer
589 * large enough to hold any individual strip of
626 * strip has just been read in.
629 TIFFStartStrip(TIFF* tif, tstrip_t strip)
638 tif->tif_curstrip = strip;
639 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
648 tif->tif_rawcc = td->td_stripbytecount[strip];
651 (tsample_t)(strip / td->td_stripsperimage)));