[gegl/meta-json: 4/4] meta-json: Add initial test subgraph
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/meta-json: 4/4] meta-json: Add initial test subgraph
- Date: Sun, 28 Dec 2014 00:46:51 +0000 (UTC)
commit 076b75439310cd2f38e6d3648a16cfa9ee221a7a
Author: Jon Nordby <jononor gmail com>
Date: Sun Dec 28 01:44:25 2014 +0100
meta-json: Add initial test subgraph
operations/json/dropshadow2.fbp | 16 +++++
operations/json/dropshadow2.json | 131 ++++++++++++++++++++++++++++++++++++++
2 files changed, 147 insertions(+), 0 deletions(-)
---
diff --git a/operations/json/dropshadow2.fbp b/operations/json/dropshadow2.fbp
new file mode 100644
index 0000000..0bbab62
--- /dev/null
+++ b/operations/json/dropshadow2.fbp
@@ -0,0 +1,16 @@
+INPORT=translate.X:X
+INPORT=translate.Y:X
+INPORT=color.VALUE:COLOR
+INPORT=blur.STD_DEV_X:RADIUS
+INPORT=input.OUTPUT:INPUT
+OUTPORT=over.OUTPUT:OUTPUT
+
+# FIXME: multiple export mapping? INPORT=blur.STD-DEV-Y:RADIUS
+# FIXME: allow - in property names, or map _ to - ?
+# TODO: allow \ or \n between connections
+
+input(gegl/noop) OUTPUT -> INPUT darken(gegl/src:in) OUTPUT -> INPUT blur(gegl/gaussian:blur) OUTPUT ->
INPUT opacity(gegl/opacity) OUTPUT -> INPUT translate(gegl/translate) OUTPUT -> INPUT over(gegl/over)
+input OUTPUT -> AUX over
+color OUTPUT -> AUX darken
+
+'rgb(0.0,0.0,0.0)' -> VALUE color
diff --git a/operations/json/dropshadow2.json b/operations/json/dropshadow2.json
new file mode 100644
index 0000000..ad68004
--- /dev/null
+++ b/operations/json/dropshadow2.json
@@ -0,0 +1,131 @@
+{
+ "processes": {
+ "input": {
+ "component": "gegl/noop"
+ },
+ "darken": {
+ "component": "gegl/src",
+ "metadata": {
+ "routes": "in"
+ }
+ },
+ "blur": {
+ "component": "gegl/gaussian",
+ "metadata": {
+ "routes": "blur"
+ }
+ },
+ "opacity": {
+ "component": "gegl/opacity"
+ },
+ "translate": {
+ "component": "gegl/translate"
+ },
+ "over": {
+ "component": "gegl/over"
+ }
+ },
+ "connections": [
+ {
+ "src": {
+ "process": "input",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "darken",
+ "port": "input"
+ }
+ },
+ {
+ "src": {
+ "process": "darken",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "blur",
+ "port": "input"
+ }
+ },
+ {
+ "src": {
+ "process": "blur",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "opacity",
+ "port": "input"
+ }
+ },
+ {
+ "src": {
+ "process": "opacity",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "translate",
+ "port": "input"
+ }
+ },
+ {
+ "src": {
+ "process": "translate",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "over",
+ "port": "input"
+ }
+ },
+ {
+ "src": {
+ "process": "input",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "over",
+ "port": "aux"
+ }
+ },
+ {
+ "src": {
+ "process": "color",
+ "port": "output"
+ },
+ "tgt": {
+ "process": "darken",
+ "port": "aux"
+ }
+ },
+ {
+ "data": "rgb(0.0,0.0,0.0)",
+ "tgt": {
+ "process": "color",
+ "port": "value"
+ }
+ }
+ ],
+ "inports": {
+ "x": {
+ "process": "translate",
+ "port": "y"
+ },
+ "color": {
+ "process": "color",
+ "port": "value"
+ },
+ "radius": {
+ "process": "blur",
+ "port": "std_dev_x"
+ },
+ "input": {
+ "process": "input",
+ "port": "output"
+ }
+ },
+ "outports": {
+ "output": {
+ "process": "over",
+ "port": "output"
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]