64f0e1f1d3dde37c1b42cfe06542c64d9241324b
[geeqie.git] / src / format_canon.h
1 /*
2  *  GQView
3  *  (C) 2005 John Ellis
4  *
5  * This software is released under the GNU General Public License (GNU GPL).
6  * Please read the included file COPYING for more information.
7  * This software comes with no warranty of any kind, use at your own risk!
8  *
9  *
10  * Code to add support for Canon CR2 and CRW files, version 0.2
11  *
12  * Developed by Daniel M. German, dmgerman at uvic.ca 
13  *
14  * you can find the sources for this patch at http://turingmachine.org/~dmg/libdcraw/gqview/
15  *
16  */
17
18 #ifndef __FORMAT_CANON_H
19 #define __FORMAT_CANON_H
20
21
22 #include "exif.h"
23
24
25 gint format_canon_raw_crw(unsigned char *data, const guint len,
26                           guint *image_offset, guint *exif_offset);
27
28 gint format_canon_raw_cr2(unsigned char *data, const guint len,
29                           guint *image_offset, guint *exif_offset);
30
31 #define FORMAT_RAW_CANON { "crw", \
32                            FORMAT_RAW_MATCH_MAGIC,     6, "HEAPCCDR", 8, \
33                            "Canon crw", format_canon_raw_crw }, \
34                          { "cr2", \
35                            FORMAT_RAW_MATCH_TIFF_MAKE, 0, "Canon", 5, \
36                            "Canon cr2", format_canon_raw_cr2 }
37
38
39 gint format_canon_makernote(ExifData *exif, unsigned char *tiff, guint offset,
40                             guint size, ExifByteOrder bo);
41
42 #define FORMAT_EXIF_CANON { FORMAT_EXIF_MATCH_MAKE, "Canon", 5, "Canon", format_canon_makernote }
43
44
45 #endif
46
47