Lines Matching refs:strip
35 #define STRIPINCR 20 /* expansion factor on strip array */
46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
54 uint32 strip;
82 * Calculate strip and check for crossings.
91 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip;
93 strip = row / td->td_rowsperstrip;
95 * Check strip array to make sure there's space. We don't support
101 if (strip >= td->td_nstrips && !TIFFGrowStrips(tif, 1, module))
103 if (strip != tif->tif_curstrip) {
109 tif->tif_curstrip = strip;
115 if (strip >= td->td_stripsperimage && imagegrew)
123 (strip % td->td_stripsperimage) * td->td_rowsperstrip;
133 if( td->td_stripbytecount[strip] > 0 )
136 td->td_stripbytecount[strip] = 0;
148 * beginning of a strip (or that we can randomly
154 * Moving backwards within the same strip:
158 tif->tif_row = (strip % td->td_stripsperimage) *
183 * specified strip.
188 TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
197 * Check strip array to make sure there's space.
205 if (strip >= td->td_nstrips) {
225 tif->tif_curstrip = strip;
232 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
239 if( td->td_stripbytecount[strip] > 0 )
245 if( tif->tif_rawdatasize <= (tmsize_t)td->td_stripbytecount[strip] )
248 (tmsize_t)TIFFroundup_64((uint64)(td->td_stripbytecount[strip] + 1), 1024))) )
261 sample = (uint16)(strip / td->td_stripsperimage);
276 !TIFFAppendToStrip(tif, strip, tif->tif_rawdata, tif->tif_rawcc))
284 * Write the supplied data to the specified strip.
289 TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
297 * Check strip array to make sure there's space.
305 if (strip >= td->td_nstrips) {
316 if (strip >= td->td_stripsperimage)
322 tif->tif_curstrip = strip;
327 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
328 return (TIFFAppendToStrip(tif, strip, (uint8*) data, cc) ?
464 * Write the supplied data to the specified strip.
582 isTiled(tif) ? "tile" : "strip");
643 * Grow the strip data structures by delta strips.
663 TIFFErrorExt(tif->tif_clientdata, module, "No space to expand strip arrays");
679 * Append the data to the specified strip.
682 TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc)
689 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) {
692 if( td->td_stripbytecount[strip] != 0
693 && td->td_stripoffset[strip] != 0
694 && td->td_stripbytecount[strip] >= (uint64) cc )
700 * more data to append to this strip before we are done
703 if (!SeekOK(tif, td->td_stripoffset[strip])) {
714 * write this strip.
716 td->td_stripoffset[strip] = TIFFSeekFile(tif, 0, SEEK_END);
720 tif->tif_curoff = td->td_stripoffset[strip];
723 * We are starting a fresh strip/tile, so set the size to zero.
725 old_byte_count = td->td_stripbytecount[strip];
726 td->td_stripbytecount[strip] = 0;
743 td->td_stripbytecount[strip] += cc;
745 if( (int64) td->td_stripbytecount[strip] != old_byte_count )