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
27 gboolean format_nikon_raw(guchar *data, guint len,
28 guint *image_offset, guint *exif_offset);
30 #define FORMAT_RAW_NIKON { "nef", \
31 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "NIKON CORPORATION", 17, \
32 FORMAT_RAW_EXIF_TIFF, nullptr, \
33 "Nikon raw", format_nikon_raw }
35 /* If your format is basically just TIFF with an embedded jpeg,
36 * then avoid duplicating code and just stick it here and use the existing nikon parse.
38 #define FORMAT_RAW_PENTAX { "pef", \
39 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "PENTAX Corporation", 18, \
40 FORMAT_RAW_EXIF_TIFF, nullptr, \
41 "Pentax raw", format_nikon_raw }
43 #define FORMAT_RAW_SAMSUNG { "pef", \
44 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "SAMSUNG TECHWIN", 15, \
45 FORMAT_RAW_EXIF_TIFF, nullptr, \
46 "Samsung raw", format_nikon_raw }
48 gboolean format_nikon_makernote(ExifData *exif, guchar *tiff, guint offset,
49 guint size, ExifByteOrder bo);
51 #define FORMAT_EXIF_NIKON { FORMAT_EXIF_MATCH_MAKERNOTE, "Nikon\x00", 6, "Nikon", format_nikon_makernote }, \
52 { FORMAT_EXIF_MATCH_MAKE, "NIKON", 5, "Nikon", format_nikon_makernote }
56 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */