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()
111 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFDefaultTransferFunction()
133 TIFFDefaultRefBlackWhite(TIFFDirectory* td) in TIFFDefaultRefBlackWhite() argument
137 if (!(td->td_refblackwhite = (float *)_TIFFmalloc(6*sizeof (float)))) in TIFFDefaultRefBlackWhite()
139 if (td->td_photometric == PHOTOMETRIC_YCBCR) { in TIFFDefaultRefBlackWhite()
144 td->td_refblackwhite[0] = 0.0F; in TIFFDefaultRefBlackWhite()
145 td->td_refblackwhite[1] = td->td_refblackwhite[3] = in TIFFDefaultRefBlackWhite()
146 td->td_refblackwhite[5] = 255.0F; in TIFFDefaultRefBlackWhite()
147 td->td_refblackwhite[2] = td->td_refblackwhite[4] = 128.0F; in TIFFDefaultRefBlackWhite()
153 td->td_refblackwhite[2*i+0] = 0; in TIFFDefaultRefBlackWhite()
154 td->td_refblackwhite[2*i+1] = in TIFFDefaultRefBlackWhite()
155 (float)((1L<<td->td_bitspersample)-1L); in TIFFDefaultRefBlackWhite()
172 TIFFDirectory *td = &tif->tif_dir; in TIFFVGetFieldDefaulted() local
178 *va_arg(ap, uint32 *) = td->td_subfiletype; in TIFFVGetFieldDefaulted()
181 *va_arg(ap, uint16 *) = td->td_bitspersample; in TIFFVGetFieldDefaulted()
184 *va_arg(ap, uint16 *) = td->td_threshholding; in TIFFVGetFieldDefaulted()
187 *va_arg(ap, uint16 *) = td->td_fillorder; in TIFFVGetFieldDefaulted()
190 *va_arg(ap, uint16 *) = td->td_orientation; in TIFFVGetFieldDefaulted()
193 *va_arg(ap, uint16 *) = td->td_samplesperpixel; in TIFFVGetFieldDefaulted()
196 *va_arg(ap, uint32 *) = td->td_rowsperstrip; in TIFFVGetFieldDefaulted()
199 *va_arg(ap, uint16 *) = td->td_minsamplevalue; in TIFFVGetFieldDefaulted()
202 *va_arg(ap, uint16 *) = td->td_maxsamplevalue; in TIFFVGetFieldDefaulted()
205 *va_arg(ap, uint16 *) = td->td_planarconfig; in TIFFVGetFieldDefaulted()
208 *va_arg(ap, uint16 *) = td->td_resolutionunit; in TIFFVGetFieldDefaulted()
218 *va_arg(ap, uint16 *) = (1<<td->td_bitspersample)-1; in TIFFVGetFieldDefaulted()
227 *va_arg(ap, uint16 *) = td->td_extrasamples; in TIFFVGetFieldDefaulted()
228 *va_arg(ap, uint16 **) = td->td_sampleinfo; in TIFFVGetFieldDefaulted()
232 (td->td_extrasamples == 1 && in TIFFVGetFieldDefaulted()
233 td->td_sampleinfo[0] == EXTRASAMPLE_ASSOCALPHA); in TIFFVGetFieldDefaulted()
236 *va_arg(ap, uint32 *) = td->td_tiledepth; in TIFFVGetFieldDefaulted()
239 *va_arg(ap, uint16 *) = td->td_sampleformat-1; in TIFFVGetFieldDefaulted()
242 *va_arg(ap, uint16 *) = td->td_sampleformat; in TIFFVGetFieldDefaulted()
245 *va_arg(ap, uint32 *) = td->td_imagedepth; in TIFFVGetFieldDefaulted()
255 *va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[0]; in TIFFVGetFieldDefaulted()
256 *va_arg(ap, uint16 *) = td->td_ycbcrsubsampling[1]; in TIFFVGetFieldDefaulted()
259 *va_arg(ap, uint16 *) = td->td_ycbcrpositioning; in TIFFVGetFieldDefaulted()
274 if (!td->td_transferfunction[0] && in TIFFVGetFieldDefaulted()
275 !TIFFDefaultTransferFunction(td)) { in TIFFVGetFieldDefaulted()
279 *va_arg(ap, uint16 **) = td->td_transferfunction[0]; in TIFFVGetFieldDefaulted()
280 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFVGetFieldDefaulted()
281 *va_arg(ap, uint16 **) = td->td_transferfunction[1]; in TIFFVGetFieldDefaulted()
282 *va_arg(ap, uint16 **) = td->td_transferfunction[2]; in TIFFVGetFieldDefaulted()
286 if (!td->td_refblackwhite && !TIFFDefaultRefBlackWhite(td)) in TIFFVGetFieldDefaulted()
288 *va_arg(ap, float **) = td->td_refblackwhite; in TIFFVGetFieldDefaulted()