Re: [Gimp-developer] A simple (?) question...

2008-04-11 Thread Torsten Neuer
Hi Sven, On Thu, 2008-04-10 at 18:04 +0200, Torsten Neuer wrote: Regarding the MD5 implementation in limbgimpmath, it would have been nice if I could use it, but I cannot as I have to produce an MD5 on the whole drawable, which means that I whould have to run gimp_md5_update() on every

Re: [Gimp-developer] A simple (?) question...

2008-04-11 Thread Sven Neumann
Hi, On Fri, 2008-04-11 at 11:54 +0200, Torsten Neuer wrote: It seems pretty fast and also seems to work (at least I get the same value for the identical images and different values for different images). I thought that it was low-level enough not to use pixel_rgn related functions - or

Re: [Gimp-developer] A simple (?) question...

2008-04-10 Thread David Gowers
Hi Torsten, On Thu, Apr 10, 2008 at 6:50 PM, Torsten Neuer [EMAIL PROTECTED] wrote: Hi Sven, On Wed, 2008-04-09 at 09:27 +0930, David Gowers wrote: What you are talking about is a hash function. There is a string hasher in GLib that should do what you want. The string hash

Re: [Gimp-developer] A simple (?) question...

2008-04-10 Thread Torsten Neuer
Am Mittwoch, 9. April 2008 22:05:37 schrieb Sven Neumann: Hi, On Wed, 2008-04-09 at 09:27 +0930, David Gowers wrote: What you are talking about is a hash function. There is a string hasher in GLib that should do what you want. The string hash function in GLib is not suitable for this job.

Re: [Gimp-developer] A simple (?) question...

2008-04-10 Thread Sven Neumann
Hi, On Thu, 2008-04-10 at 18:04 +0200, Torsten Neuer wrote: Regarding the MD5 implementation in limbgimpmath, it would have been nice if I could use it, but I cannot as I have to produce an MD5 on the whole drawable, which means that I whould have to run gimp_md5_update() on every tile.

Re: [Gimp-developer] A simple (?) question...

2008-04-09 Thread Torsten Neuer
Hi David, Since I haven't been able to find a function within the libraries that I could use as a starting point (and of course I do not want to re-invent the wheel), my question is, if there is such a function that would provide an identical value for any identical image - or would I

Re: [Gimp-developer] A simple (?) question...

2008-04-09 Thread Aurimas Juška
Hi Torsten, Some gimp plug-ins provide random seed value to user. This way user is able to play with the random value and to reproduce the same effect later, i.e. for tutorials. I am aware of that. The point is, that the function is a random but - according to it's documentation should behave

Re: [Gimp-developer] A simple (?) question...

2008-04-09 Thread Sven Neumann
Hi, On Wed, 2008-04-09 at 09:27 +0930, David Gowers wrote: What you are talking about is a hash function. There is a string hasher in GLib that should do what you want. The string hash function in GLib is not suitable for this job. Torsten doesn't want to hash a string, he is asking for a

[Gimp-developer] A simple (?) question...

2008-04-08 Thread Torsten Neuer
Hello everybody, I am currently updating an older plugin (one that is not in the distribution nor in the registry anymore) in order to bring it back to life (and, well, maybe learn something about Gimp programming as well). The plugin although it worked quite well, seemed never to have been

Re: [Gimp-developer] A simple (?) question...

2008-04-08 Thread David Gowers
Hi Torsten, On Wed, Apr 9, 2008 at 4:35 AM, Torsten Neuer [EMAIL PROTECTED] wrote: Hello everybody, I am currently updating an older plugin (one that is not in the distribution nor in the registry anymore) in order to bring it back to life (and, well, maybe learn something about Gimp