4 * Copyright (C) 2008 - 2012 The Geeqie Team
6 * This software is released under the GNU General Public License (GNU GPL).
7 * Please read the included file COPYING for more information.
8 * This software comes with no warranty of any kind, use at your own risk!
11 * Code to add support for Canon CR2 and CRW files, version 0.2
13 * Developed by Daniel M. German, dmgerman at uvic.ca
15 * you can find the sources for this patch at http://turingmachine.org/~dmg/libdcraw/gqview/
19 #ifndef __FORMAT_CANON_H
20 #define __FORMAT_CANON_H
26 gboolean format_canon_raw_crw(guchar *data, const guint len,
27 guint *image_offset, guint *exif_offset);
29 gboolean format_canon_raw_cr2(guchar *data, const guint len,
30 guint *image_offset, guint *exif_offset);
32 #define FORMAT_RAW_CANON { "crw", \
33 FORMAT_RAW_MATCH_MAGIC, 6, "HEAPCCDR", 8, \
34 FORMAT_RAW_EXIF_NONE, NULL, \
35 "Canon crw", format_canon_raw_crw }, \
37 FORMAT_RAW_MATCH_TIFF_MAKE, 0, "Canon", 5, \
38 FORMAT_RAW_EXIF_TIFF, NULL, \
39 "Canon cr2", format_canon_raw_cr2 }
42 gboolean format_canon_makernote(ExifData *exif, guchar *tiff, guint offset,
43 guint size, ExifByteOrder bo);
45 #define FORMAT_EXIF_CANON { FORMAT_EXIF_MATCH_MAKE, "Canon", 5, "Canon", format_canon_makernote }
49 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */