Mercurial > geeqie
annotate src/color-man.h @ 429:831035240885
Let toggle marks with numeric keypad.
author | zas_ |
---|---|
date | Sat, 19 Apr 2008 20:53:12 +0000 |
parents | 9fe0ca1b5263 |
children | ddabc4873a3f |
rev | line source |
---|---|
113 | 1 /* |
196 | 2 * Geeqie |
113 | 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 { | |
426
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
17 COLOR_PROFILE_NONE = -1, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
18 COLOR_PROFILE_MEM = -2, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
19 COLOR_PROFILE_SRGB = 0, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
20 COLOR_PROFILE_ADOBERGB, |
113 | 21 COLOR_PROFILE_FILE, |
22 } ColorManProfileType; | |
23 | |
24 typedef enum { | |
25 COLOR_RETURN_SUCCESS = 0, | |
26 COLOR_RETURN_ERROR, | |
27 COLOR_RETURN_IMAGE_CHANGED | |
28 } ColorManReturnType; | |
29 | |
30 typedef struct _ColorMan ColorMan; | |
31 typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data); | |
32 | |
33 | |
34 struct _ColorMan { | |
35 ImageWindow *imd; | |
36 GdkPixbuf *pixbuf; | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
37 gint incremental_sync; |
113 | 38 gint row; |
39 | |
40 gpointer profile; | |
41 | |
42 gint idle_id; | |
43 | |
44 ColorManDoneFunc func_done; | |
45 gpointer func_done_data; | |
46 }; | |
47 | |
48 | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
49 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf, |
113 | 50 ColorManProfileType input_type, const gchar *input_file, |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
51 ColorManProfileType screen_type, const gchar *screen_file); |
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, |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
54 ColorManProfileType screen_type, const gchar *screen_file); |
113 | 55 void color_man_free(ColorMan *cm); |
56 | |
57 void color_man_update(void); | |
58 | |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
59 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h); |
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
60 |
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
61 void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data); |
113 | 62 |
63 #endif | |
64 |