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
244 fprintf(fd, "TIFF Directory at offset 0x%I64x (%I64u)\n", in TIFFPrintDirectory()
248 fprintf(fd, "TIFF Directory at offset 0x%llx (%llu)\n", in TIFFPrintDirectory()
253 fprintf(fd, " Subfile Type:"); in TIFFPrintDirectory()
256 fprintf(fd, "%sreduced-resolution image", sep); in TIFFPrintDirectory()
260 fprintf(fd, "%smulti-page document", sep); in TIFFPrintDirectory()
264 fprintf(fd, "%stransparency mask", sep); in TIFFPrintDirectory()
265 fprintf(fd, " (%lu = 0x%lx)\n", in TIFFPrintDirectory()
269 fprintf(fd, " Image Width: %lu Image Length: %lu", in TIFFPrintDirectory()
272 fprintf(fd, " Image Depth: %lu", in TIFFPrintDirectory()
274 fprintf(fd, "\n"); in TIFFPrintDirectory()
277 fprintf(fd, " Tile Width: %lu Tile Length: %lu", in TIFFPrintDirectory()
280 fprintf(fd, " Tile Depth: %lu", in TIFFPrintDirectory()
282 fprintf(fd, "\n"); in TIFFPrintDirectory()
285 fprintf(fd, " Resolution: %g, %g", in TIFFPrintDirectory()
290 fprintf(fd, " (unitless)"); in TIFFPrintDirectory()
293 fprintf(fd, " pixels/inch"); in TIFFPrintDirectory()
296 fprintf(fd, " pixels/cm"); in TIFFPrintDirectory()
299 fprintf(fd, " (unit %u = 0x%x)", in TIFFPrintDirectory()
305 fprintf(fd, "\n"); in TIFFPrintDirectory()
308 fprintf(fd, " Position: %g, %g\n", in TIFFPrintDirectory()
311 fprintf(fd, " Bits/Sample: %u\n", td->td_bitspersample); in TIFFPrintDirectory()
313 fprintf(fd, " Sample Format: "); in TIFFPrintDirectory()
316 fprintf(fd, "void\n"); in TIFFPrintDirectory()
319 fprintf(fd, "signed integer\n"); in TIFFPrintDirectory()
322 fprintf(fd, "unsigned integer\n"); in TIFFPrintDirectory()
325 fprintf(fd, "IEEE floating point\n"); in TIFFPrintDirectory()
328 fprintf(fd, "complex signed integer\n"); in TIFFPrintDirectory()
331 fprintf(fd, "complex IEEE floating point\n"); in TIFFPrintDirectory()
334 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
341 fprintf(fd, " Compression Scheme: "); in TIFFPrintDirectory()
343 fprintf(fd, "%s\n", c->name); in TIFFPrintDirectory()
345 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
349 fprintf(fd, " Photometric Interpretation: "); in TIFFPrintDirectory()
351 fprintf(fd, "%s\n", photoNames[td->td_photometric]); in TIFFPrintDirectory()
355 fprintf(fd, "CIE Log2(L)\n"); in TIFFPrintDirectory()
358 fprintf(fd, "CIE Log2(L) (u',v')\n"); in TIFFPrintDirectory()
361 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()
392 fprintf(fd, " Ink Names: "); in TIFFPrintDirectory()
400 fputs(sep, fd); in TIFFPrintDirectory()
401 _TIFFprintAsciiBounded(fd, cp, max_chars); in TIFFPrintDirectory()
404 fputs("\n", fd); in TIFFPrintDirectory()
407 fprintf(fd, " Thresholding: "); in TIFFPrintDirectory()
410 fprintf(fd, "bilevel art scan\n"); in TIFFPrintDirectory()
413 fprintf(fd, "halftone or dithered scan\n"); in TIFFPrintDirectory()
416 fprintf(fd, "error diffused\n"); in TIFFPrintDirectory()
419 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
425 fprintf(fd, " FillOrder: "); in TIFFPrintDirectory()
428 fprintf(fd, "msb-to-lsb\n"); in TIFFPrintDirectory()
431 fprintf(fd, "lsb-to-msb\n"); in TIFFPrintDirectory()
434 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
441 fprintf(fd, " YCbCr Subsampling: %u, %u\n", in TIFFPrintDirectory()
445 fprintf(fd, " YCbCr Positioning: "); in TIFFPrintDirectory()
448 fprintf(fd, "centered\n"); in TIFFPrintDirectory()
451 fprintf(fd, "cosited\n"); in TIFFPrintDirectory()
454 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
460 fprintf(fd, " Halftone Hints: light %u dark %u\n", in TIFFPrintDirectory()
463 fprintf(fd, " Orientation: "); in TIFFPrintDirectory()
465 fprintf(fd, "%s\n", orientNames[td->td_orientation]); in TIFFPrintDirectory()
467 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
471 fprintf(fd, " Samples/Pixel: %u\n", td->td_samplesperpixel); in TIFFPrintDirectory()
473 fprintf(fd, " Rows/Strip: "); in TIFFPrintDirectory()
475 fprintf(fd, "(infinite)\n"); in TIFFPrintDirectory()
477 fprintf(fd, "%lu\n", (unsigned long) td->td_rowsperstrip); in TIFFPrintDirectory()
480 fprintf(fd, " Min Sample Value: %u\n", td->td_minsamplevalue); in TIFFPrintDirectory()
482 fprintf(fd, " Max Sample Value: %u\n", td->td_maxsamplevalue); in TIFFPrintDirectory()
485 fprintf(fd, " SMin Sample Value:"); in TIFFPrintDirectory()
487 fprintf(fd, " %g", td->td_sminsamplevalue[i]); in TIFFPrintDirectory()
488 fprintf(fd, "\n"); in TIFFPrintDirectory()
492 fprintf(fd, " SMax Sample Value:"); in TIFFPrintDirectory()
494 fprintf(fd, " %g", td->td_smaxsamplevalue[i]); in TIFFPrintDirectory()
495 fprintf(fd, "\n"); in TIFFPrintDirectory()
498 fprintf(fd, " Planar Configuration: "); in TIFFPrintDirectory()
501 fprintf(fd, "single image plane\n"); in TIFFPrintDirectory()
504 fprintf(fd, "separate image planes\n"); in TIFFPrintDirectory()
507 fprintf(fd, "%u (0x%x)\n", in TIFFPrintDirectory()
513 fprintf(fd, " Page Number: %u-%u\n", in TIFFPrintDirectory()
516 fprintf(fd, " Color Map: "); in TIFFPrintDirectory()
518 fprintf(fd, "\n"); in TIFFPrintDirectory()
521 fprintf(fd, " %5lu: %5u %5u %5u\n", in TIFFPrintDirectory()
527 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
530 fprintf(fd, " Reference Black/White:\n"); in TIFFPrintDirectory()
532 fprintf(fd, " %2d: %5g %5g\n", i, in TIFFPrintDirectory()
537 fprintf(fd, " Transfer Function: "); in TIFFPrintDirectory()
539 fprintf(fd, "\n"); in TIFFPrintDirectory()
542 fprintf(fd, " %2lu: %5u", in TIFFPrintDirectory()
545 fprintf(fd, " %5u", in TIFFPrintDirectory()
547 fputc('\n', fd); in TIFFPrintDirectory()
550 fprintf(fd, "(present)\n"); in TIFFPrintDirectory()
553 fprintf(fd, " SubIFD Offsets:"); in TIFFPrintDirectory()
556 fprintf(fd, " %5I64u", in TIFFPrintDirectory()
559 fprintf(fd, " %5llu", in TIFFPrintDirectory()
562 fputc('\n', fd); in TIFFPrintDirectory()
640 if (!_TIFFPrettyPrintField(tif, fip, fd, tag, value_count, raw_data)) in TIFFPrintDirectory()
641 _TIFFPrintField(fd, fip, value_count, raw_data); in TIFFPrintDirectory()
649 (*tif->tif_tagmethods.printdir)(tif, fd, flags); in TIFFPrintDirectory()
657 fprintf(fd, " %lu %s:\n", in TIFFPrintDirectory()
662 fprintf(fd, " %3lu: [%8I64u, %8I64u]\n", in TIFFPrintDirectory()
667 fprintf(fd, " %3lu: [%8llu, %8llu]\n", in TIFFPrintDirectory()
676 _TIFFprintAscii(FILE* fd, const char* cp) in _TIFFprintAscii() argument
678 _TIFFprintAsciiBounded( fd, cp, strlen(cp)); in _TIFFprintAscii()
682 _TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars) in _TIFFprintAsciiBounded() argument
688 fputc(*cp, fd); in _TIFFprintAsciiBounded()
695 fprintf(fd, "\\%c", *tp); in _TIFFprintAsciiBounded()
697 fprintf(fd, "\\%03o", *cp & 0xff); in _TIFFprintAsciiBounded()
702 _TIFFprintAsciiTag(FILE* fd, const char* name, const char* value) in _TIFFprintAsciiTag() argument
704 fprintf(fd, " %s: \"", name); in _TIFFprintAsciiTag()
705 _TIFFprintAscii(fd, value); in _TIFFprintAsciiTag()
706 fprintf(fd, "\"\n"); in _TIFFprintAsciiTag()