Sat Jun 4 22:24:00 2005 John Ellis <johne@verizon.net>
[geeqie.git] / src / format_raw.h
1 /*
2  *  GQView
3  *  (C) 2005 John Ellis
4  *
5  *  Authors:
6  *    Original version 2005 Lars Ellenberg, base on dcraw by David coffin.
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13 #ifndef __FORMAT_RAW_H
14 #define __FORMAT_RAW_H
15
16
17 #include "exif.h"
18
19
20 typedef gint (* FormatRawParseFunc)(const void *data, const guint len,
21                                     guint *image_offset, guint *exif_offset);
22
23 gint format_raw_img_exif_offsets(const void *data, const guint len,
24                                  guint *image_offset, guint *exif_offset);
25 gint format_raw_img_exif_offsets_fd(int fd, const void *header_data, const guint header_len,
26                                     guint *image_offset, guint *exif_offset);
27
28
29 typedef enum {
30         FORMAT_EXIF_MATCH_MAKE,
31         FORMAT_EXIF_MATCH_MAKERNOTE
32 } FormatExifMatchType;
33
34 typedef gint (* FormatExifParseFunc)(ExifData *exif, unsigned char *tiff, guint offset,
35                                     guint size, ExifByteOrder byte_order);
36
37 gint format_exif_makernote_parse(ExifData *exif, unsigned char *tiff, guint offset,
38                                  guint size, ExifByteOrder byte_order);
39
40
41 #endif
42