/*
- * GQView
- * (C) 2005 John Ellis
+ * Copyright (C) 2005 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
*
- * Authors:
- * Original version 2005 Lars Ellenberg, base on dcraw by David coffin.
+ * Author: Lars Ellenberg
*
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __FORMAT_RAW_H
FORMAT_RAW_EXIF_PROPRIETARY
} FormatRawExifType;
-typedef gint (* FormatRawParseFunc)(unsigned char *data, const guint len,
- guint *image_offset, guint *exif_offset);
+typedef gboolean (* FormatRawParseFunc)(guchar *data, const guint len,
+ guint *image_offset, guint *exif_offset);
-typedef gint (* FormatRawExifParseFunc)(unsigned char *data, const guint len,
- ExifData *exif);
+typedef gboolean (* FormatRawExifParseFunc)(guchar *data, const guint len,
+ ExifData *exif);
-gint format_raw_img_exif_offsets(unsigned char *data, const guint len,
- guint *image_offset, guint *exif_offset);
-gint format_raw_img_exif_offsets_fd(int fd, const gchar *path,
- unsigned char *header_data, const guint header_len,
- guint *image_offset, guint *exif_offset);
+gboolean format_raw_img_exif_offsets(guchar *data, const guint len,
+ guint *image_offset, guint *exif_offset);
+gboolean format_raw_img_exif_offsets_fd(gint fd, const gchar *path,
+ guchar *header_data, const guint header_len,
+ guint *image_offset, guint *exif_offset);
-FormatRawExifType format_raw_exif_offset(unsigned char *data, const guint len, guint *exif_offset,
+FormatRawExifType format_raw_exif_offset(guchar *data, const guint len, guint *exif_offset,
FormatRawExifParseFunc *exif_parse_func);
FORMAT_EXIF_MATCH_MAKERNOTE
} FormatExifMatchType;
-typedef gint (* FormatExifParseFunc)(ExifData *exif, unsigned char *tiff, guint offset,
- guint size, ExifByteOrder bo);
+typedef gint (* FormatExifParseFunc)(ExifData *exif, guchar *tiff, guint offset,
+ guint size, ExifByteOrder bo);
-gint format_exif_makernote_parse(ExifData *exif, unsigned char *tiff, guint offset,
- guint size, ExifByteOrder bo);
+gboolean format_exif_makernote_parse(ExifData *exif, guchar *tiff, guint offset,
+ guint size, ExifByteOrder bo);
#define DEBUG_RAW_TIFF 0
"Tiff debugger MM", format_debug_tiff_raw }
/* used for debugging only */
-gint format_debug_tiff_raw(unsigned char *data, const guint len,
+gint format_debug_tiff_raw(guchar *data, const guint len,
guint *image_offset, guint *exif_offset);
#endif
#endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */