Compile modules based on HAVE_* features
[geeqie.git] / src / format-olympus.h
1 /*
2  * Copyright (C) 2005 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19
20 #ifndef __FORMAT_OLYMPUS_H
21 #define __FORMAT_OLYMPUS_H
22
23 #include <glib.h>
24
25 #include "exif-int.h"
26
27
28 gboolean format_olympus_raw(guchar *data, guint len,
29                             guint *image_offset, guint *exif_offset);
30
31
32 #define FORMAT_RAW_OLYMPUS { "orf", \
33                              FORMAT_RAW_MATCH_MAGIC, 0, "IIR", 3, \
34                              FORMAT_RAW_EXIF_IFD_II, nullptr, \
35                              "Olympus raw", format_olympus_raw }
36
37
38 gboolean format_olympus_makernote(ExifData *exif, guchar *tiff, guint offset,
39                                   guint size, ExifByteOrder bo);
40
41 #define FORMAT_EXIF_OLYMPUS { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x01", 7, \
42                               "Olympus", format_olympus_makernote }, \
43                             { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x02", 7, \
44                               "Olympus", format_olympus_makernote }
45
46
47 #endif
48 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */