[Gimp-user] Creating a new operation for GEGL



Hello Øyvind Kolås

Thank you very much for your help! The filter is working now.

Is it possible to manually create/manage threads inside a GEGL operation? This
would improve our filter a bit.

Thanks!
Felipe

I didn't originally see your email, since it went to the gimp-user
mailing-list rathern than to gimp-developer or gegl-developer.

For an example of an operation that needs the full input to be
available to be able to do processing, have a look at
gegl:stretch-contrast
https://git.gnome.org/browse/gegl/tree/operations/common/stretch-contrast.c

Worth noting, in particular, is that it sets operation_class->threaded
to FALSE to opt-out of base classs automated thread parallelization,
and that it sets the methods get_required_for_output and
get_cached_region to specify which areas (all) need to be computed for
input buffers, and what extra data to compute when computing one
sub-rectangle, (also all).

/pippin - http://pippin.gimp.org/

-- 
felipeek2 (via www.gimpusers.com/forums)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]