diff src/color-man.h @ 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 55166d93498d
children 53b2bfdcff69
line wrap: on
line diff
--- a/src/color-man.h	Sat Nov 25 03:00:33 2006 +0000
+++ b/src/color-man.h	Mon Nov 27 06:37:48 2006 +0000
@@ -17,6 +17,7 @@
 	COLOR_PROFILE_NONE = 0,
 	COLOR_PROFILE_FILE,
 	COLOR_PROFILE_SRGB,
+	COLOR_PROFILE_MEM
 } ColorManProfileType;
 
 typedef enum {
@@ -47,6 +48,10 @@
 			ColorManProfileType input_type, const gchar *input_file,
 			ColorManProfileType screen_type, const gchar *screen_file,
 			ColorManDoneFunc done_func, gpointer done_data);
+ColorMan *color_man_new_embedded(ImageWindow *imd,
+				 unsigned char *input_data, guint input_data_len,
+				 ColorManProfileType screen_type, const gchar *screen_file,
+				 ColorManDoneFunc done_func, gpointer done_data);
 void color_man_free(ColorMan *cm);
 
 void color_man_update(void);