Mercurial > hg > forks > geeqie
annotate src/image-load.h @ 2916:ae6cdcd69d9f default tip
Merge with upstream/master.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 May 2019 11:46:50 +0300 |
parents | 43b8d416a674 |
children |
rev | line source |
---|---|
9 | 1 /* |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
2 * Copyright (C) 2004 John Ellis |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
3 * Copyright (C) 2008 - 2016 The Geeqie Team |
9 | 4 * |
5 * Author: John Ellis | |
6 * | |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
10 * (at your option) any later version. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
11 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
15 * GNU General Public License for more details. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
16 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
18 * with this program; if not, write to the Free Software Foundation, Inc., |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2185
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
9 | 20 */ |
21 | |
22 #ifndef IMAGE_LOAD_H | |
23 #define IMAGE_LOAD_H | |
24 | |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
25 #define TYPE_IMAGE_LOADER (image_loader_get_type()) |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
26 |
1901
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
27 typedef void (*ImageLoaderBackendCbAreaPrepared)(gpointer loader, gpointer data); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
28 typedef void (*ImageLoaderBackendCbSize)(gpointer loader, gint width, gint height, gpointer data); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
29 typedef void (*ImageLoaderBackendCbAreaUpdated)(gpointer loader, guint x, guint y, guint w, guint h, gpointer data); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
30 |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
31 typedef gpointer (*ImageLoaderBackendFuncLoaderNew)(ImageLoaderBackendCbAreaUpdated, ImageLoaderBackendCbSize, ImageLoaderBackendCbAreaPrepared, gpointer data); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
32 typedef void (*ImageLoaderBackendFuncSetSize)(gpointer loader, int width, int height); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
33 typedef gboolean (*ImageLoaderBackendFuncLoad)(gpointer loader, const guchar *buf, gsize count, GError **error); /* optional, load whole image at once */ |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
34 typedef gboolean (*ImageLoaderBackendFuncWrite)(gpointer loader, const guchar *buf, gsize count, GError **error); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
35 typedef GdkPixbuf* (*ImageLoaderBackendFuncGetPixbuf)(gpointer loader); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
36 typedef gboolean (*ImageLoaderBackendFuncClose)(gpointer loader, GError **error); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
37 typedef void (*ImageLoaderBackendFuncAbort)(gpointer loader); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
38 typedef void (*ImageLoaderBackendFuncFree)(gpointer loader); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
39 typedef gchar* (*ImageLoaderBackendFuncGetFormatName)(gpointer loader); |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
40 typedef gchar** (*ImageLoaderBackendFuncGetFormatMimeTypes)(gpointer loader); |
1900
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
41 |
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
42 typedef struct _ImageLoaderBackend ImageLoaderBackend; |
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
43 struct _ImageLoaderBackend |
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
44 { |
1901
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
45 ImageLoaderBackendFuncLoaderNew loader_new; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
46 ImageLoaderBackendFuncSetSize set_size; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
47 ImageLoaderBackendFuncLoad load; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
48 ImageLoaderBackendFuncWrite write; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
49 ImageLoaderBackendFuncGetPixbuf get_pixbuf; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
50 ImageLoaderBackendFuncClose close; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
51 ImageLoaderBackendFuncAbort abort; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
52 ImageLoaderBackendFuncFree free; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
53 ImageLoaderBackendFuncGetFormatName get_format_name; |
d21859e612de
added custom jpeg loader
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1900
diff
changeset
|
54 ImageLoaderBackendFuncGetFormatMimeTypes get_format_mime_types; |
1900
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
55 }; |
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
56 |
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
57 |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
58 //typedef struct _ImageLoader ImageLoader; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
59 typedef struct _ImageLoaderClass ImageLoaderClass; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
60 |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
61 struct _ImageLoader |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
62 { |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
63 GObject parent; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2021
diff
changeset
|
64 |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
65 /*< private >*/ |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
66 GdkPixbuf *pixbuf; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
67 FileData *fd; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
68 gchar *path; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
69 |
1185
2418eaf3036b
Fix up pointer signedness warnings.
Laurent Monin <geeqie@norz.org>
parents:
1055
diff
changeset
|
70 gsize bytes_read; |
2418eaf3036b
Fix up pointer signedness warnings.
Laurent Monin <geeqie@norz.org>
parents:
1055
diff
changeset
|
71 gsize bytes_total; |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
72 |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
73 gboolean preview; |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
74 |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
75 gint requested_width; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
76 gint requested_height; |
1938
ee4f2e54d806
call size signal indirectly via idle_call
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1901
diff
changeset
|
77 |
ee4f2e54d806
call size signal indirectly via idle_call
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1901
diff
changeset
|
78 gint actual_width; |
ee4f2e54d806
call size signal indirectly via idle_call
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1901
diff
changeset
|
79 gint actual_height; |
ee4f2e54d806
call size signal indirectly via idle_call
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1901
diff
changeset
|
80 |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
81 gboolean shrunk; |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
82 |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
83 gboolean done; |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1497
diff
changeset
|
84 guint idle_id; /* event source id */ |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
85 gint idle_priority; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
86 |
1900
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
87 gpointer *loader; |
1497
6b7c3b1ba708
report pixbuf loader errors
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1433
diff
changeset
|
88 GError *error; |
1900
6e146fa6ec29
infrastructure for image loader backend
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1802
diff
changeset
|
89 ImageLoaderBackend backend; |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
90 |
1523
e52aabe8fc7a
Fix up event source ids type: gint -> guint.
Laurent Monin <geeqie@norz.org>
parents:
1497
diff
changeset
|
91 guint idle_done_id; /* event source id */ |
1014
185edecefd2d
prepared image loader code for threads
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1012
diff
changeset
|
92 GList *area_param_list; |
1045
19bc806e0a69
added possibility to redraw only the parts of image that are already
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1021
diff
changeset
|
93 GList *area_param_delayed_list; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2021
diff
changeset
|
94 |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
95 gboolean delay_area_ready; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2021
diff
changeset
|
96 |
1015
8ae2996ac904
run image loader in separate thread
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1014
diff
changeset
|
97 GMutex *data_mutex; |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
98 gboolean stopping; |
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
99 gboolean can_destroy; |
1021 | 100 GCond *can_destroy_cond; |
101 gboolean thread; | |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
102 |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
103 guchar *mapped_file; |
1185
2418eaf3036b
Fix up pointer signedness warnings.
Laurent Monin <geeqie@norz.org>
parents:
1055
diff
changeset
|
104 gsize read_buffer_size; |
1559
a207eb3b00ce
Fix up few warnings (especially on 64bits platforms).
Laurent Monin <geeqie@norz.org>
parents:
1523
diff
changeset
|
105 guint idle_read_loop_count; |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
106 }; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
107 |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
108 struct _ImageLoaderClass { |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
109 GObjectClass parent; |
2185
c14a1d8e6aa4
Trim trailing white spaces on empty lines.
Laurent Monin <zas@norz.org>
parents:
2021
diff
changeset
|
110 |
1012
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
111 /* class members */ |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
112 void (*area_ready)(ImageLoader *, guint x, guint y, guint w, guint h, gpointer); |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
113 void (*error)(ImageLoader *, gpointer); |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
114 void (*done)(ImageLoader *, gpointer); |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
115 void (*percent)(ImageLoader *, gdouble, gpointer); |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
116 }; |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
117 |
409b52dfe683
converted image loader to a GObject and use signals for notification
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1011
diff
changeset
|
118 GType image_loader_get_type(void); |
9 | 119 |
138
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
9
diff
changeset
|
120 ImageLoader *image_loader_new(FileData *fd); |
5be5d1c53016
replaced gchar* path with FileData *fd
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
9
diff
changeset
|
121 |
9 | 122 void image_loader_free(ImageLoader *il); |
123 | |
1045
19bc806e0a69
added possibility to redraw only the parts of image that are already
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1021
diff
changeset
|
124 /* delay area_ready signals */ |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
125 void image_loader_delay_area_ready(ImageLoader *il, gboolean enable); |
9 | 126 |
127 /* Speed up loading when you only need at most width x height size image, | |
128 * only the jpeg GdkPixbuf loader benefits from it - so there is no | |
129 * guarantee that the image will scale down to the requested size.. | |
130 */ | |
131 void image_loader_set_requested_size(ImageLoader *il, gint width, gint height); | |
132 | |
133 void image_loader_set_buffer_size(ImageLoader *il, guint size); | |
134 | |
135 /* this only has effect if used before image_loader_start() | |
136 * default is G_PRIORITY_DEFAULT_IDLE | |
137 */ | |
138 void image_loader_set_priority(ImageLoader *il, gint priority); | |
139 | |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
140 gboolean image_loader_start(ImageLoader *il); |
9 | 141 |
142 | |
143 GdkPixbuf *image_loader_get_pixbuf(ImageLoader *il); | |
144 gdouble image_loader_get_percent(ImageLoader *il); | |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
145 gboolean image_loader_get_is_done(ImageLoader *il); |
1011
66037ee8b4d6
do not access image_loader directly
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1009
diff
changeset
|
146 FileData *image_loader_get_fd(ImageLoader *il); |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
147 gboolean image_loader_get_shrunk(ImageLoader *il); |
1497
6b7c3b1ba708
report pixbuf loader errors
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1433
diff
changeset
|
148 const gchar *image_loader_get_error(ImageLoader *il); |
9 | 149 |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
150 gboolean image_load_dimensions(FileData *fd, gint *width, gint *height); |
9 | 151 |
152 #endif | |
1055
4bbdfab3c89a
Adding a vim modeline to all files - patch by Klaus Ethgen
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1045
diff
changeset
|
153 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |