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()
273 !TIFFAppendToStrip(tif, strip, (uint8*) data, cc)) in TIFFWriteEncodedStrip()
278 sample = (uint16)(strip / td->td_stripsperimage); in TIFFWriteEncodedStrip()
293 !TIFFAppendToStrip(tif, strip, tif->tif_rawdata, tif->tif_rawcc)) in TIFFWriteEncodedStrip()
306 TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc) in TIFFWriteRawStrip() argument
322 if (strip >= td->td_nstrips) { in TIFFWriteRawStrip()
333 if (strip >= td->td_stripsperimage) in TIFFWriteRawStrip()
339 tif->tif_curstrip = strip; in TIFFWriteRawStrip()
344 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteRawStrip()
345 return (TIFFAppendToStrip(tif, strip, (uint8*) data, cc) ? in TIFFWriteRawStrip()
716 TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc) in TIFFAppendToStrip() argument
723 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) { in TIFFAppendToStrip()
726 if( td->td_stripbytecount[strip] != 0 in TIFFAppendToStrip()
727 && td->td_stripoffset[strip] != 0 in TIFFAppendToStrip()
728 && td->td_stripbytecount[strip] >= (uint64) cc ) in TIFFAppendToStrip()
737 if (!SeekOK(tif, td->td_stripoffset[strip])) { in TIFFAppendToStrip()
750 td->td_stripoffset[strip] = TIFFSeekFile(tif, 0, SEEK_END); in TIFFAppendToStrip()
754 tif->tif_curoff = td->td_stripoffset[strip]; in TIFFAppendToStrip()
759 old_byte_count = td->td_stripbytecount[strip]; in TIFFAppendToStrip()
760 td->td_stripbytecount[strip] = 0; in TIFFAppendToStrip()
777 td->td_stripbytecount[strip] += cc; in TIFFAppendToStrip()
779 if( (int64) td->td_stripbytecount[strip] != old_byte_count ) in TIFFAppendToStrip()