Re: [Gegl-developer] speeding up GEGL operations in GIMP

2008-05-16 Thread Jan Heller
Hi, On 10:06, Thu 15 May 08, Sven Neumann wrote: Changing this in GIMP is not feasible. What needs to be done is to implement shortcuts for the conversions that GIMP actually uses. Eventually he gimp-8bit extension should provide shortcuts for both gamma-corrected and linear 8bit - double

Re: [Gegl-developer] speeding up GEGL operations in GIMP

2008-05-14 Thread Jan Heller
Hi Sven, I can give it a try. If I understand it correctly, gimp-8bit.c only implements u8-float conversions, which seem to be picked up by BABL correctly, so the problem lies in the float-u8 conversions that are computed by ReferenceFish. Is that correct? Regards, Jan On 09:14, Wed 14

Re: [Gegl-developer] speeding up GEGL operations in GIMP

2008-05-14 Thread Jan Heller
Hi, On 11:19, Wed 14 May 08, Richard Kralovic wrote: I just had a short look into the babl code; it looks like there is a float-u8 conversion implemented using the 16bit lookup table in extensions/gegl-fixups.c. In fact, it looks like the same algorithm as described in the pdf paper. I do not

Re: [Gegl-developer] Color temperature correction GeglOperation

2008-04-28 Thread Jan Heller
Hi, On 18:36, Sat 26 Apr 08, Kevin Cozens wrote: Jan Heller wrote: On 11:09, Sat 26 Apr 08, Øyvind Kolås wrote: It would also be nice to replace the planckian locus lookup table with a function that approximates it. I played with MATLAB for a while and came up with rational

Re: [Gegl-developer] Color temperature correction GeglOperation

2008-04-26 Thread Jan Heller
Hi, On 11:09, Sat 26 Apr 08, Øyvind Kolås wrote: On Fri, Apr 25, 2008 at 6:52 PM, Jan Heller [EMAIL PROTECTED] wrote: I wrote it to better familiarize myself with Gegl and I am posting it here in hope it will be useful for others. I think it is a good operation to have, so I have

[Gegl-developer] Color temperature correction GeglOperation

2008-04-25 Thread Jan Heller
a copy of the GNU Lesser General Public * License along with GEGL; if not, see http://www.gnu.org/licenses/. * * Copyright 2008 Jan Heller [EMAIL PROTECTED] */ #ifdef GEGL_CHANT_PROPERTIES gegl_chant_double (original_temp, Original temperature, 1000, 12000, 6500, Estimated temperature of the light

[Gegl-developer] BABL path vs. reference fish

2008-04-12 Thread Jan Heller
Hi, attached is a path that introduces logic to disallow creation of a fish path that is actually slower than appropriate reference fish. Suggested Changelog entry: * babl/babl-fish-path.c (get_conversion_path), (babl_fish_path), (test_create),

[Gegl-developer] BABL fishing patch

2008-04-07 Thread Jan Heller
Hi, attached is a patch that improves logic of go_fishing code in babl-fish.c. The current code searches list of all fishes while looking for suitable preexistent BABL_FISH_PATH instance. The new code only searches relevant part of database's hash table. Further, the current code searches

[Gegl-developer] BABL fish path patch

2008-04-02 Thread Jan Heller
Hi, attached is a patch that ports BablFishPath class to the new list API and the list API is a bit expanded. Further, the algorithm for generating the shortest conversion path is reformulated to be more readable and comprehensible and thoroughly commented. The algorithm for processing the

[Gegl-developer] BABL list API patch

2008-04-01 Thread Jan Heller
in babl-util.c. +/* Implementation of list data structure. * Copyright (C) 2008, Jan Heller - * - * TODO: migrate babl to BablList */ #include babl-internal.h @@ -30,11 +27,19 @@ BablList * babl_list_init (void) { + return babl_list_init_with_size (BABL_LIST_INITIAL_SIZE); +} + +BablList

Re: [Gegl-developer] Hi, need any help?

2008-03-14 Thread Jan Heller
On 17:55, Mon 10 Mar 08, Martin Nordholts wrote: That looks very interesting. Do you think you could provide some benchmarking data of the performance improvements in variuos situations? It would be useful to have Hi, I used babl/tests/babl_fish_path_dhtml as a simple benchmark. Here are

Re: [Gegl-developer] Hi, need any help?

2008-03-14 Thread Jan Heller
On 21:09, Mon 10 Mar 08, Sven Neumann wrote: I would prefer if this functionality could be added in new files babl-list.[ch] and babl-hash-table.[ch]. Also the hash-table functions should be prefixed with babl_hash_table_ instead of just babl_hash_ as we should keep the babl_hash prefix for

[Gegl-developer] Hi, need any help?

2008-03-09 Thread Jan Heller
Hi all, I am new to this list and I would like to help with the GEGL development. I am a programmer and a computer graphics enthusiast. I started to look into the GEGL/BABL code base and have been able to make some improvements in babl database code that speed things up a bit, without loss

Re: [Gegl-developer] Hi, need any help?

2008-03-09 Thread Jan Heller
On 19:07, Sun 09 Mar 08, Martin Nordholts wrote: Hi Jan We're absolutely interested in your contributions! Eagerly awaiting the patch :) Best regards, Martin Nordholts Glad to hear it :) So here is the patch. Essentially, it implements coalesced hashing as BablHashTable structure and