Lines Matching refs:tif_dir

2732 	if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)  in TIFFReadDirEntryPersampleShort()
2738 nb=tif->tif_dir.td_samplesperpixel; in TIFFReadDirEntryPersampleShort()
2761 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2767 nb=tif->tif_dir.td_samplesperpixel;
3596 if ((tif->tif_dir.td_compression==COMPRESSION_OJPEG)&& in TIFFReadDirectory()
3597 (tif->tif_dir.td_planarconfig==PLANARCONFIG_SEPARATE)) in TIFFReadDirectory()
3608 tif->tif_dir.td_planarconfig=PLANARCONFIG_CONTIG; in TIFFReadDirectory()
3627 tif->tif_dir.td_nstrips = TIFFNumberOfStrips(tif); in TIFFReadDirectory()
3628 tif->tif_dir.td_tilewidth = tif->tif_dir.td_imagewidth; in TIFFReadDirectory()
3629 tif->tif_dir.td_tilelength = tif->tif_dir.td_rowsperstrip; in TIFFReadDirectory()
3630 tif->tif_dir.td_tiledepth = tif->tif_dir.td_imagedepth; in TIFFReadDirectory()
3633 tif->tif_dir.td_nstrips = TIFFNumberOfTiles(tif); in TIFFReadDirectory()
3636 if (!tif->tif_dir.td_nstrips) { in TIFFReadDirectory()
3642 if (tif->tif_dir.td_nstrips > INT_MAX) { in TIFFReadDirectory()
3645 tif->tif_dir.td_nstrips, in TIFFReadDirectory()
3649 tif->tif_dir.td_stripsperimage = tif->tif_dir.td_nstrips; in TIFFReadDirectory()
3650 if (tif->tif_dir.td_planarconfig == PLANARCONFIG_SEPARATE) in TIFFReadDirectory()
3651 tif->tif_dir.td_stripsperimage /= tif->tif_dir.td_samplesperpixel; in TIFFReadDirectory()
3654 if ((tif->tif_dir.td_compression==COMPRESSION_OJPEG) && in TIFFReadDirectory()
3656 (tif->tif_dir.td_nstrips==1)) { in TIFFReadDirectory()
3724 if (dp->tdir_count != (uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirectory()
3746 _TIFFmemcpy( &(tif->tif_dir.td_stripoffset_entry), in TIFFReadDirectory()
3749 if( tif->tif_dir.td_stripoffset != NULL ) in TIFFReadDirectory()
3757 if (!TIFFFetchStripThing(tif,dp,tif->tif_dir.td_nstrips,&tif->tif_dir.td_stripoffset)) in TIFFReadDirectory()
3764 _TIFFmemcpy( &(tif->tif_dir.td_stripbytecount_entry), in TIFFReadDirectory()
3767 if( tif->tif_dir.td_stripbytecount != NULL ) in TIFFReadDirectory()
3775 … if (!TIFFFetchStripThing(tif,dp,tif->tif_dir.td_nstrips,&tif->tif_dir.td_stripbytecount)) in TIFFReadDirectory()
3803 if (tif->tif_dir.td_bitspersample > 24) in TIFFReadDirectory()
3809 tif->tif_dir.td_bitspersample); in TIFFReadDirectory()
3812 countpersample=(1U<<tif->tif_dir.td_bitspersample); in TIFFReadDirectory()
3879 if (tif->tif_dir.td_compression==COMPRESSION_OJPEG) in TIFFReadDirectory()
3888 else if (tif->tif_dir.td_photometric==PHOTOMETRIC_RGB) in TIFFReadDirectory()
3890 tif->tif_dir.td_photometric=PHOTOMETRIC_YCBCR; in TIFFReadDirectory()
3904 if (tif->tif_dir.td_photometric==PHOTOMETRIC_RGB) in TIFFReadDirectory()
3912 if (tif->tif_dir.td_photometric==PHOTOMETRIC_YCBCR) in TIFFReadDirectory()
3920 else if ((tif->tif_dir.td_photometric==PHOTOMETRIC_MINISWHITE) in TIFFReadDirectory()
3921 || (tif->tif_dir.td_photometric==PHOTOMETRIC_MINISBLACK)) in TIFFReadDirectory()
3935 if (tif->tif_dir.td_photometric == PHOTOMETRIC_PALETTE && in TIFFReadDirectory()
3937 if ( tif->tif_dir.td_bitspersample>=8 && tif->tif_dir.td_samplesperpixel==3) in TIFFReadDirectory()
3938 tif->tif_dir.td_photometric = PHOTOMETRIC_RGB; in TIFFReadDirectory()
3939 else if (tif->tif_dir.td_bitspersample>=8) in TIFFReadDirectory()
3940 tif->tif_dir.td_photometric = PHOTOMETRIC_MINISBLACK; in TIFFReadDirectory()
3951 if (tif->tif_dir.td_compression!=COMPRESSION_OJPEG) in TIFFReadDirectory()
3962 if ((tif->tif_dir.td_planarconfig == PLANARCONFIG_CONTIG && in TIFFReadDirectory()
3963 tif->tif_dir.td_nstrips > 1) || in TIFFReadDirectory()
3964 (tif->tif_dir.td_planarconfig == PLANARCONFIG_SEPARATE && in TIFFReadDirectory()
3965 tif->tif_dir.td_nstrips != (uint32)tif->tif_dir.td_samplesperpixel)) { in TIFFReadDirectory()
3988 ( (tif->tif_dir.td_stripbytecount[0] == 0 && tif->tif_dir.td_stripoffset[0] != 0) || \ in TIFFReadDirectory()
3989 (tif->tif_dir.td_compression == COMPRESSION_NONE && \ in TIFFReadDirectory()
3990 … tif->tif_dir.td_stripbytecount[0] > TIFFGetFileSize(tif) - tif->tif_dir.td_stripoffset[0]) || \ in TIFFReadDirectory()
3992 tif->tif_dir.td_compression == COMPRESSION_NONE && \ in TIFFReadDirectory()
3993 … tif->tif_dir.td_stripbytecount[0] < TIFFScanlineSize64(tif) * tif->tif_dir.td_imagelength) ) in TIFFReadDirectory()
3995 } else if (tif->tif_dir.td_nstrips == 1 in TIFFReadDirectory()
3997 && tif->tif_dir.td_stripoffset[0] != 0 in TIFFReadDirectory()
4011 } else if (tif->tif_dir.td_planarconfig == PLANARCONFIG_CONTIG in TIFFReadDirectory()
4012 && tif->tif_dir.td_nstrips > 2 in TIFFReadDirectory()
4013 && tif->tif_dir.td_compression == COMPRESSION_NONE in TIFFReadDirectory()
4014 && tif->tif_dir.td_stripbytecount[0] != tif->tif_dir.td_stripbytecount[1] in TIFFReadDirectory()
4015 && tif->tif_dir.td_stripbytecount[0] != 0 in TIFFReadDirectory()
4016 && tif->tif_dir.td_stripbytecount[1] != 0 ) { in TIFFReadDirectory()
4041 if (tif->tif_dir.td_bitspersample>=16) in TIFFReadDirectory()
4042 tif->tif_dir.td_maxsamplevalue=0xFFFF; in TIFFReadDirectory()
4044 tif->tif_dir.td_maxsamplevalue = (uint16)((1L<<tif->tif_dir.td_bitspersample)-1); in TIFFReadDirectory()
4052 if (tif->tif_dir.td_nstrips > 1) { in TIFFReadDirectory()
4055 tif->tif_dir.td_stripbytecountsorted = 1; in TIFFReadDirectory()
4056 for (strip = 1; strip < tif->tif_dir.td_nstrips; strip++) { in TIFFReadDirectory()
4057 if (tif->tif_dir.td_stripoffset[strip - 1] > in TIFFReadDirectory()
4058 tif->tif_dir.td_stripoffset[strip]) { in TIFFReadDirectory()
4059 tif->tif_dir.td_stripbytecountsorted = 0; in TIFFReadDirectory()
4080 if ((tif->tif_dir.td_planarconfig==PLANARCONFIG_CONTIG)&& in TIFFReadDirectory()
4081 (tif->tif_dir.td_nstrips==1)&& in TIFFReadDirectory()
4082 (tif->tif_dir.td_compression==COMPRESSION_NONE)&& in TIFFReadDirectory()
4085 if ( !_TIFFFillStriles(tif) || !tif->tif_dir.td_stripbytecount ) in TIFFReadDirectory()
4223 _TIFFmemset(&tif->tif_dir, 0, sizeof(TIFFDirectory)); in TIFFReadCustomDirectory()
4280 expected=(uint32)tif->tif_dir.td_samplesperpixel; in TIFFReadCustomDirectory()
4324 TIFFDirectory *td = &tif->tif_dir; in EstimateStripByteCounts()
5536 register TIFFDirectory *td = &tif->tif_dir; in ChopUpSingleUncompressedStrip()
5630 register TIFFDirectory *td = &tif->tif_dir; in _TIFFFillStrilesInternal()
5655 if (tif->tif_dir.td_nstrips > 1 && return_value == 1 ) { in _TIFFFillStrilesInternal()
5658 tif->tif_dir.td_stripbytecountsorted = 1; in _TIFFFillStrilesInternal()
5659 for (strip = 1; strip < tif->tif_dir.td_nstrips; strip++) { in _TIFFFillStrilesInternal()
5660 if (tif->tif_dir.td_stripoffset[strip - 1] > in _TIFFFillStrilesInternal()
5661 tif->tif_dir.td_stripoffset[strip]) { in _TIFFFillStrilesInternal()
5662 tif->tif_dir.td_stripbytecountsorted = 0; in _TIFFFillStrilesInternal()