• Home
  • Raw
  • Download

Lines Matching refs:tif_dir

2721 	if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)  in TIFFReadDirEntryPersampleShort()
2727 nb=tif->tif_dir.td_samplesperpixel; in TIFFReadDirEntryPersampleShort()
2750 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2756 nb=tif->tif_dir.td_samplesperpixel;
3579 if ((tif->tif_dir.td_compression==COMPRESSION_OJPEG)&& in TIFFReadDirectory()
3580 (tif->tif_dir.td_planarconfig==PLANARCONFIG_SEPARATE)) in TIFFReadDirectory()
3591 tif->tif_dir.td_planarconfig=PLANARCONFIG_CONTIG; in TIFFReadDirectory()
3610 tif->tif_dir.td_nstrips = TIFFNumberOfStrips(tif); in TIFFReadDirectory()
3611 tif->tif_dir.td_tilewidth = tif->tif_dir.td_imagewidth; in TIFFReadDirectory()
3612 tif->tif_dir.td_tilelength = tif->tif_dir.td_rowsperstrip; in TIFFReadDirectory()
3613 tif->tif_dir.td_tiledepth = tif->tif_dir.td_imagedepth; in TIFFReadDirectory()
3616 tif->tif_dir.td_nstrips = TIFFNumberOfTiles(tif); in TIFFReadDirectory()
3619 if (!tif->tif_dir.td_nstrips) { in TIFFReadDirectory()
3625 tif->tif_dir.td_stripsperimage = tif->tif_dir.td_nstrips; in TIFFReadDirectory()
3626 if (tif->tif_dir.td_planarconfig == PLANARCONFIG_SEPARATE) in TIFFReadDirectory()
3627 tif->tif_dir.td_stripsperimage /= tif->tif_dir.td_samplesperpixel; in TIFFReadDirectory()
3629 if ((tif->tif_dir.td_compression==COMPRESSION_OJPEG) && in TIFFReadDirectory()
3631 (tif->tif_dir.td_nstrips==1)) { in TIFFReadDirectory()
3697 if (dp->tdir_count != (uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirectory()
3719 _TIFFmemcpy( &(tif->tif_dir.td_stripoffset_entry), in TIFFReadDirectory()
3722 if (!TIFFFetchStripThing(tif,dp,tif->tif_dir.td_nstrips,&tif->tif_dir.td_stripoffset)) in TIFFReadDirectory()
3729 _TIFFmemcpy( &(tif->tif_dir.td_stripbytecount_entry), in TIFFReadDirectory()
3732 if (!TIFFFetchStripThing(tif,dp,tif->tif_dir.td_nstrips,&tif->tif_dir.td_stripbytecount)) in TIFFReadDirectory()
3757 countpersample=(1L<<tif->tif_dir.td_bitspersample); in TIFFReadDirectory()
3824 if (tif->tif_dir.td_compression==COMPRESSION_OJPEG) in TIFFReadDirectory()
3833 else if (tif->tif_dir.td_photometric==PHOTOMETRIC_RGB) in TIFFReadDirectory()
3835 tif->tif_dir.td_photometric=PHOTOMETRIC_YCBCR; in TIFFReadDirectory()
3849 if (tif->tif_dir.td_photometric==PHOTOMETRIC_RGB) in TIFFReadDirectory()
3857 if (tif->tif_dir.td_photometric==PHOTOMETRIC_YCBCR) in TIFFReadDirectory()
3865 else if ((tif->tif_dir.td_photometric==PHOTOMETRIC_MINISWHITE) in TIFFReadDirectory()
3866 || (tif->tif_dir.td_photometric==PHOTOMETRIC_MINISBLACK)) in TIFFReadDirectory()
3880 if (tif->tif_dir.td_photometric == PHOTOMETRIC_PALETTE && in TIFFReadDirectory()
3882 if ( tif->tif_dir.td_bitspersample>=8 && tif->tif_dir.td_samplesperpixel==3) in TIFFReadDirectory()
3883 tif->tif_dir.td_photometric = PHOTOMETRIC_RGB; in TIFFReadDirectory()
3884 else if (tif->tif_dir.td_bitspersample>=8) in TIFFReadDirectory()
3885 tif->tif_dir.td_photometric = PHOTOMETRIC_MINISBLACK; in TIFFReadDirectory()
3896 if (tif->tif_dir.td_compression!=COMPRESSION_OJPEG) in TIFFReadDirectory()
3907 if ((tif->tif_dir.td_planarconfig == PLANARCONFIG_CONTIG && in TIFFReadDirectory()
3908 tif->tif_dir.td_nstrips > 1) || in TIFFReadDirectory()
3909 (tif->tif_dir.td_planarconfig == PLANARCONFIG_SEPARATE && in TIFFReadDirectory()
3910 tif->tif_dir.td_nstrips != (uint32)tif->tif_dir.td_samplesperpixel)) { in TIFFReadDirectory()
3933 ( (tif->tif_dir.td_stripbytecount[0] == 0 && tif->tif_dir.td_stripoffset[0] != 0) || \ in TIFFReadDirectory()
3934 (tif->tif_dir.td_compression == COMPRESSION_NONE && \ in TIFFReadDirectory()
3935 … tif->tif_dir.td_stripbytecount[0] > TIFFGetFileSize(tif) - tif->tif_dir.td_stripoffset[0]) || \ in TIFFReadDirectory()
3937 tif->tif_dir.td_compression == COMPRESSION_NONE && \ in TIFFReadDirectory()
3938 … tif->tif_dir.td_stripbytecount[0] < TIFFScanlineSize64(tif) * tif->tif_dir.td_imagelength) ) in TIFFReadDirectory()
3940 } else if (tif->tif_dir.td_nstrips == 1 in TIFFReadDirectory()
3942 && tif->tif_dir.td_stripoffset[0] != 0 in TIFFReadDirectory()
3956 } else if (tif->tif_dir.td_planarconfig == PLANARCONFIG_CONTIG in TIFFReadDirectory()
3957 && tif->tif_dir.td_nstrips > 2 in TIFFReadDirectory()
3958 && tif->tif_dir.td_compression == COMPRESSION_NONE in TIFFReadDirectory()
3959 && tif->tif_dir.td_stripbytecount[0] != tif->tif_dir.td_stripbytecount[1] in TIFFReadDirectory()
3960 && tif->tif_dir.td_stripbytecount[0] != 0 in TIFFReadDirectory()
3961 && tif->tif_dir.td_stripbytecount[1] != 0 ) { in TIFFReadDirectory()
3986 if (tif->tif_dir.td_bitspersample>=16) in TIFFReadDirectory()
3987 tif->tif_dir.td_maxsamplevalue=0xFFFF; in TIFFReadDirectory()
3989 tif->tif_dir.td_maxsamplevalue = (uint16)((1L<<tif->tif_dir.td_bitspersample)-1); in TIFFReadDirectory()
3997 if (tif->tif_dir.td_nstrips > 1) { in TIFFReadDirectory()
4000 tif->tif_dir.td_stripbytecountsorted = 1; in TIFFReadDirectory()
4001 for (strip = 1; strip < tif->tif_dir.td_nstrips; strip++) { in TIFFReadDirectory()
4002 if (tif->tif_dir.td_stripoffset[strip - 1] > in TIFFReadDirectory()
4003 tif->tif_dir.td_stripoffset[strip]) { in TIFFReadDirectory()
4004 tif->tif_dir.td_stripbytecountsorted = 0; in TIFFReadDirectory()
4025 if ((tif->tif_dir.td_planarconfig==PLANARCONFIG_CONTIG)&& in TIFFReadDirectory()
4026 (tif->tif_dir.td_nstrips==1)&& in TIFFReadDirectory()
4027 (tif->tif_dir.td_compression==COMPRESSION_NONE)&& in TIFFReadDirectory()
4030 if ( !_TIFFFillStriles(tif) || !tif->tif_dir.td_stripbytecount ) in TIFFReadDirectory()
4168 _TIFFmemset(&tif->tif_dir, 0, sizeof(TIFFDirectory)); in TIFFReadCustomDirectory()
4225 expected=(uint32)tif->tif_dir.td_samplesperpixel; in TIFFReadCustomDirectory()
4269 TIFFDirectory *td = &tif->tif_dir; in EstimateStripByteCounts()
5471 register TIFFDirectory *td = &tif->tif_dir; in ChopUpSingleUncompressedStrip()
5562 register TIFFDirectory *td = &tif->tif_dir; in _TIFFFillStriles()
5586 if (tif->tif_dir.td_nstrips > 1 && return_value == 1 ) { in _TIFFFillStriles()
5589 tif->tif_dir.td_stripbytecountsorted = 1; in _TIFFFillStriles()
5590 for (strip = 1; strip < tif->tif_dir.td_nstrips; strip++) { in _TIFFFillStriles()
5591 if (tif->tif_dir.td_stripoffset[strip - 1] > in _TIFFFillStriles()
5592 tif->tif_dir.td_stripoffset[strip]) { in _TIFFFillStriles()
5593 tif->tif_dir.td_stripbytecountsorted = 0; in _TIFFFillStriles()