#ifndef COLOR_MAN_H
#define COLOR_MAN_H
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <glib.h>
+
+struct FileData;
+struct ImageWindow;
+
enum ColorManProfileType {
COLOR_PROFILE_NONE = -1,
COLOR_PROFILE_MEM = -2,
COLOR_RETURN_IMAGE_CHANGED
};
-struct ColorMan;
-using ColorManDoneFunc = void (*)(ColorMan *, ColorManReturnType, gpointer);
-
struct ColorMan {
ImageWindow *imd;
guint idle_id; /* event source id */
- ColorManDoneFunc func_done;
+ using DoneFunc = void (*)(ColorMan *, ColorManReturnType, gpointer);
+ DoneFunc func_done;
gpointer func_done_data;
};
guchar *screen_data, guint screen_data_len);
void color_man_free(ColorMan *cm);
-void color_man_update(void);
+void color_man_update();
void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
-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);
guchar *heif_color_profile(FileData *fd, guint *profile_len);