Mercurial > geeqie
annotate src/color-man.h @ 181:c01dd7c9c7dc
unified tag names between exiv2 and internal rxif parser
author | nadvornik |
---|---|
date | Wed, 13 Feb 2008 19:31:50 +0000 |
parents | 53b2bfdcff69 |
children | f6e307c7bad6 |
rev | line source |
---|---|
113 | 1 /* |
2 * GQview | |
3 * (C) 2006 John Ellis | |
4 * | |
5 * Author: John Ellis | |
6 * | |
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! | |
10 */ | |
11 | |
12 | |
13 #ifndef COLOR_MAN_H | |
14 #define COLOR_MAN_H | |
15 | |
16 typedef enum { | |
17 COLOR_PROFILE_NONE = 0, | |
18 COLOR_PROFILE_FILE, | |
19 COLOR_PROFILE_SRGB, | |
114
50fc73e08550
Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
20 COLOR_PROFILE_MEM |
113 | 21 } ColorManProfileType; |
22 | |
23 typedef enum { | |
24 COLOR_RETURN_SUCCESS = 0, | |
25 COLOR_RETURN_ERROR, | |
26 COLOR_RETURN_IMAGE_CHANGED | |
27 } ColorManReturnType; | |
28 | |
29 typedef struct _ColorMan ColorMan; | |
30 typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data); | |
31 | |
32 | |
33 struct _ColorMan { | |
34 ImageWindow *imd; | |
35 GdkPixbuf *pixbuf; | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
36 gint incremental_sync; |
113 | 37 gint row; |
38 | |
39 gpointer profile; | |
40 | |
41 gint idle_id; | |
42 | |
43 ColorManDoneFunc func_done; | |
44 gpointer func_done_data; | |
45 }; | |
46 | |
47 | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
48 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf, |
113 | 49 ColorManProfileType input_type, const gchar *input_file, |
50 ColorManProfileType screen_type, const gchar *screen_file, | |
51 ColorManDoneFunc done_func, gpointer done_data); | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
52 ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf, |
114
50fc73e08550
Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
53 unsigned char *input_data, guint input_data_len, |
50fc73e08550
Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
54 ColorManProfileType screen_type, const gchar *screen_file, |
50fc73e08550
Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
55 ColorManDoneFunc done_func, gpointer done_data); |
113 | 56 void color_man_free(ColorMan *cm); |
57 | |
58 void color_man_update(void); | |
59 | |
60 | |
61 #endif | |
62 |