Mercurial > geeqie
annotate src/color-man.h @ 771:24726eddb252
vflist_populate_view: better handle selected files that are renamed or deleted
author | nadvornik |
---|---|
date | Fri, 30 May 2008 21:41:46 +0000 |
parents | 48c8e49b571c |
children | 4fe8f9656107 |
rev | line source |
---|---|
113 | 1 /* |
196 | 2 * Geeqie |
113 | 3 * (C) 2006 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
113 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 | |
14 #ifndef COLOR_MAN_H | |
15 #define COLOR_MAN_H | |
16 | |
17 typedef enum { | |
426
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
18 COLOR_PROFILE_NONE = -1, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
19 COLOR_PROFILE_MEM = -2, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
20 COLOR_PROFILE_SRGB = 0, |
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
424
diff
changeset
|
21 COLOR_PROFILE_ADOBERGB, |
113 | 22 COLOR_PROFILE_FILE, |
23 } ColorManProfileType; | |
24 | |
25 typedef enum { | |
26 COLOR_RETURN_SUCCESS = 0, | |
27 COLOR_RETURN_ERROR, | |
28 COLOR_RETURN_IMAGE_CHANGED | |
29 } ColorManReturnType; | |
30 | |
31 typedef struct _ColorMan ColorMan; | |
32 typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data); | |
33 | |
34 | |
35 struct _ColorMan { | |
36 ImageWindow *imd; | |
37 GdkPixbuf *pixbuf; | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
38 gint incremental_sync; |
113 | 39 gint row; |
40 | |
41 gpointer profile; | |
42 | |
43 gint idle_id; | |
44 | |
45 ColorManDoneFunc func_done; | |
46 gpointer func_done_data; | |
47 }; | |
48 | |
49 | |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
114
diff
changeset
|
50 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf, |
113 | 51 ColorManProfileType input_type, const gchar *input_file, |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
52 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
|
53 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
|
54 unsigned char *input_data, guint input_data_len, |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
55 ColorManProfileType screen_type, const gchar *screen_file); |
113 | 56 void color_man_free(ColorMan *cm); |
57 | |
58 void color_man_update(void); | |
59 | |
398
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
60 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
|
61 |
c4080362d619
image post-processing (rotation and color management) moved to
nadvornik
parents:
196
diff
changeset
|
62 void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data); |
113 | 63 |
64 #endif |