/*
- * GQview
+ * Geeqie
* (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2012 The Geeqie Team
*
* Author: John Ellis
*
#define COLOR_MAN_H
typedef enum {
- COLOR_PROFILE_NONE = 0,
+ COLOR_PROFILE_NONE = -1,
+ COLOR_PROFILE_MEM = -2,
+ COLOR_PROFILE_SRGB = 0,
+ COLOR_PROFILE_ADOBERGB,
COLOR_PROFILE_FILE,
- COLOR_PROFILE_SRGB,
- COLOR_PROFILE_MEM
} ColorManProfileType;
typedef enum {
struct _ColorMan {
ImageWindow *imd;
GdkPixbuf *pixbuf;
+ gint incremental_sync;
gint row;
gpointer profile;
- gint idle_id;
+ guint idle_id; /* event source id */
ColorManDoneFunc func_done;
gpointer func_done_data;
};
-ColorMan *color_man_new(ImageWindow *imd,
+ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf,
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,
+ guchar *screen_data, guint screen_data_len);
+ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
+ guchar *input_data, guint input_data_len,
ColorManProfileType screen_type, const gchar *screen_file,
- ColorManDoneFunc done_func, gpointer done_data);
+ guchar *screen_data, guint screen_data_len);
void color_man_free(ColorMan *cm);
void color_man_update(void);
+void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
-#endif
+void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);
+
+gboolean color_man_get_status(ColorMan *cm, gchar **image_profile, gchar **screen_profile);
+#endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */