Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <stdio.h></stdio.h>
Toshihiro Shimizu 890ddd
#include <stdlib.h></stdlib.h>
Toshihiro Shimizu 890ddd
#include <string.h></string.h>
Toshihiro Shimizu 890ddd
#include <unistd.h></unistd.h>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#define _TOONZ_PROTOTYPES_
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "toonz.h"
Toshihiro Shimizu 890ddd
#include "tiff.h"
Toshihiro Shimizu 890ddd
#include "tiffio.h"
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void main(int argc, char *argv[]) {
Shinya Kitaoka 120a6e
  TIFF *tfp = NIL;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  if (argc != 2) {
Shinya Kitaoka 120a6e
    printf("tiff_dir error: missing parameters\n");
Shinya Kitaoka 120a6e
    exit(0);
Shinya Kitaoka 120a6e
  }
Shinya Kitaoka 120a6e
  Tiff_ignore_missing_internal_colormap = 1;
Shinya Kitaoka 120a6e
  Silent_tiff_print_error               = 1;
Shinya Kitaoka 120a6e
  tfp                                   = TIFFOpen(argv[1], "r");
Shinya Kitaoka 120a6e
  if (!tfp) {
Shinya Kitaoka 120a6e
    printf("unable to open %s\n", argv[1]);
Shinya Kitaoka 120a6e
    exit(0);
Shinya Kitaoka 120a6e
  }
Shinya Kitaoka 120a6e
  TIFFPrintDirectory(tfp, stderr, TRUE);
Shinya Kitaoka 120a6e
  while (TIFFReadDirectory(tfp)) TIFFPrintDirectory(tfp, stderr, TRUE);
Shinya Kitaoka 120a6e
  TIFFClose(tfp);
Toshihiro Shimizu 890ddd
}