[gegl] transform: add reference chains and hashes to affine ops
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] transform: add reference chains and hashes to affine ops
- Date: Thu, 4 May 2017 00:45:54 +0000 (UTC)
commit 9206954eacd2b5e148f0e848dab8b9a6b659b3c6
Author: Øyvind Kolås <pippin gimp org>
Date: Thu May 4 02:45:29 2017 +0200
transform: add reference chains and hashes to affine ops
operations/transform/reflect.c | 1 +
operations/transform/rotate-on-center.c | 2 ++
operations/transform/rotate.c | 2 ++
operations/transform/scale-ratio.c | 2 ++
operations/transform/scale-size-keepaspect.c | 2 ++
operations/transform/shear.c | 2 ++
operations/transform/transform.c | 2 +-
operations/transform/translate.c | 2 ++
8 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/operations/transform/reflect.c b/operations/transform/reflect.c
index 42cfacb..36b7177 100644
--- a/operations/transform/reflect.c
+++ b/operations/transform/reflect.c
@@ -86,6 +86,7 @@ gegl_op_class_init (GeglOpClass *klass)
"description", _("Reflect an image about a line, whose direction is "
"specified by the vector that is defined by the "
"x and y properties. "),
+ "reference-chain", "load path=images/standard-input.png reflet origin-x=100 origin-y=100 x=0.3 y=1.2",
NULL);
}
diff --git a/operations/transform/rotate-on-center.c b/operations/transform/rotate-on-center.c
index ad74942..fa7bbb2 100644
--- a/operations/transform/rotate-on-center.c
+++ b/operations/transform/rotate-on-center.c
@@ -147,6 +147,8 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:rotate-on-center",
"title", _("Rotate on center"),
"categories", "transform",
+ "reference-hash", "d1f7774133373578693604d7eb561a82",
+ "reference-chain", "load path=images/standard-input.png rotate-on-center degrees=30.0
clip-to-input=true",
"description", _("Rotate the buffer around its center, taking care of possible offsets."),
NULL);
}
diff --git a/operations/transform/rotate.c b/operations/transform/rotate.c
index 5ccfe0a..f824483 100644
--- a/operations/transform/rotate.c
+++ b/operations/transform/rotate.c
@@ -70,6 +70,8 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:rotate",
"title", _("Rotate"),
"categories", "transform",
+ "reference-hash", "cee09df3c0b0963ff079d9c0bb8ac9bb",
+ "reference-chain", "load path=images/standard-input.png rotate degrees=30.0 clip-to-input=true
origin-x=100 origin-y=100",
"description", _("Rotate the buffer around the specified origin."),
NULL);
}
diff --git a/operations/transform/scale-ratio.c b/operations/transform/scale-ratio.c
index 5077e26..715e75d 100644
--- a/operations/transform/scale-ratio.c
+++ b/operations/transform/scale-ratio.c
@@ -73,6 +73,8 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:scale-ratio",
"title", _("Scale ratio"),
"categories", "transform",
+ "reference-hash", "526556d3dc92b42f54eaa250af002b0d",
+ "reference-chain", "load path=images/standard-input.png scale-ratio x=2.0 y=2.0 clip-to-input=true
origin-x=100 origin-y=100",
"description", _("Scales the buffer according to a ratio."),
NULL);
}
diff --git a/operations/transform/scale-size-keepaspect.c b/operations/transform/scale-size-keepaspect.c
index 178fd64..5da4105 100644
--- a/operations/transform/scale-size-keepaspect.c
+++ b/operations/transform/scale-size-keepaspect.c
@@ -103,7 +103,9 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:scale-size-keepaspect",
"title", _("Scale size keep aspect"),
"categories", "transform",
+ "reference-hash", "e9586912651e1837414339221413d2b3",
"description", _("Scales the buffer to a size, preserving aspect ratio"),
+ "reference-chain", "load path=images/standard-input.png scale-size-keepaspect x=140 y=-1",
NULL);
}
diff --git a/operations/transform/shear.c b/operations/transform/shear.c
index 11a16b2..23e5418 100644
--- a/operations/transform/shear.c
+++ b/operations/transform/shear.c
@@ -71,6 +71,8 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:shear",
"title", _("Shear"),
"categories", "transform",
+ "reference-hash", "2768783380e8fc27fe8706de1aa2f15e",
+ "reference-chain", "load path=images/standard-input.png shear x=1.12 clip-to-input=true origin-x=100
origin-y=100",
"description", _("Shears the buffer. "),
NULL);
}
diff --git a/operations/transform/transform.c b/operations/transform/transform.c
index d822479..8a6e25b 100644
--- a/operations/transform/transform.c
+++ b/operations/transform/transform.c
@@ -21,7 +21,7 @@
#ifdef GEGL_PROPERTIES
-property_string (transform, _("Y"), "")
+property_string (transform, _("Transform"), "")
description (_("Transformation SVG syntax transformation string"))
#else
diff --git a/operations/transform/translate.c b/operations/transform/translate.c
index 749c5c5..4d79da9 100644
--- a/operations/transform/translate.c
+++ b/operations/transform/translate.c
@@ -71,7 +71,9 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:translate",
"title", _("Translate"),
"categories", "transform",
+ "reference-hash", "fd7287903bdf467448454216712a0b2a",
"description", _("Repositions the buffer (with subpixel precision), if integer coordinates are passed a
fast-path without resampling is used"),
+ "reference-chain", "load path=images/standard-input.png translate x=23.0 y=42.0 clip-to-input=true",
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]