annotate src/image-load.h @ 142:b5aa95241859

display sidecar files (jpeg + raw) using gtk_tree_store This is just a prototype to test the functionality, it needs more work. Please test, omments are welcome :)
author nadvornik
date Tue, 02 Oct 2007 21:49:02 +0000
parents 71e1ebee420e
children f6e307c7bad6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
2 * GQview
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
4 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13 #ifndef IMAGE_LOAD_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #define IMAGE_LOAD_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
17 ImageLoader *image_loader_new(FileData *fd);
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
18
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
19 /* we don't want full FileData for thumbnails */
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
20 ImageLoader *image_loader_new_from_path(const gchar *path);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21 void image_loader_free(ImageLoader *il);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23 void image_loader_set_area_ready_func(ImageLoader *il,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24 void (*func_area_ready)(ImageLoader *, guint, guint, guint, guint, gpointer),
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25 gpointer data_area_ready);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26 void image_loader_set_error_func(ImageLoader *il,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 void (*func_error)(ImageLoader *, gpointer),
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 gpointer data_error);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 void image_loader_set_percent_func(ImageLoader *il,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30 void (*func_percent)(ImageLoader *, gdouble, gpointer),
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 gpointer data_percent);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33 /* Speed up loading when you only need at most width x height size image,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34 * only the jpeg GdkPixbuf loader benefits from it - so there is no
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 * guarantee that the image will scale down to the requested size..
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 void image_loader_set_requested_size(ImageLoader *il, gint width, gint height);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 void image_loader_set_buffer_size(ImageLoader *il, guint size);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41 /* this only has effect if used before image_loader_start()
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42 * default is G_PRIORITY_DEFAULT_IDLE
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44 void image_loader_set_priority(ImageLoader *il, gint priority);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
45
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
46 gint image_loader_start(ImageLoader *il, void (*func_done)(ImageLoader *, gpointer), gpointer data_done);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
48
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
49 GdkPixbuf *image_loader_get_pixbuf(ImageLoader *il);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
50 gchar *image_loader_get_format(ImageLoader *il);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
51 gdouble image_loader_get_percent(ImageLoader *il);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
52 gint image_loader_get_is_done(ImageLoader *il);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
54 gint image_load_dimensions(FileData *fd, gint *width, gint *height);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
55
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
56 #endif
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
57