Lines Matching refs:fd
38 _TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars);
69 _TIFFPrintField(FILE* fd, const TIFFField *fip, in _TIFFPrintField() argument
74 fprintf(fd, " %s: ", fip->field_name); in _TIFFPrintField()
78 fprintf(fd, "%u", ((uint8 *) raw_data)[j]); in _TIFFPrintField()
80 fprintf(fd, "0x%x", in _TIFFPrintField()
83 fprintf(fd, "%d", ((int8 *) raw_data)[j]); in _TIFFPrintField()
85 fprintf(fd, "%u", ((uint16 *) raw_data)[j]); in _TIFFPrintField()
87 fprintf(fd, "%d", ((int16 *) raw_data)[j]); in _TIFFPrintField()
89 fprintf(fd, "%lu", in _TIFFPrintField()
92 fprintf(fd, "%ld", (long)((int32 *) raw_data)[j]); in _TIFFPrintField()
94 fprintf(fd, "0x%lx", in _TIFFPrintField()
99 fprintf(fd, "%f", ((float *) raw_data)[j]); in _TIFFPrintField()
102 fprintf(fd, "%I64u", in _TIFFPrintField()
105 fprintf(fd, "%llu", in _TIFFPrintField()
110 fprintf(fd, "%I64d", (__int64)((int64 *) raw_data)[j]); in _TIFFPrintField()
112 fprintf(fd, "%lld", (long long)((int64 *) raw_data)[j]); in _TIFFPrintField()
116 fprintf(fd, "0x%I64x", in _TIFFPrintField()
119 fprintf(fd, "0x%llx", in _TIFFPrintField()
123 fprintf(fd, "%f", ((float *)raw_data)[j]); in _TIFFPrintField()
125 fprintf(fd, "%f", ((double *) raw_data)[j]); in _TIFFPrintField()
127 fprintf(fd, "%s", (char *) raw_data); in _TIFFPrintField()
131 fprintf(fd, "<unsupported data type in TIFFPrint>"); in _TIFFPrintField()
136 fprintf(fd, ","); in _TIFFPrintField()
139 fprintf(fd, "\n"); in _TIFFPrintField()
143 _TIFFPrettyPrintField(TIFF* tif, const TIFFField *fip, FILE* fd, uint32 tag, in _TIFFPrettyPrintField() argument
157 fprintf(fd, " Ink Set: "); in _TIFFPrettyPrintField()
160 fprintf(fd, "CMYK\n"); in _TIFFPrettyPrintField()
163 fprintf(fd, "%u (0x%x)\n", in _TIFFPrettyPrintField()
174 fprintf(fd, " Dot Range: %u-%u\n", in _TIFFPrettyPrintField()
182 fprintf(fd, " White Point: %g-%g\n", in _TIFFPrettyPrintField()
192 fprintf(fd, " XMLPacket (XMP Metadata):\n" ); in _TIFFPrettyPrintField()
194 fputc(((char *)raw_data)[i], fd); in _TIFFPrettyPrintField()
195 fprintf( fd, "\n" ); in _TIFFPrettyPrintField()
203 fprintf(fd, in _TIFFPrettyPrintField()
209 fprintf(fd, " Photoshop Data: <present>, %lu bytes\n", in _TIFFPrettyPrintField()
214 fprintf(fd, " ICC Profile: <present>, %lu bytes\n", in _TIFFPrettyPrintField()
220 fprintf(fd, in _TIFFPrettyPrintField()
236 TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) in TIFFPrintDirectory() argument
243 fprintf(fd, "TIFF Directory at offset 0x%I64x (%I64u)\n", in TIFFPrintDirectory()
247 fprintf(fd, "TIFF Directory at offset 0x%llx (%llu)\n", in TIFFPrintDirectory()
252 fprintf(fd, " Subfile Type:"); in TIFFPrintDirectory()
255 fprintf(fd, "%sreduced-resolution image", sep); in TIFFPrintDirectory()
259 fprintf(fd, "%smulti-page document", sep); in TIFFPrintDirectory()
263 fprintf(fd, "%stransparency mask", sep); in TIFFPrintDirectory()
264 fprintf(fd, " (%lu = 0x%lx)\n", in TIFFPrintDirectory()
268 fprintf(fd, " Image Width: %lu Image Length: %lu", in TIFFPrintDirectory()
271 fprintf(fd, " Image Depth: %lu", in TIFFPrintDirectory()
273 fprintf(fd, "\n"); in TIFFPrintDirectory()
276 fprintf(fd, " Tile Width: %lu Tile Length: %lu", in TIFFPrintDirectory()
279 fprintf(fd, " Tile Depth: %lu", in TIFFPrintDirectory()
281 fprintf(fd, "\n"); in TIFFPrintDirectory()
284 fprintf(fd, " Resolution: %g, %g", in TIFFPrintDirectory()
289 fprintf(fd, " (unitless)"); in TIFFPrintDirectory()
292 fprintf(fd, " pixels/inch"); in TIFFPrintDirectory()
295 fprintf(fd, " pixels/cm"); in TIFFPrintDirectory()
298 fprintf(fd, " (unit %u = 0x%x)", in TIFFPrintDirectory()
304 fprintf(fd, "\n"); in TIFFPrintDirectory()
307 fprintf(fd, " Position: %g, %g\n", in TIFFPrintDirectory()
310 fprintf(fd, " Bits/Sample: %u\n", td->td_bitspersample); in TIFFPrintDirectory()
312 fprintf(fd, " Sample Format: "); in TIFFPrintDirectory()
315 fprintf(fd, "void\n"); in TIFFPrintDirectory()
318 fprintf(fd, "signed integer\n"); in TIFFPrintDirectory()
321 fprintf(fd, "unsigned integer\n"); in TIFFPrintDirectory()
324 fprintf(fd, "IEEE floating point\n"); in TIFFPrintDirectory()
327 fprintf(fd, "complex signed integer\n"); in TIFFPrintDirectory()
330 fprintf(fd, "complex IEEE floating point\n"); in TIFFPrintDirectory()
333 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
340 fprintf(fd, " Compression Scheme: "); in TIFFPrintDirectory()
342 fprintf(fd, "%s\n", c->name); in TIFFPrintDirectory()
344 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
348 fprintf(fd, " Photometric Interpretation: "); in TIFFPrintDirectory()
350 fprintf(fd, "%s\n", photoNames[td->td_photometric]); in TIFFPrintDirectory()
354 fprintf(fd, "CIE Log2(L)\n"); in TIFFPrintDirectory()
357 fprintf(fd, "CIE Log2(L) (u',v')\n"); in TIFFPrintDirectory()
360 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
368 fprintf(fd, " Extra Samples: %u<", td->td_extrasamples); in TIFFPrintDirectory()
373 fprintf(fd, "%sunspecified", sep); in TIFFPrintDirectory()
376 fprintf(fd, "%sassoc-alpha", sep); in TIFFPrintDirectory()
379 fprintf(fd, "%sunassoc-alpha", sep); in TIFFPrintDirectory()
382 fprintf(fd, "%s%u (0x%x)", sep, in TIFFPrintDirectory()
388 fprintf(fd, ">\n"); in TIFFPrintDirectory()
393 fprintf(fd, " Ink Names: "); in TIFFPrintDirectory()
401 fputs(sep, fd); in TIFFPrintDirectory()
402 _TIFFprintAsciiBounded(fd, cp, max_chars); in TIFFPrintDirectory()
405 fputs("\n", fd); in TIFFPrintDirectory()
408 fprintf(fd, " Thresholding: "); in TIFFPrintDirectory()
411 fprintf(fd, "bilevel art scan\n"); in TIFFPrintDirectory()
414 fprintf(fd, "halftone or dithered scan\n"); in TIFFPrintDirectory()
417 fprintf(fd, "error diffused\n"); in TIFFPrintDirectory()
420 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
426 fprintf(fd, " FillOrder: "); in TIFFPrintDirectory()
429 fprintf(fd, "msb-to-lsb\n"); in TIFFPrintDirectory()
432 fprintf(fd, "lsb-to-msb\n"); in TIFFPrintDirectory()
435 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
442 fprintf(fd, " YCbCr Subsampling: %u, %u\n", in TIFFPrintDirectory()
446 fprintf(fd, " YCbCr Positioning: "); in TIFFPrintDirectory()
449 fprintf(fd, "centered\n"); in TIFFPrintDirectory()
452 fprintf(fd, "cosited\n"); in TIFFPrintDirectory()
455 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
461 fprintf(fd, " Halftone Hints: light %u dark %u\n", in TIFFPrintDirectory()
464 fprintf(fd, " Orientation: "); in TIFFPrintDirectory()
466 fprintf(fd, "%s\n", orientNames[td->td_orientation]); in TIFFPrintDirectory()
468 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
472 fprintf(fd, " Samples/Pixel: %u\n", td->td_samplesperpixel); in TIFFPrintDirectory()
474 fprintf(fd, " Rows/Strip: "); in TIFFPrintDirectory()
476 fprintf(fd, "(infinite)\n"); in TIFFPrintDirectory()
478 fprintf(fd, "%lu\n", (unsigned long) td->td_rowsperstrip); in TIFFPrintDirectory()
481 fprintf(fd, " Min Sample Value: %u\n", td->td_minsamplevalue); in TIFFPrintDirectory()
483 fprintf(fd, " Max Sample Value: %u\n", td->td_maxsamplevalue); in TIFFPrintDirectory()
487 fprintf(fd, " SMin Sample Value:"); in TIFFPrintDirectory()
489 fprintf(fd, " %g", td->td_sminsamplevalue[i]); in TIFFPrintDirectory()
490 fprintf(fd, "\n"); in TIFFPrintDirectory()
495 fprintf(fd, " SMax Sample Value:"); in TIFFPrintDirectory()
497 fprintf(fd, " %g", td->td_smaxsamplevalue[i]); in TIFFPrintDirectory()
498 fprintf(fd, "\n"); in TIFFPrintDirectory()
501 fprintf(fd, " Planar Configuration: "); in TIFFPrintDirectory()
504 fprintf(fd, "single image plane\n"); in TIFFPrintDirectory()
507 fprintf(fd, "separate image planes\n"); in TIFFPrintDirectory()
510 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
516 fprintf(fd, " Page Number: %u-%u\n", in TIFFPrintDirectory()
519 fprintf(fd, " Color Map: "); in TIFFPrintDirectory()
521 fprintf(fd, "\n"); in TIFFPrintDirectory()
524 fprintf(fd, " %5ld: %5u %5u %5u\n", in TIFFPrintDirectory()
530 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
534 fprintf(fd, " Reference Black/White:\n"); in TIFFPrintDirectory()
536 fprintf(fd, " %2d: %5g %5g\n", i, in TIFFPrintDirectory()
541 fprintf(fd, " Transfer Function: "); in TIFFPrintDirectory()
543 fprintf(fd, "\n"); in TIFFPrintDirectory()
547 fprintf(fd, " %2ld: %5u", in TIFFPrintDirectory()
550 fprintf(fd, " %5u", in TIFFPrintDirectory()
552 fputc('\n', fd); in TIFFPrintDirectory()
555 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
559 fprintf(fd, " SubIFD Offsets:"); in TIFFPrintDirectory()
562 fprintf(fd, " %5I64u", in TIFFPrintDirectory()
565 fprintf(fd, " %5llu", in TIFFPrintDirectory()
568 fputc('\n', fd); in TIFFPrintDirectory()
646 if (!_TIFFPrettyPrintField(tif, fip, fd, tag, value_count, raw_data)) in TIFFPrintDirectory()
647 _TIFFPrintField(fd, fip, value_count, raw_data); in TIFFPrintDirectory()
655 (*tif->tif_tagmethods.printdir)(tif, fd, flags); in TIFFPrintDirectory()
663 fprintf(fd, " %lu %s:\n", in TIFFPrintDirectory()
668 fprintf(fd, " %3lu: [%8I64u, %8I64u]\n", in TIFFPrintDirectory()
673 fprintf(fd, " %3lu: [%8llu, %8llu]\n", in TIFFPrintDirectory()
682 _TIFFprintAscii(FILE* fd, const char* cp) in _TIFFprintAscii() argument
684 _TIFFprintAsciiBounded( fd, cp, strlen(cp)); in _TIFFprintAscii()
688 _TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars) in _TIFFprintAsciiBounded() argument
694 fputc(*cp, fd); in _TIFFprintAsciiBounded()
701 fprintf(fd, "\\%c", *tp); in _TIFFprintAsciiBounded()
703 fprintf(fd, "\\%03o", *cp & 0xff); in _TIFFprintAsciiBounded()
708 _TIFFprintAsciiTag(FILE* fd, const char* name, const char* value) in _TIFFprintAsciiTag() argument
710 fprintf(fd, " %s: \"", name); in _TIFFprintAsciiTag()
711 _TIFFprintAscii(fd, value); in _TIFFprintAsciiTag()
712 fprintf(fd, "\"\n"); in _TIFFprintAsciiTag()