Re: [Gimp-developer] [maybe OT?] Code excerpts from the GIMP
On Mon, 2005-05-02 at 17:23 -0400, Tom Copeland wrote: Howdy - Here's a bit of GIMP code publicity I thought folks might be interested in. I'm working on a tutorial for IBM's developerWorks site on the GLib collections - GSList, GHashTable, GTree, and all that. As part of the tutorial, I'm picking out excerpts of various collection type usages from a couple of nice open source apps - like the GIMP. This tutorial, complete with Gimp Glib API usage code samples, is up on the IBM developerWorks web site now: http://www-130.ibm.com/developerworks/linux IBM has redone their tutorial format, so there's not as much clicking from slide to slide as there used to be, which is nice. Hope folks find it interesting! Yours, Tom ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] [maybe OT?] Code excerpts from the GIMP
Howdy - Here's a bit of GIMP code publicity I thought folks might be interested in. I'm working on a tutorial for IBM's developerWorks site on the GLib collections - GSList, GHashTable, GTree, and all that. As part of the tutorial, I'm picking out excerpts of various collection type usages from a couple of nice open source apps - like the GIMP. Here's a list of the references to the GIMP that I've currently got in the article: http://infoether.com/~tom/gimp_snippets.html If anyone has any suggestions/corrections to the descriptions of these usages, please email me at [EMAIL PROTECTED] (or here if you think it's on-topic enough). Many thanks, Tom Copeland [EMAIL PROTECTED] ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [maybe OT?] Code excerpts from the GIMP
Tom Copeland ([EMAIL PROTECTED]) wrote: Here's a list of the references to the GIMP that I've currently got in the article: http://infoether.com/~tom/gimp_snippets.html If anyone has any suggestions/corrections to the descriptions of these usages, please email me at [EMAIL PROTECTED] (or here if you think it's on-topic enough). I just want to make you aware that the example in gimp-2.2.4/app/base/boundary.c does not actually get used currently. If you're curious: this algorithm is a modified version of the douglas peucker algorithm for line simplification. A discussion why this code is currently unused can be found here: http://bugzilla.gnome.org/show_bug.cgi?id=50730 Feel free to ask me about this code and the vector-related stuff in your examples. Bye, Simon -- [EMAIL PROTECTED] http://simon.budig.de/ ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [maybe OT?] Code excerpts from the GIMP
Tom Copeland [EMAIL PROTECTED] writes: http://infoether.com/~tom/gimp_snippets.html ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Fwd: Re: [Gimp-developer] [maybe OT?] Code excerpts from the GIMP]
Forwarded Message From: Sven Neumann [EMAIL PROTECTED] gimp-2.2.4/app/core/gimppreviewcache.c uses a GSList as a sort of size-based queue; it holds image previews in a GSList and uses g_slist_insert_sorted to insert the smaller images first. Oddly, another function in the same file trims the cache by iterating over the same GSList and comparing each item to find the smallest one to remove. Might be a possibility for some optimization there. The function preview_cache_remove_smallest() which is used to trim the cache actually uses a different comparison than what is used to keep the list sorted. Whether this is what the author intended, I don't know. Ah, you're right, it uses the area vs an x1 x2 and y1 y2 comparison. I've corrected that comment, thanks much! http://infoether.com/~tom/gimp_snippets.html It might be of interest to your readers to also include GimpList as an implementation of the GimpContainer class. That is interesting. Backed by a GList, and sortable, and does unique names too, huh? Pretty cool. Thanks, Tom ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer