RSS/Atom feed Twitter
Site is read-only, email is disabled

How to cancel the processing gegl

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

How to cancel the processing gegl 史龙 10 Sep 04:14
  How to cancel the processing gegl Daniel Sabo 10 Sep 06:45
史龙
2013-09-10 04:14:44 UTC (about 11 years ago)

How to cancel the processing gegl

Hi All,

Example:

GeglNode *node1 = NULL; GeglNode *node2 = NULL;

node1 = gegl_node_new_from_xml (pXmlData, NULL);

node2 = gegl_node_new_child (node1, "operation", "gegl:convert-format", "format", "B'aG'aR'aA u8", NULL);

node3 = gegl_node_new_child (node1, "operation", "gegl:buffer-sink", "buffer", &buffer, NULL);

gegl_node_link_many (node1, node2, node2, NULL); GeglProcessor *processor = gegl_node_new_processor (node3, NULL); while (gegl_processor_work (processor, &progress)) {
if(callBack != NULL){
callBack(progress * 100); }
}

Excuse me!
How do I cancel "gegl_node_new_processor" and "gegl_processor_work" work

Thanks

Daniel Sabo
2013-09-10 06:45:45 UTC (about 11 years ago)

How to cancel the processing gegl

Destroying the processor object by calling "g_object_unref (processor);" should clean up everything.