2 * Copyright (C) 2005 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
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.
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.
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.
20 #ifndef __FORMAT_NIKON_H
21 #define __FORMAT_NIKON_H
26 gboolean format_nikon_raw(guchar *data, guint len,
27 guint *image_offset, guint *exif_offset);
29 #define FORMAT_RAW_NIKON { "nef", \
30 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "NIKON CORPORATION", 17, \
31 FORMAT_RAW_EXIF_TIFF, NULL, \
32 "Nikon raw", format_nikon_raw }
34 /* If your format is basically just TIFF with an embedded jpeg,
35 * then avoid duplicating code and just stick it here and use the existing nikon parse.
37 #define FORMAT_RAW_PENTAX { "pef", \
38 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "PENTAX Corporation", 18, \
39 FORMAT_RAW_EXIF_TIFF, NULL, \
40 "Pentax raw", format_nikon_raw }
42 #define FORMAT_RAW_SAMSUNG { "pef", \
43 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "SAMSUNG TECHWIN", 15, \
44 FORMAT_RAW_EXIF_TIFF, NULL, \
45 "Samsung raw", format_nikon_raw }
47 gboolean format_nikon_makernote(ExifData *exif, guchar *tiff, guint offset,
48 guint size, ExifByteOrder bo);
50 #define FORMAT_EXIF_NIKON { FORMAT_EXIF_MATCH_MAKERNOTE, "Nikon\x00", 6, "Nikon", format_nikon_makernote }, \
51 { FORMAT_EXIF_MATCH_MAKE, "NIKON", 5, "Nikon", format_nikon_makernote }
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */