Home | History | Annotate | Download | only in libtiff

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)
119 (strip % td->td_stripsperimage) * td->td_rowsperstrip;
129 if( td->td_stripbytecount[strip] > 0 )
132 td->td_stripbytecount[strip] = 0;
144 * beginning of a strip (or that we can randomly
150 * Moving backwards within the same strip:
154 tif->tif_row = (strip % td->td_stripsperimage) *
179 * specified strip.
184 TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
193 * Check strip array to make sure there's space.
201 if (strip >= td->td_nstrips) {
221 tif->tif_curstrip = strip;
223 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
233 if( td->td_stripbytecount[strip] > 0 )
241 sample = (uint16)(strip / td->td_stripsperimage);
256 !TIFFAppendToStrip(tif, strip, tif->tif_rawdata, tif->tif_rawcc))
264 * Write the supplied data to the specified strip.
269 TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
277 * Check strip array to make sure there's space.
285 if (strip >= td->td_nstrips) {
296 if (strip >= td->td_stripsperimage)
302 tif->tif_curstrip = strip;
303 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
304 return (TIFFAppendToStrip(tif, strip, (uint8*) data, cc) ?
420 * Write the supplied data to the specified strip.
538 isTiled(tif) ? "tile" : "strip");
599 * Grow the strip data structures by delta strips.
619 TIFFErrorExt(tif->tif_clientdata, module, "No space to expand strip arrays");
635 * Append the data to the specified strip.
638 TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc)
645 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) {
648 if( td->td_stripbytecount[strip] != 0
649 && td->td_stripoffset[strip] != 0
650 && td->td_stripbytecount[strip] >= (uint64) cc )
656 * more data to append to this strip before we are done
659 if (!SeekOK(tif, td->td_stripoffset[strip])) {
670 * write this strip.
672 td->td_stripoffset[strip] = TIFFSeekFile(tif, 0, SEEK_END);
676 tif->tif_curoff = td->td_stripoffset[strip];
679 * We are starting a fresh strip/tile, so set the size to zero.
681 old_byte_count = td->td_stripbytecount[strip];
682 td->td_stripbytecount[strip] = 0;
699 td->td_stripbytecount[strip] += cc;
701 if( (int64) td->td_stripbytecount[strip] != old_byte_count )