2 * Copyright (C) 2006 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 COLOR_PROFILE_NONE = -1,
27 COLOR_PROFILE_MEM = -2,
28 COLOR_PROFILE_SRGB = 0,
29 COLOR_PROFILE_ADOBERGB,
31 } ColorManProfileType;
34 COLOR_RETURN_SUCCESS = 0,
36 COLOR_RETURN_IMAGE_CHANGED
39 typedef struct _ColorMan ColorMan;
40 typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data);
46 gint incremental_sync;
51 guint idle_id; /* event source id */
53 ColorManDoneFunc func_done;
54 gpointer func_done_data;
58 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf,
59 ColorManProfileType input_type, const gchar *input_file,
60 ColorManProfileType screen_type, const gchar *screen_file,
61 guchar *screen_data, guint screen_data_len);
62 ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
63 guchar *input_data, guint input_data_len,
64 ColorManProfileType screen_type, const gchar *screen_file,
65 guchar *screen_data, guint screen_data_len);
66 void color_man_free(ColorMan *cm);
68 void color_man_update(void);
70 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
72 void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);
74 gboolean color_man_get_status(ColorMan *cm, gchar **image_profile, gchar **screen_profile);
76 guchar *heif_color_profile(FileData *fd, guint *profile_len);
78 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */