235{
237 char *sep;
239
240#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
241 fprintf(
fd,
"TIFF Directory at offset 0x%I64x (%I64u)\n",
244#else
245 fprintf(
fd,
"TIFF Directory at offset 0x%llx (%llu)\n",
248#endif
251 sep = " ";
253 fprintf(
fd,
"%sreduced-resolution image", sep);
254 sep = "/";
255 }
257 fprintf(
fd,
"%smulti-page document", sep);
258 sep = "/";
259 }
264 }
266 fprintf(
fd,
" Image Width: %lu Image Length: %lu",
272 }
274 fprintf(
fd,
" Tile Width: %lu Tile Length: %lu",
280 }
288 break;
291 break;
294 break;
295 default:
299 break;
300 }
301 }
303 }
314 break;
317 break;
320 break;
323 break;
326 break;
328 fprintf(
fd,
"complex IEEE floating point\n");
329 break;
330 default:
333 break;
334 }
335 }
341 else
344 }
346 fprintf(
fd,
" Photometric Interpretation: ");
349 else {
353 break;
356 break;
357 default:
360 break;
361 }
362 }
363 }
367 sep = "";
372 break;
375 break;
378 break;
379 default:
382 break;
383 }
384 sep = ", ";
385 }
387 }
393 sep = "";
397 size_t max_chars =
401 sep = ", ";
402 }
404 }
410 break;
412 fprintf(
fd,
"halftone or dithered scan\n");
413 break;
416 break;
417 default:
420 break;
421 }
422 }
428 break;
431 break;
432 default:
435 break;
436 }
437 }
439 {
440 fprintf(
fd,
" YCbCr Subsampling: %u, %u\n",
442 }
448 break;
451 break;
452 default:
455 break;
456 }
457 }
459 fprintf(
fd,
" Halftone Hints: light %u dark %u\n",
465 else
468 }
475 else
477 }
489 }
497 }
503 break;
506 break;
507 default:
510 break;
511 }
512 }
521 for (
l = 0;
l <
n;
l++)
527 } else
529 }
532 fprintf(
fd,
" Reference Black/White:\n");
533 for (
i = 0;
i < 3;
i++)
537 }
543 for (
l = 0;
l <
n;
l++) {
551 }
552 } else
554 }
559#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
562#else
565#endif
567 }
568
569
570
571
572 {
575
582 void *raw_data;
583
586 continue;
587
591 continue;
595 continue;
596 value_count = small_value_count;
597 } else {
600 continue;
601 }
602 } else {
605 value_count = 1;
608 else
612
613
614
615
616 static uint16 dotrange[2];
617 raw_data = dotrange;
623 || value_count > 1) {
625 continue;
626 } else {
629 * value_count);
633 continue;
634 }
635 }
636 }
637
638
639
640
641
642
643
646
649 }
650 }
651
654
658
661 isTiled(tif) ?
"Tiles" :
"Strips");
663#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
668#else
673#endif
674 }
675}
int strcmp(const char *String1, const char *String2)
char * strchr(const char *String, int ch)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLuint GLuint GLsizei count
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
uint16 td_samplesperpixel
double * td_sminsamplevalue
uint16 * td_transferfunction[3]
uint16 td_ycbcrpositioning
double * td_smaxsamplevalue
uint16 td_halftonehints[2]
uint16 td_ycbcrsubsampling[2]
unsigned char field_passcount
TIFFTagMethods tif_tagmethods
const TIFFCodec * TIFFFindCODEC(uint16 scheme)
int TIFFGetField(TIFF *tif, uint32 tag,...)
#define FIELD_SUBFILETYPE
#define FIELD_STRIPOFFSETS
#define FIELD_TRANSFERFUNCTION
#define FIELD_HALFTONEHINTS
#define FIELD_ORIENTATION
#define FIELD_MINSAMPLEVALUE
#define FIELD_SMAXSAMPLEVALUE
#define FIELD_IMAGEDIMENSIONS
#define FIELD_YCBCRSUBSAMPLING
#define FIELD_EXTRASAMPLES
#define FIELD_SMINSAMPLEVALUE
#define TIFFFieldSet(tif, field)
#define FIELD_MAXSAMPLEVALUE
#define FIELD_TILEDIMENSIONS
#define FIELD_ROWSPERSTRIP
#define FIELD_COMPRESSION
#define FIELD_YCBCRPOSITIONING
#define FIELD_REFBLACKWHITE
#define FIELD_SAMPLEFORMAT
#define FIELD_BITSPERSAMPLE
#define FIELD_RESOLUTIONUNIT
#define FIELD_PLANARCONFIG
#define FIELD_SAMPLESPERPIXEL
#define FIELD_PHOTOMETRIC
#define FIELD_THRESHHOLDING
const TIFFField * TIFFFieldWithTag(TIFF *tif, uint32 tag)
int _TIFFDataSize(TIFFDataType type)
uint64 TIFFGetStrileOffset(TIFF *tif, uint32 strile)
uint64 TIFFGetStrileByteCount(TIFF *tif, uint32 strile)
int TIFFGetTagListCount(TIFF *tif)
uint32 TIFFGetTagListEntry(TIFF *tif, int tag_index)
static void _TIFFPrintField(FILE *fd, const TIFFField *fip, uint32 value_count, void *raw_data)
static int _TIFFPrettyPrintField(TIFF *tif, const TIFFField *fip, FILE *fd, uint32 tag, uint32 value_count, void *raw_data)
static const char *const photoNames[]
static const char *const orientNames[]
void * _TIFFmalloc(tmsize_t s)
#define PLANARCONFIG_SEPARATE
#define THRESHHOLD_HALFTONE
#define EXTRASAMPLE_UNASSALPHA
#define YCBCRPOSITION_CENTERED
#define YCBCRPOSITION_COSITED
#define RESUNIT_CENTIMETER
#define EXTRASAMPLE_ASSOCALPHA
#define FILLORDER_LSB2MSB
#define SAMPLEFORMAT_COMPLEXINT
#define SAMPLEFORMAT_UINT
#define EXTRASAMPLE_UNSPECIFIED
#define FILETYPE_REDUCEDIMAGE
#define THRESHHOLD_ERRORDIFFUSE
#define PHOTOMETRIC_LOGLUV
#define SAMPLEFORMAT_IEEEFP
#define FILLORDER_MSB2LSB
#define SAMPLEFORMAT_COMPLEXIEEEFP
#define THRESHHOLD_BILEVEL
#define SAMPLEFORMAT_VOID
#define PLANARCONFIG_CONTIG
#define TIFFPRINT_COLORMAP