Commit 49b2b76d authored by Øyvind Kolås's avatar Øyvind Kolås

make use of gegl_node_link and gegl_node_link_many in meta operations

parent ab9d6865
2006-10-06 Øyvind Kolås <pippin@gimp.org>
Make use of gegl_node_link and gegl_node_link_many in meta operations.
* operations/meta/dropshadow.c: (associate):
* operations/meta/layer.c: (associate):
* operations/meta/unsharp-mask.c: (associate):
* operations/render/text.c: (process):
2006-10-06 Øyvind Kolås <pippin@gimp.org>
* gegl/buffer/gegl-buffer.c: (gegl_buffer_get): removed unused
......
......@@ -95,14 +95,8 @@ static void associate (GeglOperation *operation)
priv->blur = gegl_graph_new_node (gegl, "operation", "gaussian-blur", NULL);
priv->darken = gegl_graph_new_node (gegl, "operation", "brightness-contrast", "brightness", -0.9, NULL);
gegl_node_connect (priv->darken, "input", priv->input, "output");
gegl_node_connect (priv->blur, "input", priv->darken, "output");
gegl_node_connect (priv->opacity, "input", priv->blur, "output");
gegl_node_connect (priv->translate, "input", priv->opacity, "output");
gegl_node_connect (priv->over, "input", priv->translate, "output");
gegl_node_link_many (priv->input, priv->darken, priv->blur, priv->opacity, priv->translate, priv->over, priv->output, NULL);
gegl_node_connect (priv->over, "aux", priv->input, "output");
gegl_node_connect (priv->output, "input", priv->over, "output");
}
}
......
......@@ -118,11 +118,9 @@ static void associate (GeglOperation *operation)
"operation", "buffer",
NULL);
gegl_node_connect (priv->opacity, "input", priv->load, "output");
gegl_node_connect (priv->shift, "input", priv->opacity, "output");
gegl_node_link_many (priv->load, priv->opacity, priv->shift, NULL);
gegl_node_link_many (priv->input, priv->composite_op, priv->output, NULL);
gegl_node_connect (priv->composite_op, "aux", priv->shift, "output");
gegl_node_connect (priv->composite_op, "input", priv->input, "output");
gegl_node_connect (priv->output, "input", priv->composite_op, "output");
}
static void
......
......@@ -80,17 +80,14 @@ static void associate (GeglOperation *operation)
"operation", "gaussian-blur",
NULL);
gegl_node_connect (priv->subtract, "input", priv->input, "output");
gegl_node_connect (priv->blur, "input", priv->input, "output");
gegl_node_link_many (priv->input, priv->subtract, priv->multiply, NULL);
gegl_node_link (priv->input, priv->blur);
gegl_node_link_many (priv->input, priv->add, priv->output, NULL);
gegl_node_connect (priv->subtract, "aux", priv->blur, "output");
gegl_node_connect (priv->multiply, "input", priv->subtract, "output");
gegl_node_connect (priv->add, "input", priv->input, "output");
gegl_node_connect (priv->subtract, "aux", priv->blur, "output");
gegl_node_connect (priv->add, "aux", priv->multiply, "output");
gegl_node_connect (priv->output, "input", priv->add, "output");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment