Lines Matching refs:strip
34 int TIFFFillStrip(TIFF* tif, uint32 strip);
36 static int TIFFStartStrip(TIFF* tif, uint32 strip);
40 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size,const char* module);
46 TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) in TIFFFillStripPartial() argument
72 (unsigned long) strip); in TIFFFillStripPartial()
103 read_offset = td->td_stripoffset[strip] in TIFFFillStripPartial()
109 (unsigned long) tif->tif_row, (unsigned long) strip); in TIFFFillStripPartial()
117 if( (uint64) to_read > td->td_stripbytecount[strip] in TIFFFillStripPartial()
120 to_read = (tmsize_t) td->td_stripbytecount[strip] in TIFFFillStripPartial()
160 return TIFFStartStrip(tif, strip); in TIFFFillStripPartial()
177 uint32 strip; in TIFFSeek() local
198 strip = (uint32)sample*td->td_stripsperimage + row/td->td_rowsperstrip; in TIFFSeek()
200 strip = row / td->td_rowsperstrip; in TIFFSeek()
209 whole_strip = tif->tif_dir.td_stripbytecount[strip] < 10 in TIFFSeek()
224 if (strip != tif->tif_curstrip) { /* different strip, refill */ in TIFFSeek()
228 if (!TIFFFillStrip(tif, strip)) in TIFFSeek()
233 if( !TIFFFillStripPartial(tif,strip,read_ahead,1) ) in TIFFSeek()
244 … && (uint64) tif->tif_rawdataoff+tif->tif_rawdataloaded < td->td_stripbytecount[strip] ) in TIFFSeek()
246 if( !TIFFFillStripPartial(tif,strip,read_ahead,0) ) in TIFFSeek()
263 if( !TIFFFillStripPartial(tif,strip,read_ahead,1) ) in TIFFSeek()
268 if (!TIFFStartStrip(tif, strip)) in TIFFSeek()
317 TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size) in TIFFReadEncodedStrip() argument
329 if (strip>=td->td_nstrips) in TIFFReadEncodedStrip()
332 "%lu: Strip out of range, max %lu",(unsigned long)strip, in TIFFReadEncodedStrip()
345 stripinplane=(strip%stripsperplane); in TIFFReadEncodedStrip()
346 plane=(strip/stripsperplane); in TIFFReadEncodedStrip()
355 if (!TIFFFillStrip(tif,strip)) in TIFFReadEncodedStrip()
364 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size, in TIFFReadRawStrip1() argument
376 if (!SeekOK(tif, td->td_stripoffset[strip])) { in TIFFReadRawStrip1()
379 (unsigned long) tif->tif_row, (unsigned long) strip); in TIFFReadRawStrip1()
402 ma=(tmsize_t)td->td_stripoffset[strip]; in TIFFReadRawStrip1()
404 if (((uint64)ma!=td->td_stripoffset[strip])||(ma>tif->tif_size)) in TIFFReadRawStrip1()
415 (unsigned long) strip, in TIFFReadRawStrip1()
422 (unsigned long) strip, in TIFFReadRawStrip1()
438 TIFFReadRawStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size) in TIFFReadRawStrip() argument
447 if (strip >= td->td_nstrips) { in TIFFReadRawStrip()
450 (unsigned long) strip, in TIFFReadRawStrip()
460 bytecount = td->td_stripbytecount[strip]; in TIFFReadRawStrip()
466 (unsigned long) strip); in TIFFReadRawStrip()
471 (unsigned long) strip); in TIFFReadRawStrip()
482 return (TIFFReadRawStrip1(tif, strip, buf, bytecountm, module)); in TIFFReadRawStrip()
490 TIFFFillStrip(TIFF* tif, uint32 strip) in TIFFFillStrip() argument
500 uint64 bytecount = td->td_stripbytecount[strip]; in TIFFFillStrip()
506 (unsigned long) strip); in TIFFFillStrip()
511 (unsigned long) strip); in TIFFFillStrip()
545 td->td_stripoffset[strip] > (uint64)tif->tif_size - bytecount) { in TIFFFillStrip()
556 (unsigned long) strip, in TIFFFillStrip()
557 (unsigned __int64) tif->tif_size - td->td_stripoffset[strip], in TIFFFillStrip()
564 (unsigned long) strip, in TIFFFillStrip()
565 (unsigned long long) tif->tif_size - td->td_stripoffset[strip], in TIFFFillStrip()
572 tif->tif_rawdata = tif->tif_base + (tmsize_t)td->td_stripoffset[strip]; in TIFFFillStrip()
601 (unsigned long) strip); in TIFFFillStrip()
612 if (TIFFReadRawStrip1(tif, strip, tif->tif_rawdata, in TIFFFillStrip()
624 return (TIFFStartStrip(tif, strip)); in TIFFFillStrip()
956 TIFFStartStrip(TIFF* tif, uint32 strip) in TIFFStartStrip() argument
968 tif->tif_curstrip = strip; in TIFFStartStrip()
969 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFStartStrip()
980 tif->tif_rawcc = (tmsize_t)td->td_stripbytecount[strip]; in TIFFStartStrip()
983 (uint16)(strip / td->td_stripsperimage))); in TIFFStartStrip()