Gegl.Processor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Size of chunks being rendered (larger chunks need more memory to do the processing). |
||
w/c |
The |
||
r/w |
query progress; 0.0 is not started, 1.0 is done. |
||
r/w |
The rectangle of the region to process. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gegl.Processor(**kwargs)¶
- Bases:
- Abstract:
No
- get_buffer()¶
- Returns:
the
Gegl.Buffer
rendered into.- Return type:
Returns the (cache) buffer the processor is rendering into, another way of getting to the same pixel data is calling gegl_node_blit with flags indicating that we want caching and accept dirty data.
- set_rectangle(rectangle)¶
- Parameters:
rectangle (
Gegl.Rectangle
) – the newGegl.Rectangle
the processor shold work on orNone
to make it work on all data in the buffer.
Change the rectangle a
Gegl.Processor
is working on.
- work()¶
- Returns:
- progress:
a location to store the (estimated) percentage complete.
- Return type:
Do an iteration of work for the processor.
Returns
True
if there is more work to be done.—
Gegl.Processor
*processor =Gegl.Node.new_processor
(node, &roi); double progress;while (
Gegl.Processor.work
(processor, &progress)) g_warning (“%f%% complete”, progress);GObject.Object.unref
(processor);
Property Details¶
- Gegl.Processor.props.chunksize¶
- Name:
chunksize
- Type:
- Default Value:
1048576
- Flags:
Size of chunks being rendered (larger chunks need more memory to do the processing).
- Gegl.Processor.props.node¶
-
The
Gegl.Node
to process (will saturate the provider’s cache if the provided node is a sink node)
- Gegl.Processor.props.progress¶
-
query progress; 0.0 is not started, 1.0 is done.