Tue Jun 7 03:47:03 2005 John Ellis <johne@verizon.net>
[geeqie.git] / src / format_nikon.h
1 /*
2  *  GQView
3  *  (C) 2005 John Ellis
4  *
5  * This software is released under the GNU General Public License (GNU GPL).
6  * Please read the included file COPYING for more information.
7  * This software comes with no warranty of any kind, use at your own risk!
8  */
9
10 #ifndef __FORMAT_NIKON_H
11 #define __FORMAT_NIKON_H
12
13
14 #include "exif.h"
15
16 gint format_nikon_raw(const void *data, const guint len,
17                       guint *image_offset, guint *exif_offset);
18
19 #define FORMAT_RAW_NIKON { "II\x2a\x00", 4, "Nikon tiff raw", format_nikon_raw }, \
20                          { "MM\x00\x2a", 4, "Nikon tiff raw", format_nikon_raw }
21
22
23 gint format_nikon_makernote(ExifData *exif, unsigned char *tiff, guint offset,
24                             guint size, ExifByteOrder byte_order);
25
26 #define FORMAT_EXIF_NIKON { FORMAT_EXIF_MATCH_MAKERNOTE, "Nikon\x00", 6, "Nikon", format_nikon_makernote }, \
27                           { FORMAT_EXIF_MATCH_MAKE,      "NIKON",     5, "Nikon", format_nikon_makernote }
28
29
30 #endif
31