[gegl] testing tool: added crop to standard composition to support point render operations



commit 21e3fddd03ad013b4aed9f34c2f6c69c210a5ded
Author: Ville Sokk <ville sokk gmail com>
Date:   Tue Jul 17 20:50:31 2012 +0300

    testing tool: added crop to standard composition to support point render operations

 bin/gegl-tester.c |    9 +++++++--
 docs/Makefile.am  |    2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/bin/gegl-tester.c b/bin/gegl-tester.c
index 9547718..078f5ad 100644
--- a/bin/gegl-tester.c
+++ b/bin/gegl-tester.c
@@ -218,7 +218,7 @@ process_operations (GType type)
                !(g_type_is_a (operations[i], GEGL_TYPE_OPERATION_SINK) ||
                  g_type_is_a (operations[i], GEGL_TYPE_OPERATION_TEMPORAL)))
         {
-          GeglNode *composition, *input, *aux, *operation, *output;
+          GeglNode *composition, *input, *aux, *operation, *crop, *output;
           gchar    *input_path  = g_build_path (G_DIR_SEPARATOR_S, data_dir,
                                               "standard-input.png", NULL);
           gchar    *aux_path    = g_build_path (G_DIR_SEPARATOR_S, data_dir,
@@ -238,13 +238,18 @@ process_operations (GType type)
                                          "operation", "gegl:load",
                                          "path", aux_path,
                                          NULL);
+              crop = gegl_node_new_child (composition,
+                                          "operation", "gegl:crop",
+                                          "width", 200.0,
+                                          "height", 200.0,
+                                          NULL);
               output = gegl_node_new_child (composition,
                                             "operation", "gegl:png-save",
                                             "compression", 9,
                                             "path", output_path,
                                             NULL);
 
-              gegl_node_link (operation, output);
+              gegl_node_link_many (operation, crop, output, NULL);
 
               if (gegl_node_has_pad (operation, "input"))
                 gegl_node_link (input, operation);
diff --git a/docs/Makefile.am b/docs/Makefile.am
index aaa9f1d..f51f83d 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -83,7 +83,7 @@ CLEANFILES = README $(HTML_FILES) index-static.txt
 DISTCLEANFILES = index-static.txt
 MAINTAINERCLEANFILES = $(BUILT_EXTRA_DIST)
 
-exclusion_pattern = "load|buffer-source|pixbuf|nop|clone|convert-format|color|introspect|layer|image-compare|grid|checkerboard|fractal-explorer|perlin-noise|load|open-buffer|svg-load|exr-load|jpg-load|png-load|magick-load|box-blur|stretch-contrast|remap|matting-global|exp-combine|rectangle|dropshadow|kuwahara|box-percentile|disc-percentile|snn-percentile|line-profile|buffer-cache|warp|radial-gradient|linear-gradient|mandelbrot|hstack"
+exclusion_pattern = "load|buffer-source|pixbuf|nop|clone|convert-format|introspect|layer|image-compare|load|open-buffer|svg-load|exr-load|jpg-load|png-load|magick-load|box-blur|stretch-contrast|remap|matting-global|exp-combine|dropshadow|kuwahara|box-percentile|disc-percentile|snn-percentile|line-profile|buffer-cache|warp|mandelbrot|hstack"
 
 all-local: $(HTML_FILES)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]