Home
last modified time | relevance | path

Searched refs:td_bitspersample (Results 1 – 18 of 18) sorted by relevance

/libtiff-4.0.7/libtiff/
H A Dtif_predict.c67 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 Dtif_aux.c98 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 Dtif_strip.c132 …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 Dtif_dir.c201 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 Dtif_next.c161 if( td->td_bitspersample != 2 ) in NeXTPreDecode()
164 td->td_bitspersample); in NeXTPreDecode()
H A Dtif_thunder.c75 if( tif->tif_dir.td_bitspersample != 4 ) in ThunderSetupDecode()
79 (int) tif->tif_dir.td_bitspersample ); in ThunderSetupDecode()
H A Dtif_jpeg.c966 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 Dtif_tile.c161 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 Dtif_pixarlog.c613 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 Dtif_print.c310 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 Dtif_dirwrite.c959 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 Dtif_lzma.c455 sp->opt_delta.dist = (tif->tif_dir.td_bitspersample % 8) ? in TIFFInitLZMA()
456 1 : tif->tif_dir.td_bitspersample / 8; in TIFFInitLZMA()
H A Dtif_dir.h72 uint16 td_bitspersample; member
H A Dtif_getimage.c86 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 Dtif_luv.c1251 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 Dtif_dirread.c3765 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 Dtif_fax3.c483 if (td->td_bitspersample != 1) { in Fax3SetupState()
/libtiff-4.0.7/contrib/pds/
H A Dtif_pdsdirwrite.c585 dir->tdir_count = (uint32) (1L<<tif->tif_dir.td_bitspersample); in TIFFWriteShortTable()
826 tsize_t n = (1L<<td->td_bitspersample) * sizeof (uint16); in TIFFWriteTransferFunction()