diff src/format_raw.c @ 114:50fc73e08550

Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net> * bar_exif.c, cache-loader.c, pan-view.c: Pass new arg for exif_read(). * color-man.[ch]: Add color_man_new_embedded for using in-memory color profiles. * exif.[ch]: Add support for extracting color profiles embedded in jpeg and tiff images. This resulted in a rewrite of the jpeg parser; both to allow searching for any marker type, and to make the code readable. * format_raw.c: Add color profile tag to the debug code. * image.c, layout.c: Use embedded color profiles when found and enabled, also add toggle for the option in color profile menu.
author gqview
date Mon, 27 Nov 2006 06:37:48 +0000
parents 847e4bc6b54c
children 71e1ebee420e
line wrap: on
line diff
--- a/src/format_raw.c	Sat Nov 25 03:00:33 2006 +0000
+++ b/src/format_raw.c	Mon Nov 27 06:37:48 2006 +0000
@@ -481,6 +481,10 @@
 			format_debug_tiff_table(data, len, subset, bo, level + 1);
 			}
 		}
+	else if (tag == 0x8773 && type == EXIF_FORMAT_UNDEFINED)
+		{
+		printf("%*s~~~ found ICC color profile at offset %d, length %d\n", level, "", segment, seg_len);
+		}
 	else if (tag == 0x201 && (type == EXIF_FORMAT_LONG_UNSIGNED || type == EXIF_FORMAT_LONG))
 		{
 		guint subset = exif_byte_get_int32(data + segment, bo);