| /libtiff-4.0.7/libtiff/ |
| H A D | tif_write.c | 67 td = &tif->tif_dir; in TIFFWriteScanline() 91 strip = sample*td->td_stripsperimage + row/td->td_rowsperstrip; in TIFFWriteScanline() 117 TIFFhowmany_32(td->td_imagelength,td->td_rowsperstrip); in TIFFWriteScanline() 123 (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFWriteScanline() 214 TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip); in TIFFWriteEncodedStrip() 335 TIFFhowmany_32(td->td_imagelength,td->td_rowsperstrip); in TIFFWriteRawStrip() 539 td->td_nstrips = td->td_stripsperimage; in TIFFSetupStrips() 541 td->td_stripsperimage /= td->td_samplesperpixel; in TIFFSetupStrips() 546 if (td->td_stripoffset == NULL || td->td_stripbytecount == NULL) in TIFFSetupStrips() 702 _TIFFmemset(td->td_stripoffset + td->td_nstrips, in TIFFGrowStrips() [all …]
|
| H A D | tif_print.c | 285 td->td_xresolution, td->td_yresolution); in TIFFPrintDirectory() 308 td->td_xposition, td->td_yposition); in TIFFPrintDirectory() 334 td->td_sampleformat, td->td_sampleformat); in TIFFPrintDirectory() 345 td->td_compression, td->td_compression); in TIFFPrintDirectory() 361 td->td_photometric, td->td_photometric); in TIFFPrintDirectory() 400 td->td_inknameslen - (cp - td->td_inknames); in TIFFPrintDirectory() 421 td->td_threshholding, td->td_threshholding); in TIFFPrintDirectory() 436 td->td_fillorder, td->td_fillorder); in TIFFPrintDirectory() 469 td->td_orientation, td->td_orientation); in TIFFPrintDirectory() 511 td->td_planarconfig, td->td_planarconfig); in TIFFPrintDirectory() [all …]
|
| H A D | tif_dir.c | 121 _TIFFsetShortArray(&td->td_sampleinfo, va, td->td_extrasamples); in setExtraSamples() 290 td->td_tilewidth = td->td_imagewidth; in _TIFFVSetField() 445 v = (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1; in _TIFFVSetField() 528 tv = td->td_customValues + (td->td_customValueCount - 1); in _TIFFVSetField() 823 td->td_customValues[i] = td->td_customValues[i+1]; in TIFFUnsetField() 1029 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in _TIFFVGetField() 1204 td->member = 0; \ 1325 _TIFFmemset(td, 0, sizeof (*td)); in TIFFDefaultDirectory() 1332 td->td_tilewidth = 0; in TIFFDefaultDirectory() 1333 td->td_tilelength = 0; in TIFFDefaultDirectory() [all …]
|
| H A D | tif_tile.c | 41 uint32 dx = td->td_tilewidth; in TIFFComputeTile() 46 if (td->td_imagedepth == 1) in TIFFComputeTile() 49 dx = td->td_imagewidth; in TIFFComputeTile() 51 dy = td->td_imagelength; in TIFFComputeTile() 53 dz = td->td_imagedepth; in TIFFComputeTile() 124 dx = td->td_imagewidth; in TIFFNumberOfTiles() 126 dy = td->td_imagelength; in TIFFNumberOfTiles() 128 dz = td->td_imagedepth; in TIFFNumberOfTiles() 161 rowsize = _TIFFMultiply64(tif, td->td_bitspersample, td->td_tilewidth, in TIFFTileRowSize64() 205 if (td->td_tilelength == 0 || td->td_tilewidth == 0 || in TIFFVTileSize64() [all …]
|
| H A D | tif_aux.c | 112 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFDefaultTransferFunction() 141 if (td->td_refblackwhite == NULL) in TIFFDefaultRefBlackWhite() 148 td->td_refblackwhite[0] = 0.0F; in TIFFDefaultRefBlackWhite() 149 td->td_refblackwhite[1] = td->td_refblackwhite[3] = in TIFFDefaultRefBlackWhite() 150 td->td_refblackwhite[5] = 255.0F; in TIFFDefaultRefBlackWhite() 151 td->td_refblackwhite[2] = td->td_refblackwhite[4] = 128.0F; in TIFFDefaultRefBlackWhite() 158 td->td_refblackwhite[2*i+1] = in TIFFDefaultRefBlackWhite() 176 TIFFDirectory *td = &tif->tif_dir; in TIFFVGetFieldDefaulted() local 243 (td->td_extrasamples == 1 && in TIFFVGetFieldDefaulted() 291 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFVGetFieldDefaulted() [all …]
|
| H A D | tif_strip.c | 41 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeStrip() local 44 strip = row / td->td_rowsperstrip; in TIFFComputeStrip() 72 if( td->td_nstrips ) in TIFFNumberOfStrips() 73 return td->td_nstrips; in TIFFNumberOfStrips() 76 TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip)); in TIFFNumberOfStrips() 92 nrows=td->td_imagelength; in TIFFVStripSize64() 111 if(td->td_samplesperpixel!=3) in TIFFVStripSize64() 216 if (rps > td->td_imagelength) in TIFFStripSize64() 217 rps = td->td_imagelength; in TIFFStripSize64() 324 scanline_samples=_TIFFMultiply64(tif,td->td_imagewidth,td->td_samplesperpixel,module); in TIFFScanlineSize64() [all …]
|
| H A D | tif_read.c | 203 strip = (uint32)sample*td->td_stripsperimage + row/td->td_rowsperstrip; in TIFFSeek() 325 TIFFDirectory *td = &tif->tif_dir; in TIFFReadEncodedStrip() local 334 if (strip>=td->td_nstrips) in TIFFReadEncodedStrip() 346 rowsperstrip=td->td_rowsperstrip; in TIFFReadEncodedStrip() 348 rowsperstrip=td->td_imagelength; in TIFFReadEncodedStrip() 470 if (strip >= td->td_nstrips) { in TIFFReadRawStrip() 681 if (tile >= td->td_nstrips) { in TIFFReadEncodedTile() 805 if (tile >= td->td_nstrips) { in TIFFReadRawTile() 1010 tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip; in TIFFStartStrip() 1047 howmany32=TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth); in TIFFStartTile() [all …]
|
| H A D | tif_jpeg.c | 963 TIFFDirectory *td = &tif->tif_dir; in JPEGSetupDecode() local 1011 TIFFDirectory *td = &tif->tif_dir; in JPEGPreDecode() local 1044 segment_width = td->td_imagewidth; in JPEGPreDecode() 1094 if (12 != td->td_bitspersample && 8 != td->td_bitspersample) { in JPEGPreDecode() 1609 …if ((td->td_photometric == PHOTOMETRIC_MINISWHITE || td->td_photometric == PHOTOMETRIC_MINISBLACK)… in JPEGSetupEncode() 1611 else if (td->td_photometric == PHOTOMETRIC_RGB && td->td_samplesperpixel == 3) in JPEGSetupEncode() 1613 else if (td->td_photometric == PHOTOMETRIC_SEPARATED && td->td_samplesperpixel == 4) in JPEGSetupEncode() 1673 if (td->td_bitspersample != 8 && td->td_bitspersample != 12) in JPEGSetupEncode() 1679 (int) td->td_bitspersample); in JPEGSetupEncode() 1700 if (td->td_rowsperstrip < td->td_imagelength && in JPEGSetupEncode() [all …]
|
| H A D | tif_luv.c | 1251 switch (PACK(td->td_samplesperpixel, td->td_bitspersample, td->td_sampleformat)) { in LogL16GuessDataFmt() 1287 if( td->td_samplesperpixel != 1 ) in LogL16InitState() 1314 sp->tbuflen = multiply_ms(td->td_tilewidth, td->td_tilelength); in LogL16InitState() 1316 sp->tbuflen = multiply_ms(td->td_imagewidth, td->td_rowsperstrip); in LogL16InitState() 1335 switch (PACK(td->td_bitspersample, td->td_sampleformat)) { in LogLuvGuessDataFmt() 1414 sp->tbuflen = multiply_ms(td->td_tilewidth, td->td_tilelength); in LogLuvInitState() 1416 sp->tbuflen = multiply_ms(td->td_imagewidth, td->td_rowsperstrip); in LogLuvInitState() 1440 switch (td->td_photometric) { in LogLuvSetupDecode() 1501 switch (td->td_photometric) { in LogLuvSetupEncode() 1575 td->td_samplesperpixel = in LogLuvClose() [all …]
|
| H A D | tif_extension.c | 39 TIFFDirectory* td = &tif->tif_dir; in TIFFGetTagListCount() local 41 return td->td_customValueCount; in TIFFGetTagListCount() 47 TIFFDirectory* td = &tif->tif_dir; in TIFFGetTagListEntry() local 49 if( tag_index < 0 || tag_index >= td->td_customValueCount ) in TIFFGetTagListEntry() 52 return td->td_customValues[tag_index].info->field_tag; in TIFFGetTagListEntry()
|
| H A D | tif_predict.c | 60 TIFFDirectory* td = &tif->tif_dir; in PredictorSetup() local 67 if (td->td_bitspersample != 8 in PredictorSetup() 68 && td->td_bitspersample != 16 in PredictorSetup() 69 && td->td_bitspersample != 32) { in PredictorSetup() 72 td->td_bitspersample); in PredictorSetup() 80 td->td_sampleformat); in PredictorSetup() 100 td->td_samplesperpixel : 1); in PredictorSetup() 118 TIFFDirectory* td = &tif->tif_dir; in PredictorSetupDecode() local 124 switch (td->td_bitspersample) { in PredictorSetupDecode() 197 TIFFDirectory* td = &tif->tif_dir; in PredictorSetupEncode() local [all …]
|
| H A D | tif_pixarlog.c | 608 int format = td->td_sampleformat; in PixarLogGuessDataFmt() 613 switch (td->td_bitspersample) { in PixarLogGuessDataFmt() 675 TIFFDirectory *td = &tif->tif_dir; in PixarLogSetupDecode() local 688 td->td_samplesperpixel : 1); in PixarLogSetupDecode() 704 td->td_bitspersample); in PixarLogSetupDecode() 769 td->td_bitspersample); in PixarLogDecode() 874 td->td_bitspersample); in PixarLogDecode() 895 td->td_samplesperpixel : 1); in PixarLogSetupEncode() 1130 td->td_bitspersample); in PixarLogEncode() 1163 td->td_bitspersample); in PixarLogEncode() [all …]
|
| H A D | tif_next.c | 158 TIFFDirectory *td = &tif->tif_dir; in NeXTPreDecode() local 161 if( td->td_bitspersample != 2 ) in NeXTPreDecode() 164 td->td_bitspersample); in NeXTPreDecode()
|
| H A D | tif_dirread.c | 4293 if (td->td_stripbytecount) in EstimateStripByteCounts() 4348 if (td->td_stripoffset[strip]+td->td_stripbytecount[strip] > filesize) in EstimateStripByteCounts() 4349 td->td_stripbytecount[strip] = filesize - td->td_stripoffset[strip]; in EstimateStripByteCounts() 4357 uint32 rowsperstrip = td->td_imagelength/td->td_stripsperimage; in EstimateStripByteCounts() 4363 td->td_rowsperstrip = td->td_imagelength; in EstimateStripByteCounts() 5512 offset = td->td_stripoffset[0]; in ChopUpSingleUncompressedStrip() 5576 td->td_stripsperimage = td->td_nstrips = nstrips32; in ChopUpSingleUncompressedStrip() 5580 _TIFFfree(td->td_stripoffset); in ChopUpSingleUncompressedStrip() 5582 td->td_stripoffset = newoffsets; in ChopUpSingleUncompressedStrip() 5604 td->td_nstrips,&td->td_stripoffset)) in _TIFFFillStrilesInternal() [all …]
|
| H A D | tif_getimage.c | 78 TIFFDirectory* td = &tif->tif_dir; in TIFFRGBAImageOK() local 86 switch (td->td_bitspersample) { in TIFFRGBAImageOK() 95 td->td_bitspersample); in TIFFRGBAImageOK() 102 colorchannels = td->td_samplesperpixel - td->td_extrasamples; in TIFFRGBAImageOK() 120 if (td->td_planarconfig == PLANARCONFIG_CONTIG in TIFFRGBAImageOK() 121 && td->td_samplesperpixel != 1 in TIFFRGBAImageOK() 122 && td->td_bitspersample < 8 ) { in TIFFRGBAImageOK() 127 "Samples/pixel", td->td_samplesperpixel, in TIFFRGBAImageOK() 128 td->td_bitspersample); in TIFFRGBAImageOK() 162 if (td->td_samplesperpixel < 4) { in TIFFRGBAImageOK() [all …]
|
| H A D | tif_fax3.c | 476 TIFFDirectory* td = &tif->tif_dir; in Fax3SetupState() local 483 if (td->td_bitspersample != 1) { in Fax3SetupState() 493 rowpixels = td->td_tilewidth; in Fax3SetupState() 496 rowpixels = td->td_imagewidth; in Fax3SetupState() 505 td->td_compression == COMPRESSION_CCITTFAX4 in Fax3SetupState() 536 if (td->td_compression == COMPRESSION_CCITTFAX3 in Fax3SetupState()
|
| /libtiff-4.0.7/contrib/pds/ |
| H A D | tif_pdsdirread.c | 124 register TIFFDirectory* td; in TIFFReadPrivateDataSubDirectory() local 199 td = &tif->tif_dir; in TIFFReadPrivateDataSubDirectory() 294 if (td->td_stripbytecount) in EstimateStripByteCounts() 296 td->td_stripbytecount = (uint32*) in EstimateStripByteCounts() 324 if (td->td_stripoffset[i] + td->td_stripbytecount[i] > filesize) in EstimateStripByteCounts() 325 td->td_stripbytecount[i] = in EstimateStripByteCounts() 329 uint32 rowsperstrip = td->td_imagelength / td->td_nstrips; in EstimateStripByteCounts() 335 td->td_rowsperstrip = td->td_imagelength; in EstimateStripByteCounts() 1116 td->td_stripsperimage = td->td_nstrips = nstrips; in ChopUpSingleUncompressedStrip() 1120 _TIFFfree(td->td_stripoffset); in ChopUpSingleUncompressedStrip() [all …]
|
| H A D | tif_pdsdirwrite.c | 825 TIFFDirectory* td = &tif->tif_dir; in TIFFWriteTransferFunction() local 826 tsize_t n = (1L<<td->td_bitspersample) * sizeof (uint16); in TIFFWriteTransferFunction() 827 uint16** tf = td->td_transferfunction; in TIFFWriteTransferFunction() 836 switch (td->td_samplesperpixel - td->td_extrasamples) { in TIFFWriteTransferFunction()
|
| /libtiff-4.0.7/contrib/ras/ |
| H A D | tif2ras.c | 86 TIFFDirectory *td; local
|
| /libtiff-4.0.7/ |
| H A D | ChangeLog | 92 * libtiff/tif_strip.c: make TIFFNumberOfStrips() return the td->td_nstrips 2895 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
|