Callbacks

  LookupFunction (value, data)
  NodeFunction (node, *user_data)
  ParallelDistributeAreaFunc (area, *user_data)
  ParallelDistributeFunc (i, n, *user_data)
  ParallelDistributeRangeFunc (offset, size, *user_data)
  SamplerGetFun (self, x, y, scale, output, repeat_mode)
  TileCallback (tile, *user_data)
  TileSourceCommand (gegl_tile_source, command, x, y, z, data)

Details

Gegl.LookupFunction(value, data)
Parameters:
Return type:

float

Gegl.NodeFunction(node, *user_data)
Parameters:
Gegl.ParallelDistributeAreaFunc(area, *user_data)
Parameters:

Specifies the type of function passed to Gegl.parallel_distribute_area().

The function should process the sub-area specified by area.

Gegl.ParallelDistributeFunc(i, n, *user_data)
Parameters:
  • i (int) – the current thread index, in the range [0,`n`)
  • n (int) – the number of threads execution is distributed across
  • user_data (object or None) – user data pointer

Specifies the type of function passed to Gegl.parallel_distribute().

The function should process the i-th part of the data, out of n equal parts. n may be less-than or equal-to the max_n argument passed to Gegl.parallel_distribute().

Gegl.ParallelDistributeRangeFunc(offset, size, *user_data)
Parameters:
  • offset (int) – the current data offset
  • size (int) – the current data size
  • user_data (object or None) – user data pointer

Specifies the type of function passed to Gegl.parallel_distribute_range().

The function should process size elements of the data, starting at offset.

Gegl.SamplerGetFun(self, x, y, scale, output, repeat_mode)
Parameters:
Gegl.TileCallback(tile, *user_data)
Parameters:
Gegl.TileSourceCommand(gegl_tile_source, command, x, y, z, data)
Parameters:
Return type:

object or None