[gegl] c2g, stress: improve reference compositions
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] c2g, stress: improve reference compositions
- Date: Fri, 23 May 2014 11:58:53 +0000 (UTC)
commit b2290090175c52bed598e293610a4fa15fee12c4
Author: Øyvind Kolås <pippin gimp org>
Date: Fri May 23 04:53:01 2014 +0200
c2g, stress: improve reference compositions
operations/common/c2g.c | 16 ++++++++++++++++
operations/common/stress.c | 20 ++++++++++++++++++--
2 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/c2g.c b/operations/common/c2g.c
index 263b8ff..6ba2960 100644
--- a/operations/common/c2g.c
+++ b/operations/common/c2g.c
@@ -339,6 +339,21 @@ process (GeglOperation *operation,
return TRUE;
}
+static const gchar *composition =
+ "<?xml version='1.0' encoding='UTF-8'?>"
+ "<gegl>"
+ "<node operation='gegl:c2g'>"
+ " <params>"
+ " <param name='radius'>200</param>"
+ " <param name='iterations'>90</param>"
+ " </params>"
+ "</node>"
+ "<node operation='gegl:load'>"
+ " <params>"
+ " <param name='path'>standard-input.png</param>"
+ " </params>"
+ "</node>"
+ "</gegl>";
static void
gegl_op_class_init (GeglOpClass *klass)
@@ -364,6 +379,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name", "gegl:c2g",
"categories", "enhance",
+ "reference-composition", composition,
"description",
_("Color to grayscale conversion, uses envelopes formed from spatial "
"color differences to perform color-feature preserving grayscale "
diff --git a/operations/common/stress.c b/operations/common/stress.c
index 113a132..b4b61c1 100644
--- a/operations/common/stress.c
+++ b/operations/common/stress.c
@@ -173,6 +173,21 @@ process (GeglOperation *operation,
return TRUE;
}
+static const gchar *composition =
+ "<?xml version='1.0' encoding='UTF-8'?>"
+ "<gegl>"
+ "<node operation='gegl:stress'>"
+ " <params>"
+ " <param name='radius'>200</param>"
+ " <param name='iterations'>90</param>"
+ " </params>"
+ "</node>"
+ "<node operation='gegl:load'>"
+ " <params>"
+ " <param name='path'>standard-input.png</param>"
+ " </params>"
+ "</node>"
+ "</gegl>";
static void
gegl_op_class_init (GeglOpClass *klass)
@@ -193,8 +208,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_bounding_box = get_bounding_box;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:stress",
- "categories" , "enhance",
+ "name", "gegl:stress",
+ "categories", "enhance",
+ "reference-composition", composition,
"description",
_("Spatio Temporal Retinex-like Envelope with Stochastic Sampling"),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]