#include "format_nikon.h"
+/* so that debugging is honored */
+extern gint debug;
+
+
typedef struct _FormatRawEntry FormatRawEntry;
struct _FormatRawEntry {
const void *header_pattern;
static FormatRawEntry format_raw_list[] = {
FORMAT_RAW_CANON,
FORMAT_RAW_FUJI,
+ FORMAT_RAW_NIKON,
{ NULL, 0, NULL, NULL }
};
FormatExifMatchType header_type;
const void *header_pattern;
const guint header_length;
+ const gchar *description;
FormatExifParseFunc func_parse;
};
if (!entry || !entry->func_parse) return FALSE;
+ if (debug) printf("RAW using file parser for %s\n", entry->description);
+
found = entry->func_parse(data, len, &io, &eo);
if (!found ||
if (!entry || !entry->func_parse) return FALSE;
+ if (debug) printf("EXIF using makernote parser for %s\n", entry->description);
+
return entry->func_parse(exif, tiff, offset, size, byte_order);
}