Tue Nov 7 15:35:59 2006 John Ellis <johne@verizon.net>
[geeqie.git] / src / format_olympus.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_OLYMPUS_H
11 #define __FORMAT_OLYMPUS_H
12
13
14 #include "exif.h"
15
16
17 gint format_olympus_raw(unsigned char *data, const guint len,
18                         guint *image_offset, guint *exif_offset);
19
20
21 #define FORMAT_RAW_OLYMPUS { "orf", \
22                              FORMAT_RAW_MATCH_MAGIC, 0, "IIR", 3, \
23                              FORMAT_RAW_EXIF_IFD_II, NULL, \
24                              "Olympus raw", format_olympus_raw }
25
26
27 gint format_olympus_makernote(ExifData *exif, unsigned char *tiff, guint offset,
28                               guint size, ExifByteOrder bo);
29
30 #define FORMAT_EXIF_OLYMPUS { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x01", 7, \
31                               "Olympus", format_olympus_makernote }, \
32                             { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x02", 7, \
33                               "Olympus", format_olympus_makernote }
34
35
36 #endif
37