On Sunday 03 May 2009 18:38:49 Oscar Miras wrote: > Hi All, > > I have a general question. > > * In clutter library do they use GdkPixBuff for loading images in some > examples ( function *clutter_texture_get_pixbuff*). It's not necessary at > all; since we can do image = *clutter_texture_get_from_file* (...). But I > suspect that GdkPixbuff is used in geeqie for something more. > The question is: do you prefer to remove GdkPixbuff uses from pan-item.c ; > or should I leave it and keep manipulating GdkPixbuff in pan item mode? In > wiki , I also suggest to remove Gdkpixbuff from PanItem structure ( in fact > ; the main idea is to delete the whole PanItem structure and use > clutterActors Instead). >
clutter_texture_get_from_file can't be used, pan view should share the image loading infrastructure with the rest of geeqie. Reasons: - we need to control which decoded images are stored in the memory, the decoded full-size images can be too large to fit in memory at once. - the cache and thumbnails should be shared with the normal mode - we have to apply color profiles after the images are loaded - in the future we may want to add custom image loaders I think that the best solution would be to implement new actor subclass or somehow override the functions for loading and drawing in clutter texture. The libchamplain library probably has something like that implemented - it has to load map tiles on demand and that is a similar task. Geeqie stores all images in GdkPixbuf structure, so I think that pan view should continue with that. Vladimir ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel