comparison src/format_raw.c @ 59:57f6da2510d9

Sun Jun 12 19:25:26 2005 John Ellis <johne@verizon.net> * format_canon.[ch]: Reimplement canon raw parser to use convenience functions from exif.c, also separated parsers into one per file type. For the cr2 format also verify compression type in tiff field 0x0103. * format_raw.c: Add FIXME comment noting current shortcomings.
author gqview
date Sun, 12 Jun 2005 23:45:45 +0000
parents a8c9992320f4
children 847e4bc6b54c
comparison
equal deleted inserted replaced
58:df73b94154e4 59:57f6da2510d9
302 if (!match) return FALSE; 302 if (!match) return FALSE;
303 303
304 if (debug) printf("RAW file parser extension match\n"); 304 if (debug) printf("RAW file parser extension match\n");
305 } 305 }
306 306
307 /* FIXME:
308 * when the target is a tiff file it should be mmaped prior to format_raw_find as
309 * the make field data may not always be within header_data + header_len
310 */
307 entry = format_raw_find(header_data, header_len); 311 entry = format_raw_find(header_data, header_len);
308 312
309 if (!entry || !entry->func_parse) return FALSE; 313 if (!entry || !entry->func_parse) return FALSE;
310 314
311 if (fstat(fd, &st) == -1) 315 if (fstat(fd, &st) == -1)