Mercurial > geeqie.yaz
comparison src/image-load.h @ 1433:b4ad1d201279
Use gboolean where applicable, minor cleanup and indentations fixes.
author | zas_ |
---|---|
date | Sat, 14 Mar 2009 19:25:21 +0000 |
parents | 8b89e3ff286b |
children | 2c54f3f71634 |
comparison
equal
deleted
inserted
replaced
1432:cf4029d10d38 | 1433:b4ad1d201279 |
---|---|
29 gchar *path; | 29 gchar *path; |
30 | 30 |
31 gsize bytes_read; | 31 gsize bytes_read; |
32 gsize bytes_total; | 32 gsize bytes_total; |
33 | 33 |
34 gint preview; | 34 gboolean preview; |
35 | 35 |
36 gint requested_width; | 36 gint requested_width; |
37 gint requested_height; | 37 gint requested_height; |
38 gint shrunk; | 38 gboolean shrunk; |
39 | 39 |
40 gint done; | 40 gboolean done; |
41 gint idle_id; | 41 gint idle_id; |
42 gint idle_priority; | 42 gint idle_priority; |
43 | 43 |
44 GdkPixbufLoader *loader; | 44 GdkPixbufLoader *loader; |
45 | 45 |
46 gint idle_done_id; | 46 gint idle_done_id; |
47 GList *area_param_list; | 47 GList *area_param_list; |
48 GList *area_param_delayed_list; | 48 GList *area_param_delayed_list; |
49 | 49 |
50 gint delay_area_ready; | 50 gboolean delay_area_ready; |
51 | 51 |
52 GMutex *data_mutex; | 52 GMutex *data_mutex; |
53 gint stopping; | 53 gboolean stopping; |
54 gint can_destroy; | 54 gboolean can_destroy; |
55 GCond *can_destroy_cond; | 55 GCond *can_destroy_cond; |
56 gboolean thread; | 56 gboolean thread; |
57 | 57 |
58 guchar *mapped_file; | 58 guchar *mapped_file; |
59 gsize read_buffer_size; | 59 gsize read_buffer_size; |
75 ImageLoader *image_loader_new(FileData *fd); | 75 ImageLoader *image_loader_new(FileData *fd); |
76 | 76 |
77 void image_loader_free(ImageLoader *il); | 77 void image_loader_free(ImageLoader *il); |
78 | 78 |
79 /* delay area_ready signals */ | 79 /* delay area_ready signals */ |
80 void image_loader_delay_area_ready(ImageLoader *il, gint enable); | 80 void image_loader_delay_area_ready(ImageLoader *il, gboolean enable); |
81 | 81 |
82 /* Speed up loading when you only need at most width x height size image, | 82 /* Speed up loading when you only need at most width x height size image, |
83 * only the jpeg GdkPixbuf loader benefits from it - so there is no | 83 * only the jpeg GdkPixbuf loader benefits from it - so there is no |
84 * guarantee that the image will scale down to the requested size.. | 84 * guarantee that the image will scale down to the requested size.. |
85 */ | 85 */ |
90 /* this only has effect if used before image_loader_start() | 90 /* this only has effect if used before image_loader_start() |
91 * default is G_PRIORITY_DEFAULT_IDLE | 91 * default is G_PRIORITY_DEFAULT_IDLE |
92 */ | 92 */ |
93 void image_loader_set_priority(ImageLoader *il, gint priority); | 93 void image_loader_set_priority(ImageLoader *il, gint priority); |
94 | 94 |
95 gint image_loader_start(ImageLoader *il); | 95 gboolean image_loader_start(ImageLoader *il); |
96 | 96 |
97 | 97 |
98 GdkPixbuf *image_loader_get_pixbuf(ImageLoader *il); | 98 GdkPixbuf *image_loader_get_pixbuf(ImageLoader *il); |
99 gchar *image_loader_get_format(ImageLoader *il); | 99 gchar *image_loader_get_format(ImageLoader *il); |
100 gdouble image_loader_get_percent(ImageLoader *il); | 100 gdouble image_loader_get_percent(ImageLoader *il); |
101 gint image_loader_get_is_done(ImageLoader *il); | 101 gboolean image_loader_get_is_done(ImageLoader *il); |
102 FileData *image_loader_get_fd(ImageLoader *il); | 102 FileData *image_loader_get_fd(ImageLoader *il); |
103 gint image_loader_get_shrunk(ImageLoader *il); | 103 gboolean image_loader_get_shrunk(ImageLoader *il); |
104 | 104 |
105 gint image_load_dimensions(FileData *fd, gint *width, gint *height); | 105 gboolean image_load_dimensions(FileData *fd, gint *width, gint *height); |
106 | 106 |
107 #endif | 107 #endif |
108 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ | 108 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |