Lines Matching refs:strip

46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
54 uint32 strip; in TIFFWriteScanline() local
91 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip; in TIFFWriteScanline()
93 strip = row / td->td_rowsperstrip; in TIFFWriteScanline()
101 if (strip >= td->td_nstrips && !TIFFGrowStrips(tif, 1, module)) in TIFFWriteScanline()
103 if (strip != tif->tif_curstrip) { in TIFFWriteScanline()
109 tif->tif_curstrip = strip; in TIFFWriteScanline()
115 if (strip >= td->td_stripsperimage && imagegrew) in TIFFWriteScanline()
123 (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteScanline()
133 if( td->td_stripbytecount[strip] > 0 ) in TIFFWriteScanline()
136 td->td_stripbytecount[strip] = 0; in TIFFWriteScanline()
158 tif->tif_row = (strip % td->td_stripsperimage) * in TIFFWriteScanline()
188 TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc) in TIFFWriteEncodedStrip() argument
205 if (strip >= td->td_nstrips) { in TIFFWriteEncodedStrip()
225 tif->tif_curstrip = strip; in TIFFWriteEncodedStrip()
232 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteEncodedStrip()
239 if( td->td_stripbytecount[strip] > 0 ) in TIFFWriteEncodedStrip()
245 if( tif->tif_rawdatasize <= (tmsize_t)td->td_stripbytecount[strip] ) in TIFFWriteEncodedStrip()
248 (tmsize_t)TIFFroundup_64((uint64)(td->td_stripbytecount[strip] + 1), 1024))) ) in TIFFWriteEncodedStrip()
261 sample = (uint16)(strip / td->td_stripsperimage); in TIFFWriteEncodedStrip()
276 !TIFFAppendToStrip(tif, strip, tif->tif_rawdata, tif->tif_rawcc)) in TIFFWriteEncodedStrip()
289 TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc) in TIFFWriteRawStrip() argument
305 if (strip >= td->td_nstrips) { in TIFFWriteRawStrip()
316 if (strip >= td->td_stripsperimage) in TIFFWriteRawStrip()
322 tif->tif_curstrip = strip; in TIFFWriteRawStrip()
327 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteRawStrip()
328 return (TIFFAppendToStrip(tif, strip, (uint8*) data, cc) ? in TIFFWriteRawStrip()
682 TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc) in TIFFAppendToStrip() argument
689 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) { in TIFFAppendToStrip()
692 if( td->td_stripbytecount[strip] != 0 in TIFFAppendToStrip()
693 && td->td_stripoffset[strip] != 0 in TIFFAppendToStrip()
694 && td->td_stripbytecount[strip] >= (uint64) cc ) in TIFFAppendToStrip()
703 if (!SeekOK(tif, td->td_stripoffset[strip])) { in TIFFAppendToStrip()
716 td->td_stripoffset[strip] = TIFFSeekFile(tif, 0, SEEK_END); in TIFFAppendToStrip()
720 tif->tif_curoff = td->td_stripoffset[strip]; in TIFFAppendToStrip()
725 old_byte_count = td->td_stripbytecount[strip]; in TIFFAppendToStrip()
726 td->td_stripbytecount[strip] = 0; in TIFFAppendToStrip()
743 td->td_stripbytecount[strip] += cc; in TIFFAppendToStrip()
745 if( (int64) td->td_stripbytecount[strip] != old_byte_count ) in TIFFAppendToStrip()