Remove commented out code.
[geeqie.git] / src / color-man.h
1 /*
2  * Geeqie
3  * (C) 2006 John Ellis
4  * Copyright (C) 2008 - 2012 The Geeqie Team
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 {
18         COLOR_PROFILE_NONE = -1,
19         COLOR_PROFILE_MEM = -2,
20         COLOR_PROFILE_SRGB = 0,
21         COLOR_PROFILE_ADOBERGB,
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;
38         gint incremental_sync;
39         gint row;
40
41         gpointer profile;
42
43         guint idle_id; /* event source id */
44
45         ColorManDoneFunc func_done;
46         gpointer func_done_data;
47 };
48
49
50 ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf,
51                         ColorManProfileType input_type, const gchar *input_file,
52                         ColorManProfileType screen_type, const gchar *screen_file,
53                         guchar *screen_data, guint screen_data_len);
54 ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
55                                  guchar *input_data, guint input_data_len,
56                                  ColorManProfileType screen_type, const gchar *screen_file,
57                                  guchar *screen_data, guint screen_data_len);
58 void color_man_free(ColorMan *cm);
59
60 void color_man_update(void);
61
62 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
63
64 void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);
65
66 gboolean color_man_get_status(ColorMan *cm, gchar **image_profile, gchar **screen_profile);
67
68 #endif
69 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */