diff src/image-load.c @ 43:ee03f36e9e4b

Sun May 15 21:40:26 2005 John Ellis <johne@verizon.net> * format_raw.[ch]: New files to parse image data and exif offsets for the raw camera formats. * exif.c, image-load.c: Add support calls to format_raw.c functions above. * filelist.c: Add Fujifilm raw file extension to known formats. * thumb_standard.c (thumb_loader_std_start): Check for existing thumbnail file before checking for a failure mark. * src/Makefile.am: Add format_raw.[ch]. ##### Note: GQview CVS on sourceforge is not always up to date, please use ##### ##### an offical release when making enhancements and translation updates. #####
author gqview
date Mon, 16 May 2005 01:49:51 +0000
parents 25335c62cd9b
children 7cfa60beda76
line wrap: on
line diff
--- a/src/image-load.c	Sat May 14 20:58:18 2005 +0000
+++ b/src/image-load.c	Mon May 16 01:49:51 2005 +0000
@@ -13,6 +13,7 @@
 #include "gqview.h"
 #include "image-load.h"
 
+#include "format_raw.h"
 #include "ui_fileops.h"
 
 #include <fcntl.h>
@@ -210,6 +211,7 @@
 {
 	guchar buf[IMAGE_LOADER_BUFFER_SIZE];
 	int b;
+	unsigned int offset = 0;
 
 	if (!il->loader || il->pixbuf) return FALSE;
 
@@ -221,7 +223,9 @@
 		return FALSE;
 		}
 
-	if (gdk_pixbuf_loader_write(il->loader, buf, b, NULL))
+	format_raw_img_exif_offsets(il->load_fd, buf, b, &offset, NULL);
+
+	if (gdk_pixbuf_loader_write(il->loader, buf + offset, b - offset, NULL))
 		{
 		il->bytes_read += b;