| /libtiff-4.0.7/libtiff/ |
| H A D | tif_predict.c | 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() 83 if (td->td_bitspersample != 16 in PredictorSetup() 84 && td->td_bitspersample != 24 in PredictorSetup() 85 && td->td_bitspersample != 32 in PredictorSetup() 124 switch (td->td_bitspersample) { in PredictorSetupDecode() 203 switch (td->td_bitspersample) { in PredictorSetupEncode() 408 uint32 bps = tif->tif_dir.td_bitspersample / 8; in fpAcc() [all …]
|
| H A D | tif_aux.c | 98 if (td->td_bitspersample >= sizeof(tmsize_t) * 8 - 2) in TIFFDefaultTransferFunction() 101 n = ((tmsize_t)1)<<td->td_bitspersample; in TIFFDefaultTransferFunction() 159 (float)((1L<<td->td_bitspersample)-1L); in TIFFDefaultRefBlackWhite() 185 *va_arg(ap, uint16 *) = td->td_bitspersample; in TIFFVGetFieldDefaulted() 229 *va_arg(ap, uint16 *) = (1<<td->td_bitspersample)-1; in TIFFVGetFieldDefaulted()
|
| H A D | tif_strip.c | 132 …samplingrow_size=TIFFhowmany8_64(_TIFFMultiply64(tif,samplingrow_samples,td->td_bitspersample,modu… in TIFFVStripSize64() 318 …samplingrow_size = TIFFhowmany_64(_TIFFMultiply64(tif,samplingrow_samples,td->td_bitspersample,mod… in TIFFScanlineSize64() 325 … scanline_size=TIFFhowmany_64(_TIFFMultiply64(tif,scanline_samples,td->td_bitspersample,module),8); in TIFFScanlineSize64() 330 …scanline_size=TIFFhowmany_64(_TIFFMultiply64(tif,td->td_imagewidth,td->td_bitspersample,module),8); in TIFFScanlineSize64() 367 scanline = _TIFFMultiply64(tif, td->td_bitspersample, td->td_imagewidth, module); in TIFFRasterScanlineSize64()
|
| H A D | tif_dir.c | 201 if (td->td_bitspersample == 8) in _TIFFVSetField() 203 else if (td->td_bitspersample == 16) in _TIFFVSetField() 205 else if (td->td_bitspersample == 24) in _TIFFVSetField() 207 else if (td->td_bitspersample == 32) in _TIFFVSetField() 209 else if (td->td_bitspersample == 64) in _TIFFVSetField() 211 else if (td->td_bitspersample == 128) /* two 64's */ in _TIFFVSetField() 350 v32 = (uint32)(1L<<td->td_bitspersample); in _TIFFVSetField() 413 && td->td_bitspersample == 32 in _TIFFVSetField() 418 && td->td_bitspersample == 64 in _TIFFVSetField() 878 *va_arg(ap, uint16*) = td->td_bitspersample; in _TIFFVGetField() [all …]
|
| H A D | tif_next.c | 161 if( td->td_bitspersample != 2 ) in NeXTPreDecode() 164 td->td_bitspersample); in NeXTPreDecode()
|
| H A D | tif_thunder.c | 75 if( tif->tif_dir.td_bitspersample != 4 ) in ThunderSetupDecode() 79 (int) tif->tif_dir.td_bitspersample ); in ThunderSetupDecode()
|
| H A D | tif_jpeg.c | 966 if( tif->tif_dir.td_bitspersample == 12 ) in JPEGSetupDecode() 1094 if (12 != td->td_bitspersample && 8 != td->td_bitspersample) { in JPEGPreDecode() 1098 sp->cinfo.d.data_precision = td->td_bitspersample; in JPEGPreDecode() 1099 sp->cinfo.d.bits_in_jsample = td->td_bitspersample; in JPEGPreDecode() 1101 if (sp->cinfo.d.data_precision != td->td_bitspersample) { in JPEGPreDecode() 1584 if( tif->tif_dir.td_bitspersample == 12 ) in JPEGSetupEncode() 1639 long top = 1L << td->td_bitspersample; in JPEGSetupEncode() 1673 if (td->td_bitspersample != 8 && td->td_bitspersample != 12) in JPEGSetupEncode() 1675 if (td->td_bitspersample != BITS_IN_JSAMPLE ) in JPEGSetupEncode() 1679 (int) td->td_bitspersample); in JPEGSetupEncode() [all …]
|
| H A D | tif_tile.c | 161 rowsize = _TIFFMultiply64(tif, td->td_bitspersample, td->td_tilewidth, in TIFFTileRowSize64() 242 …samplingrow_size=TIFFhowmany8_64(_TIFFMultiply64(tif,samplingrow_samples,td->td_bitspersample,modu… in TIFFVTileSize64()
|
| H A D | tif_pixarlog.c | 613 switch (td->td_bitspersample) { in PixarLogGuessDataFmt() 704 td->td_bitspersample); in PixarLogSetupDecode() 769 td->td_bitspersample); in PixarLogDecode() 874 td->td_bitspersample); in PixarLogDecode() 906 …ntdata, module, "PixarLog compression can't handle %d bit linear encodings", td->td_bitspersample); in PixarLogSetupEncode() 1130 td->td_bitspersample); in PixarLogEncode() 1163 td->td_bitspersample); in PixarLogEncode() 1246 td->td_bitspersample = 8; in PixarLogClose()
|
| H A D | tif_print.c | 310 fprintf(fd, " Bits/Sample: %u\n", td->td_bitspersample); in TIFFPrintDirectory() 522 n = 1L<<td->td_bitspersample; in TIFFPrintDirectory() 544 n = 1L<<td->td_bitspersample; in TIFFPrintDirectory()
|
| H A D | tif_dirwrite.c | 959 if (tif->tif_dir.td_bitspersample<=32) in TIFFWriteDirectoryTagSampleformatArray() 971 if (tif->tif_dir.td_bitspersample<=8) in TIFFWriteDirectoryTagSampleformatArray() 977 else if (tif->tif_dir.td_bitspersample<=16) in TIFFWriteDirectoryTagSampleformatArray() 991 if (tif->tif_dir.td_bitspersample<=8) in TIFFWriteDirectoryTagSampleformatArray() 997 else if (tif->tif_dir.td_bitspersample<=16) in TIFFWriteDirectoryTagSampleformatArray() 1025 if (tif->tif_dir.td_bitspersample<=32) 1030 if (tif->tif_dir.td_bitspersample<=8) 1032 else if (tif->tif_dir.td_bitspersample<=16) 1037 if (tif->tif_dir.td_bitspersample<=8) 1786 m=(1<<tif->tif_dir.td_bitspersample); in TIFFWriteDirectoryTagColormap() [all …]
|
| H A D | tif_lzma.c | 455 sp->opt_delta.dist = (tif->tif_dir.td_bitspersample % 8) ? in TIFFInitLZMA() 456 1 : tif->tif_dir.td_bitspersample / 8; in TIFFInitLZMA()
|
| H A D | tif_dir.h | 72 uint16 td_bitspersample; member
|
| H A D | tif_getimage.c | 86 switch (td->td_bitspersample) { in TIFFRGBAImageOK() 95 td->td_bitspersample); in TIFFRGBAImageOK() 122 && td->td_bitspersample < 8 ) { in TIFFRGBAImageOK() 128 td->td_bitspersample); in TIFFRGBAImageOK() 198 … if ( td->td_samplesperpixel != 3 || colorchannels != 3 || td->td_bitspersample != 8 ) { in TIFFRGBAImageOK() 203 "Bits/sample", td->td_bitspersample); in TIFFRGBAImageOK()
|
| H A D | tif_luv.c | 1251 switch (PACK(td->td_samplesperpixel, td->td_bitspersample, td->td_sampleformat)) { in LogL16GuessDataFmt() 1335 switch (PACK(td->td_bitspersample, td->td_sampleformat)) { in LogLuvGuessDataFmt() 1577 td->td_bitspersample = 16; in LogLuvClose()
|
| H A D | tif_dirread.c | 3765 if (tif->tif_dir.td_bitspersample > 24) in TIFFReadDirectory() 3771 tif->tif_dir.td_bitspersample); in TIFFReadDirectory() 3774 countpersample=(1U<<tif->tif_dir.td_bitspersample); in TIFFReadDirectory() 3899 if ( tif->tif_dir.td_bitspersample>=8 && tif->tif_dir.td_samplesperpixel==3) in TIFFReadDirectory() 3901 else if (tif->tif_dir.td_bitspersample>=8) in TIFFReadDirectory() 4003 if (tif->tif_dir.td_bitspersample>=16) in TIFFReadDirectory() 4006 tif->tif_dir.td_maxsamplevalue = (uint16)((1L<<tif->tif_dir.td_bitspersample)-1); in TIFFReadDirectory()
|
| H A D | tif_fax3.c | 483 if (td->td_bitspersample != 1) { in Fax3SetupState()
|
| /libtiff-4.0.7/contrib/pds/ |
| H A D | tif_pdsdirwrite.c | 585 dir->tdir_count = (uint32) (1L<<tif->tif_dir.td_bitspersample); in TIFFWriteShortTable() 826 tsize_t n = (1L<<td->td_bitspersample) * sizeof (uint16); in TIFFWriteTransferFunction()
|