Simplify vflist_get_formatted()
[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
24 #include "exif-int.h"
25
26
27 gboolean format_olympus_raw(guchar *data, const guint len,
28                             guint *image_offset, guint *exif_offset);
29
30
31 #define FORMAT_RAW_OLYMPUS { "orf", \
32                              FORMAT_RAW_MATCH_MAGIC, 0, "IIR", 3, \
33                              FORMAT_RAW_EXIF_IFD_II, NULL, \
34                              "Olympus raw", format_olympus_raw }
35
36
37 gboolean format_olympus_makernote(ExifData *exif, guchar *tiff, guint offset,
38                                   guint size, ExifByteOrder bo);
39
40 #define FORMAT_EXIF_OLYMPUS { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x01", 7, \
41                               "Olympus", format_olympus_makernote }, \
42                             { FORMAT_EXIF_MATCH_MAKERNOTE, "OLYMP\x00\x02", 7, \
43                               "Olympus", format_olympus_makernote }
44
45
46 #endif
47 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */