6 * Original version 2005 Lars Ellenberg, base on dcraw by David coffin.
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!
26 #include "format_fuji.h"
27 #include "format_raw.h"
30 gint format_raw_test_fuji(const void *data, const guint len,
31 guint *image_offset, guint *exif_offset)
37 memcmp(data, "FUJIFILM", 8) != 0)
42 io = GUINT32_FROM_BE(*(guint32*)(data + 84));
43 eo = *image_offset + 12;
45 /* verify jpeg marker */
46 if (memcmp(data + io, "\xff\xd8\xff\xe1", 4) != 0)
51 if (image_offset) *image_offset = io;
52 if (exif_offset) *exif_offset = eo;
54 printf("raw Fuji format file\n");