Lines Matching defs:strip

35 #define	STRIPINCR	20		/* expansion factor on strip array */
54 tstrip_t strip;
80 * Calculate strip and check for crossings.
89 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip;
91 strip = row / td->td_rowsperstrip;
93 * Check strip array to make sure there's space. We don't support
99 if (strip >= td->td_nstrips && !TIFFGrowStrips(tif, 1, module))
101 if (strip != tif->tif_curstrip) {
107 tif->tif_curstrip = strip;
113 if (strip >= td->td_stripsperimage && imagegrew)
117 (strip % td->td_stripsperimage) * td->td_rowsperstrip;
127 if( td->td_stripbytecount[strip] > 0 )
130 td->td_stripbytecount[strip] = 0;
142 * beginning of a strip (or that we can randomly
148 * Moving backwards within the same strip:
152 tif->tif_row = (strip % td->td_stripsperimage) *
177 * specified strip.
182 TIFFWriteEncodedStrip(TIFF* tif, tstrip_t strip, tdata_t data, tsize_t cc)
191 * Check strip array to make sure there's space.
199 if (strip >= td->td_nstrips) {
217 tif->tif_curstrip = strip;
218 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
228 if( td->td_stripbytecount[strip] > 0 )
236 sample = (tsample_t)(strip / td->td_stripsperimage);
251 !TIFFAppendToStrip(tif, strip, tif->tif_rawdata, tif->tif_rawcc))
259 * Write the supplied data to the specified strip.
264 TIFFWriteRawStrip(TIFF* tif, tstrip_t strip, tdata_t data, tsize_t cc)
272 * Check strip array to make sure there's space.
280 if (strip >= td->td_nstrips) {
291 if (strip >= td->td_stripsperimage)
297 tif->tif_curstrip = strip;
298 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
299 return (TIFFAppendToStrip(tif, strip, (tidata_t) data, cc) ?
414 * Write the supplied data to the specified strip.
533 tif->tif_name, isTiled(tif) ? "tile" : "strip");
586 * Grow the strip data structures by delta strips.
605 TIFFErrorExt(tif->tif_clientdata, module, "%s: No space to expand strip arrays",
620 * Append the data to the specified strip.
623 TIFFAppendToStrip(TIFF* tif, tstrip_t strip, tidata_t data, tsize_t cc)
628 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) {
631 if( td->td_stripbytecount[strip] != 0
632 && td->td_stripoffset[strip] != 0
633 && td->td_stripbytecount[strip] >= cc )
639 * more data to append to this strip before we are done
642 if (!SeekOK(tif, td->td_stripoffset[strip])) {
653 * write this strip.
655 td->td_stripoffset[strip] = TIFFSeekFile(tif, 0, SEEK_END);
658 tif->tif_curoff = td->td_stripoffset[strip];
661 * We are starting a fresh strip/tile, so set the size to zero.
663 td->td_stripbytecount[strip] = 0;
672 td->td_stripbytecount[strip] += cc;