[gimp/soc-2011-seamless-clone2] app: remove gimp_gegl_create_apply_[buffer_]node()
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] app: remove gimp_gegl_create_apply_[buffer_]node()
- Date: Wed, 8 May 2013 15:14:29 +0000 (UTC)
commit 044dd5ea5086b3ff18cbca0727d582e26aa2545c
Author: Michael Natterer <mitch gimp org>
Date: Wed Apr 17 16:21:15 2013 +0200
app: remove gimp_gegl_create_apply_[buffer_]node()
app/gegl/gimp-gegl-nodes.c | 179 --------------------------------------------
app/gegl/gimp-gegl-nodes.h | 27 -------
2 files changed, 0 insertions(+), 206 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-nodes.c b/app/gegl/gimp-gegl-nodes.c
index a2801eb..05494b3 100644
--- a/app/gegl/gimp-gegl-nodes.c
+++ b/app/gegl/gimp-gegl-nodes.c
@@ -105,185 +105,6 @@ gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
}
GeglNode *
-gimp_gegl_create_apply_buffer_node (GeglBuffer *buffer,
- gint buffer_offset_x,
- gint buffer_offset_y,
- gint src_offset_x,
- gint src_offset_y,
- gint dest_offset_x,
- gint dest_offset_y,
- GeglBuffer *mask,
- gint mask_offset_x,
- gint mask_offset_y,
- gdouble opacity,
- GimpLayerModeEffects mode,
- GimpComponentMask affect)
-
-{
- GeglNode *node;
- GeglNode *buffer_source;
-
- g_return_val_if_fail (GEGL_IS_BUFFER (buffer), NULL);
- g_return_val_if_fail (mask == NULL || GEGL_IS_BUFFER (mask), NULL);
-
- buffer_source = gegl_node_new_child (NULL,
- "operation", "gegl:buffer-source",
- "buffer", buffer,
- NULL);
-
- node = gimp_gegl_create_apply_node (buffer_source,
- buffer_offset_x,
- buffer_offset_y,
- src_offset_x,
- src_offset_y,
- dest_offset_x,
- dest_offset_y,
- mask,
- mask_offset_x,
- mask_offset_y,
- opacity,
- mode,
- affect);
-
- gegl_node_add_child (node, buffer_source);
- g_object_unref (buffer_source);
-
- return node;
-}
-
-GeglNode *
-gimp_gegl_create_apply_node (GeglNode *apply,
- gint apply_offset_x,
- gint apply_offset_y,
- gint src_offset_x,
- gint src_offset_y,
- gint dest_offset_x,
- gint dest_offset_y,
- GeglBuffer *mask,
- gint mask_offset_x,
- gint mask_offset_y,
- gdouble opacity,
- GimpLayerModeEffects mode,
- GimpComponentMask affect)
-{
- GeglNode *node;
- GeglNode *input;
- GeglNode *output;
- GeglNode *mask_source;
- GeglNode *mode_node;
-
- g_return_val_if_fail (GEGL_IS_NODE (apply), NULL);
- g_return_val_if_fail (mask == NULL || GEGL_IS_BUFFER (mask), NULL);
-
- node = gegl_node_new ();
-
- input = gegl_node_get_input_proxy (node, "input");
-
- if (src_offset_x != 0 || src_offset_y != 0)
- {
- GeglNode *translate =
- gegl_node_new_child (node,
- "operation", "gegl:translate",
- "x", (gdouble) src_offset_x,
- "y", (gdouble) src_offset_y,
- NULL);
-
- gegl_node_connect_to (input, "output",
- translate, "input");
-
- input = translate;
- }
-
- output = gegl_node_get_output_proxy (node, "output");
-
- if (dest_offset_x != 0 || dest_offset_y != 0)
- {
- GeglNode *translate =
- gegl_node_new_child (node,
- "operation", "gegl:translate",
- "x", (gdouble) dest_offset_x,
- "y", (gdouble) dest_offset_y,
- NULL);
-
- gegl_node_connect_to (translate, "output",
- output, "input");
-
- output = translate;
- }
-
- if (affect == 0)
- {
- /* nothing to do, pass through */
-
- gegl_node_connect_to (input, "output",
- output, "input");
-
- return node;
- }
-
- if (apply_offset_x != 0 || apply_offset_y != 0)
- {
- GeglNode *translate =
- gegl_node_new_child (node,
- "operation", "gegl:translate",
- "x", (gdouble) apply_offset_x,
- "y", (gdouble) apply_offset_y,
- NULL);
-
- gegl_node_connect_to (apply, "output",
- translate, "input");
-
- apply = translate;
- }
-
- if (mask)
- mask_source = gimp_gegl_add_buffer_source (node, mask,
- mask_offset_x,
- mask_offset_y);
- else
- mask_source = NULL;
-
- mode_node = gegl_node_new_child (node,
- "operation", "gimp:normal-mode",
- NULL);
- gimp_gegl_mode_node_set (mode_node, mode, opacity, FALSE);
-
- gegl_node_connect_to (apply, "output",
- mode_node, "aux");
-
- if (mask_source)
- gegl_node_connect_to (mask_source, "output",
- mode_node, "aux2");
-
- gegl_node_connect_to (input, "output",
- mode_node, "input");
-
- if (affect == GIMP_COMPONENT_ALL)
- {
- gegl_node_connect_to (mode_node, "output",
- output, "input");
- }
- else
- {
- GeglNode *affect_node;
-
- affect_node = gegl_node_new_child (node,
- "operation", "gimp:mask-components",
- "mask", affect,
- NULL);
-
- gegl_node_connect_to (input, "output",
- affect_node, "input");
- gegl_node_connect_to (mode_node, "output",
- affect_node, "aux");
- gegl_node_connect_to (affect_node, "output",
- output, "input");
- }
-
- return node;
-}
-
-GeglNode *
gimp_gegl_add_buffer_source (GeglNode *parent,
GeglBuffer *buffer,
gint offset_x,
diff --git a/app/gegl/gimp-gegl-nodes.h b/app/gegl/gimp-gegl-nodes.h
index 314b215..a3bf092 100644
--- a/app/gegl/gimp-gegl-nodes.h
+++ b/app/gegl/gimp-gegl-nodes.h
@@ -27,33 +27,6 @@ GeglNode * gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
gint mask_offset_x,
gint mask_offset_y,
gdouble opacity);
-GeglNode * gimp_gegl_create_apply_buffer_node (GeglBuffer *buffer,
- gint buffer_offset_x,
- gint buffer_offset_y,
- gint src_offset_x,
- gint src_offset_y,
- gint dest_offset_x,
- gint dest_offset_y,
- GeglBuffer *mask,
- gint mask_offset_x,
- gint mask_offset_y,
- gdouble opacity,
- GimpLayerModeEffects mode,
- GimpComponentMask affect);
-GeglNode * gimp_gegl_create_apply_node (GeglNode *apply,
- gint apply_offset_x,
- gint apply_offset_y,
- gint src_offset_x,
- gint src_offset_y,
- gint dest_offset_x,
- gint dest_offset_y,
- GeglBuffer *mask,
- gint mask_offset_x,
- gint mask_offset_y,
- gdouble opacity,
- GimpLayerModeEffects mode,
- GimpComponentMask affect);
-
GeglNode * gimp_gegl_add_buffer_source (GeglNode *parent,
GeglBuffer *buffer,
gint offset_x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]