7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
17 COLOR_PROFILE_NONE = -1,
18 COLOR_PROFILE_MEM = -2,
19 COLOR_PROFILE_SRGB = 0,
20 COLOR_PROFILE_ADOBERGB,
22 } ColorManProfileType;
25 COLOR_RETURN_SUCCESS = 0,
27 COLOR_RETURN_IMAGE_CHANGED
30 typedef struct _ColorMan ColorMan;
31 typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data);
37 gint incremental_sync;
44 ColorManDoneFunc func_done;
45 gpointer func_done_data;
49 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf,
50 ColorManProfileType input_type, const gchar *input_file,
51 ColorManProfileType screen_type, const gchar *screen_file);
52 ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
53 unsigned char *input_data, guint input_data_len,
54 ColorManProfileType screen_type, const gchar *screen_file);
55 void color_man_free(ColorMan *cm);
57 void color_man_update(void);
59 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
61 void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);