• Home
  • Raw
  • Download

Lines Matching refs:td

92 TIFFDefaultTransferFunction(TIFFDirectory* td)  in TIFFDefaultTransferFunction()  argument
94 uint16 **tf = td->td_transferfunction; in TIFFDefaultTransferFunction()
98 if (td->td_bitspersample >= sizeof(tmsize_t) * 8 - 2) in TIFFDefaultTransferFunction()
101 n = ((tmsize_t)1)<<td->td_bitspersample; in TIFFDefaultTransferFunction()
112 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFDefaultTransferFunction()
136 TIFFDefaultRefBlackWhite(TIFFDirectory* td) in TIFFDefaultRefBlackWhite() argument
140 td->td_refblackwhite = (float *)_TIFFmalloc(6*sizeof (float)); in TIFFDefaultRefBlackWhite()
141 if (td->td_refblackwhite == NULL) in TIFFDefaultRefBlackWhite()
143 if (td->td_photometric == PHOTOMETRIC_YCBCR) { 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()
157 td->td_refblackwhite[2*i+0] = 0; in TIFFDefaultRefBlackWhite()
158 td->td_refblackwhite[2*i+1] = in TIFFDefaultRefBlackWhite()
159 (float)((1L<<td->td_bitspersample)-1L); in TIFFDefaultRefBlackWhite()
176 TIFFDirectory *td = &tif->tif_dir; in TIFFVGetFieldDefaulted() local
182 *va_arg(ap, uint32 *) = td->td_subfiletype; in TIFFVGetFieldDefaulted()
185 *va_arg(ap, uint16 *) = td->td_bitspersample; in TIFFVGetFieldDefaulted()
188 *va_arg(ap, uint16 *) = td->td_threshholding; in TIFFVGetFieldDefaulted()
191 *va_arg(ap, uint16 *) = td->td_fillorder; in TIFFVGetFieldDefaulted()
194 *va_arg(ap, uint16 *) = td->td_orientation; in TIFFVGetFieldDefaulted()
197 *va_arg(ap, uint16 *) = td->td_samplesperpixel; in TIFFVGetFieldDefaulted()
200 *va_arg(ap, uint32 *) = td->td_rowsperstrip; in TIFFVGetFieldDefaulted()
203 *va_arg(ap, uint16 *) = td->td_minsamplevalue; in TIFFVGetFieldDefaulted()
206 *va_arg(ap, uint16 *) = td->td_maxsamplevalue; in TIFFVGetFieldDefaulted()
209 *va_arg(ap, uint16 *) = td->td_planarconfig; in TIFFVGetFieldDefaulted()
212 *va_arg(ap, uint16 *) = td->td_resolutionunit; in TIFFVGetFieldDefaulted()
229 *va_arg(ap, uint16 *) = (1<<td->td_bitspersample)-1; in TIFFVGetFieldDefaulted()
238 *va_arg(ap, uint16 *) = td->td_extrasamples; in TIFFVGetFieldDefaulted()
239 *va_arg(ap, uint16 **) = td->td_sampleinfo; in TIFFVGetFieldDefaulted()
243 (td->td_extrasamples == 1 && in TIFFVGetFieldDefaulted()
244 td->td_sampleinfo[0] == EXTRASAMPLE_ASSOCALPHA); in TIFFVGetFieldDefaulted()
247 *va_arg(ap, uint32 *) = td->td_tiledepth; in TIFFVGetFieldDefaulted()
250 *va_arg(ap, uint16 *) = td->td_sampleformat-1; in TIFFVGetFieldDefaulted()
253 *va_arg(ap, uint16 *) = td->td_sampleformat; in TIFFVGetFieldDefaulted()
256 *va_arg(ap, uint32 *) = td->td_imagedepth; in TIFFVGetFieldDefaulted()
266 *va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[0]; in TIFFVGetFieldDefaulted()
267 *va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[1]; in TIFFVGetFieldDefaulted()
270 *va_arg(ap, uint16 *) = td->td_ycbcrpositioning; in TIFFVGetFieldDefaulted()
285 if (!td->td_transferfunction[0] && in TIFFVGetFieldDefaulted()
286 !TIFFDefaultTransferFunction(td)) { in TIFFVGetFieldDefaulted()
290 *va_arg(ap, uint16 **) = td->td_transferfunction[0]; in TIFFVGetFieldDefaulted()
291 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFVGetFieldDefaulted()
292 *va_arg(ap, uint16 **) = td->td_transferfunction[1]; in TIFFVGetFieldDefaulted()
293 *va_arg(ap, uint16 **) = td->td_transferfunction[2]; in TIFFVGetFieldDefaulted()
297 if (!td->td_refblackwhite && !TIFFDefaultRefBlackWhite(td)) in TIFFVGetFieldDefaulted()
299 *va_arg(ap, float **) = td->td_refblackwhite; in TIFFVGetFieldDefaulted()