• Home
  • Raw
  • Download

Lines Matching refs:td

52 	register TIFFDirectory *td;  in TIFFWriteScanline()  local
67 td = &tif->tif_dir; in TIFFWriteScanline()
72 if (row >= td->td_imagelength) { /* extend image */ in TIFFWriteScanline()
73 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) { in TIFFWriteScanline()
78 td->td_imagelength = row+1; in TIFFWriteScanline()
84 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) { in TIFFWriteScanline()
85 if (sample >= td->td_samplesperpixel) { in TIFFWriteScanline()
88 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFWriteScanline()
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()
115 if (strip >= td->td_stripsperimage && imagegrew) in TIFFWriteScanline()
116 td->td_stripsperimage = in TIFFWriteScanline()
117 TIFFhowmany_32(td->td_imagelength,td->td_rowsperstrip); in TIFFWriteScanline()
118 if (td->td_stripsperimage == 0) { 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()
159 td->td_rowsperstrip; in TIFFWriteScanline()
191 TIFFDirectory *td = &tif->tif_dir; in TIFFWriteEncodedStrip() local
205 if (strip >= td->td_nstrips) { in TIFFWriteEncodedStrip()
206 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) { in TIFFWriteEncodedStrip()
213 td->td_stripsperimage = in TIFFWriteEncodedStrip()
214 TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip); in TIFFWriteEncodedStrip()
227 if (td->td_stripsperimage == 0) { 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()
263 if( td->td_compression == COMPRESSION_NONE ) in TIFFWriteEncodedStrip()
268 if (!isFillOrder(tif, td->td_fillorder) && in TIFFWriteEncodedStrip()
278 sample = (uint16)(strip / td->td_stripsperimage); in TIFFWriteEncodedStrip()
289 if (!isFillOrder(tif, td->td_fillorder) && in TIFFWriteEncodedStrip()
309 TIFFDirectory *td = &tif->tif_dir; in TIFFWriteRawStrip() local
322 if (strip >= td->td_nstrips) { in TIFFWriteRawStrip()
323 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) { in TIFFWriteRawStrip()
333 if (strip >= td->td_stripsperimage) in TIFFWriteRawStrip()
334 td->td_stripsperimage = in TIFFWriteRawStrip()
335 TIFFhowmany_32(td->td_imagelength,td->td_rowsperstrip); in TIFFWriteRawStrip()
340 if (td->td_stripsperimage == 0) { in TIFFWriteRawStrip()
344 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteRawStrip()
384 TIFFDirectory *td; in TIFFWriteEncodedTile() local
390 td = &tif->tif_dir; in TIFFWriteEncodedTile()
391 if (tile >= td->td_nstrips) { in TIFFWriteEncodedTile()
393 (unsigned long) tile, (unsigned long) td->td_nstrips); in TIFFWriteEncodedTile()
407 if( td->td_stripbytecount[tile] > 0 ) in TIFFWriteEncodedTile()
413 if( tif->tif_rawdatasize <= (tmsize_t) td->td_stripbytecount[tile] ) in TIFFWriteEncodedTile()
416 (tmsize_t)TIFFroundup_64((uint64)(td->td_stripbytecount[tile] + 1), 1024))) ) in TIFFWriteEncodedTile()
432 howmany32=TIFFhowmany_32(td->td_imagelength, td->td_tilelength); in TIFFWriteEncodedTile()
437 tif->tif_row = (tile % howmany32) * td->td_tilelength; in TIFFWriteEncodedTile()
438 howmany32=TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth); in TIFFWriteEncodedTile()
443 tif->tif_col = (tile % howmany32) * td->td_tilewidth; in TIFFWriteEncodedTile()
461 if( td->td_compression == COMPRESSION_NONE ) in TIFFWriteEncodedTile()
466 if (!isFillOrder(tif, td->td_fillorder) && in TIFFWriteEncodedTile()
476 sample = (uint16)(tile/td->td_stripsperimage); in TIFFWriteEncodedTile()
486 if (!isFillOrder(tif, td->td_fillorder) && in TIFFWriteEncodedTile()
529 TIFFDirectory* td = &tif->tif_dir; in TIFFSetupStrips() local
532 td->td_stripsperimage = in TIFFSetupStrips()
534 td->td_samplesperpixel : TIFFNumberOfTiles(tif); in TIFFSetupStrips()
536 td->td_stripsperimage = in TIFFSetupStrips()
538 td->td_samplesperpixel : TIFFNumberOfStrips(tif); in TIFFSetupStrips()
539 td->td_nstrips = td->td_stripsperimage; in TIFFSetupStrips()
540 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) in TIFFSetupStrips()
541 td->td_stripsperimage /= td->td_samplesperpixel; in TIFFSetupStrips()
542 td->td_stripoffset = (uint64 *) in TIFFSetupStrips()
543 _TIFFmalloc(td->td_nstrips * sizeof (uint64)); in TIFFSetupStrips()
544 td->td_stripbytecount = (uint64 *) in TIFFSetupStrips()
545 _TIFFmalloc(td->td_nstrips * sizeof (uint64)); in TIFFSetupStrips()
546 if (td->td_stripoffset == NULL || td->td_stripbytecount == NULL) in TIFFSetupStrips()
552 _TIFFmemset(td->td_stripoffset, 0, td->td_nstrips*sizeof (uint64)); in TIFFSetupStrips()
553 _TIFFmemset(td->td_stripbytecount, 0, td->td_nstrips*sizeof (uint64)); in TIFFSetupStrips()
682 TIFFDirectory *td = &tif->tif_dir; in TIFFGrowStrips() local
686 assert(td->td_planarconfig == PLANARCONFIG_CONTIG); in TIFFGrowStrips()
687 new_stripoffset = (uint64*)_TIFFrealloc(td->td_stripoffset, in TIFFGrowStrips()
688 (td->td_nstrips + delta) * sizeof (uint64)); in TIFFGrowStrips()
689 new_stripbytecount = (uint64*)_TIFFrealloc(td->td_stripbytecount, in TIFFGrowStrips()
690 (td->td_nstrips + delta) * sizeof (uint64)); in TIFFGrowStrips()
696 td->td_nstrips = 0; in TIFFGrowStrips()
700 td->td_stripoffset = new_stripoffset; in TIFFGrowStrips()
701 td->td_stripbytecount = new_stripbytecount; in TIFFGrowStrips()
702 _TIFFmemset(td->td_stripoffset + td->td_nstrips, in TIFFGrowStrips()
704 _TIFFmemset(td->td_stripbytecount + td->td_nstrips, in TIFFGrowStrips()
706 td->td_nstrips += delta; in TIFFGrowStrips()
719 TIFFDirectory *td = &tif->tif_dir; in TIFFAppendToStrip() local
723 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) { in TIFFAppendToStrip()
724 assert(td->td_nstrips > 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()