Lines Matching refs:fd
38 _TIFFprintAsciiBounded(FILE* fd, const char* cp, int max_chars);
67 _TIFFPrintField(FILE* fd, const TIFFField *fip, in _TIFFPrintField() argument
72 fprintf(fd, " %s: ", fip->field_name); in _TIFFPrintField()
76 fprintf(fd, "%u", ((uint8 *) raw_data)[j]); in _TIFFPrintField()
78 fprintf(fd, "0x%x", in _TIFFPrintField()
81 fprintf(fd, "%d", ((int8 *) raw_data)[j]); in _TIFFPrintField()
83 fprintf(fd, "%u", ((uint16 *) raw_data)[j]); in _TIFFPrintField()
85 fprintf(fd, "%d", ((int16 *) raw_data)[j]); in _TIFFPrintField()
87 fprintf(fd, "%lu", in _TIFFPrintField()
90 fprintf(fd, "%ld", (long)((int32 *) raw_data)[j]); in _TIFFPrintField()
92 fprintf(fd, "0x%lx", in _TIFFPrintField()
97 fprintf(fd, "%f", ((float *) raw_data)[j]); in _TIFFPrintField()
100 fprintf(fd, "%I64u", in _TIFFPrintField()
103 fprintf(fd, "%llu", in _TIFFPrintField()
108 fprintf(fd, "%I64d", (__int64)((int64 *) raw_data)[j]); in _TIFFPrintField()
110 fprintf(fd, "%lld", (long long)((int64 *) raw_data)[j]); in _TIFFPrintField()
114 fprintf(fd, "0x%I64x", in _TIFFPrintField()
117 fprintf(fd, "0x%llx", in _TIFFPrintField()
121 fprintf(fd, "%f", ((float *)raw_data)[j]); in _TIFFPrintField()
123 fprintf(fd, "%f", ((double *) raw_data)[j]); in _TIFFPrintField()
125 fprintf(fd, "%s", (char *) raw_data); in _TIFFPrintField()
129 fprintf(fd, "<unsupported data type in TIFFPrint>"); in _TIFFPrintField()
134 fprintf(fd, ","); in _TIFFPrintField()
137 fprintf(fd, "\n"); in _TIFFPrintField()
141 _TIFFPrettyPrintField(TIFF* tif, const TIFFField *fip, FILE* fd, uint32 tag, in _TIFFPrettyPrintField() argument
155 fprintf(fd, " Ink Set: "); in _TIFFPrettyPrintField()
158 fprintf(fd, "CMYK\n"); in _TIFFPrettyPrintField()
161 fprintf(fd, "%u (0x%x)\n", in _TIFFPrettyPrintField()
172 fprintf(fd, " Dot Range: %u-%u\n", in _TIFFPrettyPrintField()
180 fprintf(fd, " White Point: %g-%g\n", in _TIFFPrettyPrintField()
190 fprintf(fd, " XMLPacket (XMP Metadata):\n" ); in _TIFFPrettyPrintField()
192 fputc(((char *)raw_data)[i], fd); in _TIFFPrettyPrintField()
193 fprintf( fd, "\n" ); in _TIFFPrettyPrintField()
201 fprintf(fd, in _TIFFPrettyPrintField()
207 fprintf(fd, " Photoshop Data: <present>, %lu bytes\n", in _TIFFPrettyPrintField()
212 fprintf(fd, " ICC Profile: <present>, %lu bytes\n", in _TIFFPrettyPrintField()
218 fprintf(fd, in _TIFFPrettyPrintField()
234 TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) in TIFFPrintDirectory() argument
242 fprintf(fd, "TIFF Directory at offset 0x%I64x (%I64u)\n", in TIFFPrintDirectory()
246 fprintf(fd, "TIFF Directory at offset 0x%llx (%llu)\n", in TIFFPrintDirectory()
251 fprintf(fd, " Subfile Type:"); in TIFFPrintDirectory()
254 fprintf(fd, "%sreduced-resolution image", sep); in TIFFPrintDirectory()
258 fprintf(fd, "%smulti-page document", sep); in TIFFPrintDirectory()
262 fprintf(fd, "%stransparency mask", sep); in TIFFPrintDirectory()
263 fprintf(fd, " (%lu = 0x%lx)\n", in TIFFPrintDirectory()
267 fprintf(fd, " Image Width: %lu Image Length: %lu", in TIFFPrintDirectory()
270 fprintf(fd, " Image Depth: %lu", in TIFFPrintDirectory()
272 fprintf(fd, "\n"); in TIFFPrintDirectory()
275 fprintf(fd, " Tile Width: %lu Tile Length: %lu", in TIFFPrintDirectory()
278 fprintf(fd, " Tile Depth: %lu", in TIFFPrintDirectory()
280 fprintf(fd, "\n"); in TIFFPrintDirectory()
283 fprintf(fd, " Resolution: %g, %g", in TIFFPrintDirectory()
288 fprintf(fd, " (unitless)"); in TIFFPrintDirectory()
291 fprintf(fd, " pixels/inch"); in TIFFPrintDirectory()
294 fprintf(fd, " pixels/cm"); in TIFFPrintDirectory()
297 fprintf(fd, " (unit %u = 0x%x)", in TIFFPrintDirectory()
303 fprintf(fd, "\n"); in TIFFPrintDirectory()
306 fprintf(fd, " Position: %g, %g\n", in TIFFPrintDirectory()
309 fprintf(fd, " Bits/Sample: %u\n", td->td_bitspersample); in TIFFPrintDirectory()
311 fprintf(fd, " Sample Format: "); in TIFFPrintDirectory()
314 fprintf(fd, "void\n"); in TIFFPrintDirectory()
317 fprintf(fd, "signed integer\n"); in TIFFPrintDirectory()
320 fprintf(fd, "unsigned integer\n"); in TIFFPrintDirectory()
323 fprintf(fd, "IEEE floating point\n"); in TIFFPrintDirectory()
326 fprintf(fd, "complex signed integer\n"); in TIFFPrintDirectory()
329 fprintf(fd, "complex IEEE floating point\n"); in TIFFPrintDirectory()
332 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
339 fprintf(fd, " Compression Scheme: "); in TIFFPrintDirectory()
341 fprintf(fd, "%s\n", c->name); in TIFFPrintDirectory()
343 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
347 fprintf(fd, " Photometric Interpretation: "); in TIFFPrintDirectory()
349 fprintf(fd, "%s\n", photoNames[td->td_photometric]); in TIFFPrintDirectory()
353 fprintf(fd, "CIE Log2(L)\n"); in TIFFPrintDirectory()
356 fprintf(fd, "CIE Log2(L) (u',v')\n"); in TIFFPrintDirectory()
359 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
366 fprintf(fd, " Extra Samples: %u<", td->td_extrasamples); in TIFFPrintDirectory()
371 fprintf(fd, "%sunspecified", sep); in TIFFPrintDirectory()
374 fprintf(fd, "%sassoc-alpha", sep); in TIFFPrintDirectory()
377 fprintf(fd, "%sunassoc-alpha", sep); in TIFFPrintDirectory()
380 fprintf(fd, "%s%u (0x%x)", sep, in TIFFPrintDirectory()
386 fprintf(fd, ">\n"); in TIFFPrintDirectory()
390 fprintf(fd, " Ink Names: "); in TIFFPrintDirectory()
398 fputs(sep, fd); in TIFFPrintDirectory()
399 _TIFFprintAsciiBounded(fd, cp, max_chars); in TIFFPrintDirectory()
402 fputs("\n", fd); in TIFFPrintDirectory()
405 fprintf(fd, " Thresholding: "); in TIFFPrintDirectory()
408 fprintf(fd, "bilevel art scan\n"); in TIFFPrintDirectory()
411 fprintf(fd, "halftone or dithered scan\n"); in TIFFPrintDirectory()
414 fprintf(fd, "error diffused\n"); in TIFFPrintDirectory()
417 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
423 fprintf(fd, " FillOrder: "); in TIFFPrintDirectory()
426 fprintf(fd, "msb-to-lsb\n"); in TIFFPrintDirectory()
429 fprintf(fd, "lsb-to-msb\n"); in TIFFPrintDirectory()
432 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
439 fprintf(fd, " YCbCr Subsampling: %u, %u\n", in TIFFPrintDirectory()
443 fprintf(fd, " YCbCr Positioning: "); in TIFFPrintDirectory()
446 fprintf(fd, "centered\n"); in TIFFPrintDirectory()
449 fprintf(fd, "cosited\n"); in TIFFPrintDirectory()
452 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
458 fprintf(fd, " Halftone Hints: light %u dark %u\n", in TIFFPrintDirectory()
461 fprintf(fd, " Orientation: "); in TIFFPrintDirectory()
463 fprintf(fd, "%s\n", orientNames[td->td_orientation]); in TIFFPrintDirectory()
465 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
469 fprintf(fd, " Samples/Pixel: %u\n", td->td_samplesperpixel); in TIFFPrintDirectory()
471 fprintf(fd, " Rows/Strip: "); in TIFFPrintDirectory()
473 fprintf(fd, "(infinite)\n"); in TIFFPrintDirectory()
475 fprintf(fd, "%lu\n", (unsigned long) td->td_rowsperstrip); in TIFFPrintDirectory()
478 fprintf(fd, " Min Sample Value: %u\n", td->td_minsamplevalue); in TIFFPrintDirectory()
480 fprintf(fd, " Max Sample Value: %u\n", td->td_maxsamplevalue); in TIFFPrintDirectory()
483 fprintf(fd, " SMin Sample Value:"); in TIFFPrintDirectory()
485 fprintf(fd, " %g", td->td_sminsamplevalue[i]); in TIFFPrintDirectory()
486 fprintf(fd, "\n"); in TIFFPrintDirectory()
490 fprintf(fd, " SMax Sample Value:"); in TIFFPrintDirectory()
492 fprintf(fd, " %g", td->td_smaxsamplevalue[i]); in TIFFPrintDirectory()
493 fprintf(fd, "\n"); in TIFFPrintDirectory()
496 fprintf(fd, " Planar Configuration: "); in TIFFPrintDirectory()
499 fprintf(fd, "single image plane\n"); in TIFFPrintDirectory()
502 fprintf(fd, "separate image planes\n"); in TIFFPrintDirectory()
505 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
511 fprintf(fd, " Page Number: %u-%u\n", in TIFFPrintDirectory()
514 fprintf(fd, " Color Map: "); in TIFFPrintDirectory()
516 fprintf(fd, "\n"); in TIFFPrintDirectory()
519 fprintf(fd, " %5lu: %5u %5u %5u\n", in TIFFPrintDirectory()
525 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
528 fprintf(fd, " Reference Black/White:\n"); in TIFFPrintDirectory()
530 fprintf(fd, " %2d: %5g %5g\n", i, in TIFFPrintDirectory()
535 fprintf(fd, " Transfer Function: "); in TIFFPrintDirectory()
537 fprintf(fd, "\n"); in TIFFPrintDirectory()
540 fprintf(fd, " %2lu: %5u", in TIFFPrintDirectory()
543 fprintf(fd, " %5u", in TIFFPrintDirectory()
545 fputc('\n', fd); in TIFFPrintDirectory()
548 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
551 fprintf(fd, " SubIFD Offsets:"); in TIFFPrintDirectory()
554 fprintf(fd, " %5I64u", in TIFFPrintDirectory()
557 fprintf(fd, " %5llu", in TIFFPrintDirectory()
560 fputc('\n', fd); in TIFFPrintDirectory()
638 if (!_TIFFPrettyPrintField(tif, fip, fd, tag, value_count, raw_data)) in TIFFPrintDirectory()
639 _TIFFPrintField(fd, fip, value_count, raw_data); in TIFFPrintDirectory()
647 (*tif->tif_tagmethods.printdir)(tif, fd, flags); in TIFFPrintDirectory()
655 fprintf(fd, " %lu %s:\n", in TIFFPrintDirectory()
660 fprintf(fd, " %3lu: [%8I64u, %8I64u]\n", in TIFFPrintDirectory()
665 fprintf(fd, " %3lu: [%8llu, %8llu]\n", in TIFFPrintDirectory()
674 _TIFFprintAscii(FILE* fd, const char* cp) in _TIFFprintAscii() argument
676 _TIFFprintAsciiBounded( fd, cp, strlen(cp)); in _TIFFprintAscii()
680 _TIFFprintAsciiBounded(FILE* fd, const char* cp, int max_chars) in _TIFFprintAsciiBounded() argument
686 fputc(*cp, fd); in _TIFFprintAsciiBounded()
693 fprintf(fd, "\\%c", *tp); in _TIFFprintAsciiBounded()
695 fprintf(fd, "\\%03o", *cp & 0xff); in _TIFFprintAsciiBounded()
700 _TIFFprintAsciiTag(FILE* fd, const char* name, const char* value) in _TIFFprintAsciiTag() argument
702 fprintf(fd, " %s: \"", name); in _TIFFprintAsciiTag()
703 _TIFFprintAscii(fd, value); in _TIFFprintAsciiTag()
704 fprintf(fd, "\"\n"); in _TIFFprintAsciiTag()