[gegl] ops/generated/math.rb: add references hashes
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] ops/generated/math.rb: add references hashes
- Date: Thu, 16 Mar 2017 18:07:06 +0000 (UTC)
commit 2a2a3bf0d850b0c4da8d3bbab4860aad856e65b4
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Mar 15 22:11:17 2017 +0100
ops/generated/math.rb: add references hashes
operations/generated/Makefile.am | 2 +-
operations/generated/add.c | 1 +
operations/generated/clear.c | 1 +
operations/generated/color-burn.c | 1 +
operations/generated/color-dodge.c | 1 +
operations/generated/darken.c | 1 +
operations/generated/difference.c | 1 +
operations/generated/divide.c | 1 +
operations/generated/dst-atop.c | 1 +
operations/generated/dst-in.c | 1 +
operations/generated/dst-out.c | 1 +
operations/generated/dst-over.c | 1 +
operations/generated/dst.c | 1 +
operations/generated/exclusion.c | 1 +
operations/generated/gamma.c | 1 +
operations/generated/hard-light.c | 1 +
operations/generated/lighten.c | 1 +
operations/generated/math.rb | 11 +++++----
operations/generated/multiply.c | 1 +
operations/generated/overlay.c | 1 +
operations/generated/plus.c | 1 +
operations/generated/screen.c | 1 +
operations/generated/soft-light.c | 1 +
operations/generated/src-atop.c | 1 +
operations/generated/src-in.c | 1 +
operations/generated/src-out.c | 1 +
operations/generated/src.c | 1 +
operations/generated/subtract.c | 1 +
operations/generated/svg-12-blend.rb | 34 ++++++++++++++++++----------
operations/generated/svg-12-porter-duff.rb | 25 +++++++++++---------
operations/generated/svg-multiply.c | 3 +-
operations/generated/xor.c | 1 +
32 files changed, 72 insertions(+), 30 deletions(-)
---
diff --git a/operations/generated/Makefile.am b/operations/generated/Makefile.am
index 96b72ce..d70b8eb 100644
--- a/operations/generated/Makefile.am
+++ b/operations/generated/Makefile.am
@@ -38,9 +38,9 @@ gegl_generated_la_SOURCES = \
src-out.c \
src.c \
subtract.c \
- svg-multiply.c \
xor.c \
module.c
+ #svg-multiply.c
module.c: $(gegl_generated_la_SOURCES)
$(top_srcdir)/tools/gen-loader.sh $^ > module.c
diff --git a/operations/generated/add.c b/operations/generated/add.c
index 5405495..4ae9a0c 100644
--- a/operations/generated/add.c
+++ b/operations/generated/add.c
@@ -125,6 +125,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:add",
"title" , "Add",
"categories" , "compositors:math",
+ "reference-hash" , "7a68e829c08d859a9a5cce3ffc2c91f4",
"description" ,
_("Math operation add, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: result = input + value)"),
NULL);
diff --git a/operations/generated/clear.c b/operations/generated/clear.c
index 6d4020d..312e01c 100644
--- a/operations/generated/clear.c
+++ b/operations/generated/clear.c
@@ -122,6 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:clear",
"compat-name", "gegl:clear",
"title" , "Clear",
+ "reference-hash" , "f1b3ab0f1e84ec5882f23aee0a0c68f6",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation clear (d = 0.0f)"),
diff --git a/operations/generated/color-burn.c b/operations/generated/color-burn.c
index f247453..2f4d0c2 100644
--- a/operations/generated/color-burn.c
+++ b/operations/generated/color-burn.c
@@ -170,6 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:color-burn",
"compat-name" , "gegl:color-burn",
"title" , "Color-burn",
+ "reference-hash" , "f59eedae9e7ff4e7772341badec3f724",
"description" ,
_("SVG blend operation color-burn (<code>if cA * aB + cB * aA <= aA * aB: d = cA * (1 - aB) + cB *
(1 - aA) otherwise: d = (cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1 -
aA))</code>)"),
NULL);
diff --git a/operations/generated/color-dodge.c b/operations/generated/color-dodge.c
index 88d6f5e..fc6f3d5 100644
--- a/operations/generated/color-dodge.c
+++ b/operations/generated/color-dodge.c
@@ -170,6 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:color-dodge",
"compat-name" , "gegl:color-dodge",
"title" , "Color-dodge",
+ "reference-hash" , "ea40c71bc14de7f431480addf43e8b13",
"description" ,
_("SVG blend operation color-dodge (<code>if cA * aB + cB * aA >= aA * aB: d = aA * aB + cA * (1 -
aB) + cB * (1 - aA) otherwise: d = (cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) +
cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/darken.c b/operations/generated/darken.c
index 9ac620e..5dc7521 100644
--- a/operations/generated/darken.c
+++ b/operations/generated/darken.c
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:darken",
"compat-name" , "gegl:darken",
+ "reference-hash" , "85aa17ac4e0fc35470625880d42e17ff",
"description" ,
_("SVG blend operation darken (<code>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 -
aA)</code>)"),
NULL);
diff --git a/operations/generated/difference.c b/operations/generated/difference.c
index 360b236..0230b20 100644
--- a/operations/generated/difference.c
+++ b/operations/generated/difference.c
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:difference",
"compat-name" , "gegl:difference",
+ "reference-hash" , "3737dde4e8302b7cd8c25efcde917676",
"description" ,
_("SVG blend operation difference (<code>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</code>)"),
NULL);
diff --git a/operations/generated/divide.c b/operations/generated/divide.c
index 3281135..dea228f 100644
--- a/operations/generated/divide.c
+++ b/operations/generated/divide.c
@@ -125,6 +125,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:divide",
"title" , "Divide",
"categories" , "compositors:math",
+ "reference-hash" , "c3bd84f8a6b2c03a239f3f832597592c",
"description" ,
_("Math operation divide, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: result =
value==0.0f?0.0f:input/value)"),
NULL);
diff --git a/operations/generated/dst-atop.c b/operations/generated/dst-atop.c
index 03012ef..2fcab7a 100644
--- a/operations/generated/dst-atop.c
+++ b/operations/generated/dst-atop.c
@@ -122,6 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-atop",
"compat-name", "gegl:dst-atop",
"title" , "Dst-atop",
+ "reference-hash" , "daeb2e2e1ae75898af7db31934e240fb",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-atop (d = cB * aA + cA * (1.0f - aB))"),
diff --git a/operations/generated/dst-in.c b/operations/generated/dst-in.c
index 2296b26..57cde32 100644
--- a/operations/generated/dst-in.c
+++ b/operations/generated/dst-in.c
@@ -122,6 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-in",
"compat-name", "gegl:dst-in",
"title" , "Dst-in",
+ "reference-hash" , "a94543affd078e575419cced22a3dcfb",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-in (d = cB * aA)"),
diff --git a/operations/generated/dst-out.c b/operations/generated/dst-out.c
index b546af5..dbd6564 100644
--- a/operations/generated/dst-out.c
+++ b/operations/generated/dst-out.c
@@ -144,6 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-out",
"compat-name", "gegl:dst-out",
"title" , "Dst-out",
+ "reference-hash" , "7a51822400f0a06d339cc3f1925e0699",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-out (d = cB * (1.0f - aA))"),
diff --git a/operations/generated/dst-over.c b/operations/generated/dst-over.c
index efddd86..58a966a 100644
--- a/operations/generated/dst-over.c
+++ b/operations/generated/dst-over.c
@@ -144,6 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-over",
"compat-name", "gegl:dst-over",
"title" , "Dst-over",
+ "reference-hash" , "9bed66932992ce558e517de0bf815f17",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-over (d = cB + cA * (1.0f - aB))"),
diff --git a/operations/generated/dst.c b/operations/generated/dst.c
index 7269d1b..5faa15c 100644
--- a/operations/generated/dst.c
+++ b/operations/generated/dst.c
@@ -144,6 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst",
"compat-name", "gegl:dst",
"title" , "Dst",
+ "reference-hash" , "9bbe341d798da4f7b181c903e6f442fd",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst (d = cB)"),
diff --git a/operations/generated/exclusion.c b/operations/generated/exclusion.c
index d3c31ee..da6518a 100644
--- a/operations/generated/exclusion.c
+++ b/operations/generated/exclusion.c
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:exclusion",
"compat-name" , "gegl:exclusion",
+ "reference-hash" , "f93816fd8955e9d7deb2807b66fbbc55",
"description" ,
_("SVG blend operation exclusion (<code>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB *
(1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/gamma.c b/operations/generated/gamma.c
index 4e7a2ab..11433e6 100644
--- a/operations/generated/gamma.c
+++ b/operations/generated/gamma.c
@@ -125,6 +125,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:gamma",
"title" , "Gamma",
"categories" , "compositors:math",
+ "reference-hash" , "ec7236147d64775ad190fe823ff03f43",
"description" ,
_("Math operation gamma, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: result = powf (input,
value))"),
NULL);
diff --git a/operations/generated/hard-light.c b/operations/generated/hard-light.c
index c8b1a0b..0b9b80e 100644
--- a/operations/generated/hard-light.c
+++ b/operations/generated/hard-light.c
@@ -170,6 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:hard-light",
"compat-name" , "gegl:hard-light",
"title" , "Hard-light",
+ "reference-hash" , "7c64c9793501c9ad28dc96c9dd5f3c1e",
"description" ,
_("SVG blend operation hard-light (<code>if 2 * cA < aA: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 -
aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/lighten.c b/operations/generated/lighten.c
index d1bd450..b9f4a6e 100644
--- a/operations/generated/lighten.c
+++ b/operations/generated/lighten.c
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:lighten",
"compat-name" , "gegl:lighten",
+ "reference-hash" , "16ecf46ab388720e4976f0691c05f62f",
"description" ,
_("SVG blend operation lighten (<code>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 -
aA)</code>)"),
NULL);
diff --git a/operations/generated/math.rb b/operations/generated/math.rb
index d4adf49..87e51c8 100755
--- a/operations/generated/math.rb
+++ b/operations/generated/math.rb
@@ -25,11 +25,11 @@ copyright = '
*/'
a = [
- ['add', 'result = input + value', 0.0],
- ['subtract', 'result = input - value', 0.0],
- ['multiply', 'result = input * value', 1.0],
- ['divide', 'result = value==0.0f?0.0f:input/value', 1.0],
- ['gamma', 'result = powf (input, value)', 1.0],
+ ['add', 'result = input + value', 0.0, '7a68e829c08d859a9a5cce3ffc2c91f4'],
+ ['subtract', 'result = input - value', 0.0, '8e8b7b3712ca34b0b358da70c391882f'],
+ ['multiply', 'result = input * value', 1.0, 'c80bb8504f405bb0a5ce2be4fad6af69'],
+ ['divide', 'result = value==0.0f?0.0f:input/value', 1.0, 'c3bd84f8a6b2c03a239f3f832597592c'],
+ ['gamma', 'result = powf (input, value)', 1.0, 'ec7236147d64775ad190fe823ff03f43'],
# ['threshold', 'result = c>=value?1.0f:0.0f', 0.5],
# ['invert', 'result = 1.0-c']
]
@@ -155,6 +155,7 @@ gegl_op_class_init (GeglOpClass *klass)
\"name\" , \"gegl:#{name}\",
\"title\" , \"#{name.capitalize}\",
\"categories\" , \"compositors:math\",
+ \"reference-hash\" , \"#{item[3]}\",
\"description\" ,
_(\"Math operation #{name}, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: #{formula})\"),
NULL);
diff --git a/operations/generated/multiply.c b/operations/generated/multiply.c
index 8233293..3cdd629 100644
--- a/operations/generated/multiply.c
+++ b/operations/generated/multiply.c
@@ -125,6 +125,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:multiply",
"title" , "Multiply",
"categories" , "compositors:math",
+ "reference-hash" , "c80bb8504f405bb0a5ce2be4fad6af69",
"description" ,
_("Math operation multiply, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: result = input * value)"),
NULL);
diff --git a/operations/generated/overlay.c b/operations/generated/overlay.c
index cc1f966..f9ba269 100644
--- a/operations/generated/overlay.c
+++ b/operations/generated/overlay.c
@@ -170,6 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:overlay",
"compat-name" , "gegl:overlay",
"title" , "Overlay",
+ "reference-hash" , "0148854c1b7d80cca8f015e216ce8fa3",
"description" ,
_("SVG blend operation overlay (<code>if 2 * cB > aB: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 -
aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/plus.c b/operations/generated/plus.c
index 147e005..0bece07 100644
--- a/operations/generated/plus.c
+++ b/operations/generated/plus.c
@@ -168,6 +168,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:plus",
"title" , "Plus",
"compat-name" , "gegl:plus",
+ "reference-hash" , "860a6a3c10939c3327ca16103703537e",
"description" ,
_("SVG blend operation plus (<code>d = cA + cB</code>)"),
NULL);
diff --git a/operations/generated/screen.c b/operations/generated/screen.c
index 224f0f0..624e803 100644
--- a/operations/generated/screen.c
+++ b/operations/generated/screen.c
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:screen",
"compat-name" , "gegl:screen",
+ "reference-hash" , "9642c59dd077663c4c27e4ebe556a382",
"description" ,
_("SVG blend operation screen (<code>d = cA + cB - cA * cB</code>)"),
NULL);
diff --git a/operations/generated/soft-light.c b/operations/generated/soft-light.c
index c8ea508..0bd8f49 100644
--- a/operations/generated/soft-light.c
+++ b/operations/generated/soft-light.c
@@ -172,6 +172,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:soft-light",
"title" , "Soft-light",
+ "reference-hash" , "84242bdbb83f6bfd01711106423b20ab",
"description" ,
_("SVG blend operation soft-light (<code>if 2 * cA < aA: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB)
* (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA); if 8 * cB <= aB: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB)
* (2 * cA - aA) * (aB == 0 ? 3 : 3 - 8 * cB / aB)) + cA * (1 - aB) + cB * (1 - aA); otherwise: d = (aA * cB +
(aB == 0 ? 0 : sqrt (cB / aB) * aB - cB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/src-atop.c b/operations/generated/src-atop.c
index f61d457..3075cac 100644
--- a/operations/generated/src-atop.c
+++ b/operations/generated/src-atop.c
@@ -144,6 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-atop",
"compat-name", "gegl:src-atop",
"title" , "Src-atop",
+ "reference-hash" , "7e48d1097702179c39b513b2be9d6102",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-atop (d = cA * aB + cB * (1.0f - aA))"),
diff --git a/operations/generated/src-in.c b/operations/generated/src-in.c
index b53e69a..a3d093c 100644
--- a/operations/generated/src-in.c
+++ b/operations/generated/src-in.c
@@ -130,6 +130,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-in",
"compat-name", "gegl:src-in",
"title" , "Src-in",
+ "reference-hash" , "cd8b5c32799849fd2ca773a2759ab98e",
"categories", "compositors:porter-duff",
"description" ,
_("Porter Duff compositing operation src-in (formula: cA * aB)"),
diff --git a/operations/generated/src-out.c b/operations/generated/src-out.c
index 6412655..8810ddb 100644
--- a/operations/generated/src-out.c
+++ b/operations/generated/src-out.c
@@ -122,6 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-out",
"compat-name", "gegl:src-out",
"title" , "Src-out",
+ "reference-hash" , "e335ad3a0cea2455e6776244a3f83b1d",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-out (d = cA * (1.0f - aB))"),
diff --git a/operations/generated/src.c b/operations/generated/src.c
index d71817d..0eefc6e 100644
--- a/operations/generated/src.c
+++ b/operations/generated/src.c
@@ -122,6 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src",
"compat-name", "gegl:src",
"title" , "Src",
+ "reference-hash" , "f6a66e7e92224fb5df43d15d8faf4262",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src (d = cA)"),
diff --git a/operations/generated/subtract.c b/operations/generated/subtract.c
index e36e223..1357ee7 100644
--- a/operations/generated/subtract.c
+++ b/operations/generated/subtract.c
@@ -125,6 +125,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:subtract",
"title" , "Subtract",
"categories" , "compositors:math",
+ "reference-hash" , "8e8b7b3712ca34b0b358da70c391882f",
"description" ,
_("Math operation subtract, performs the operation per pixel, using either the constant provided in
'value' or the corresponding pixel from the buffer on aux as operands. (formula: result = input - value)"),
NULL);
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index 41e7c0d..c68bf92 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -34,28 +34,32 @@ copyright = '
*/'
a = [
- ['multiply', 'cA * cB + cA * (1 - aB) + cB * (1 - aA)'],
- ['screen', 'cA + cB - cA * cB'],
- ['darken', 'MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)'],
- ['lighten', 'MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)'],
- ['difference', 'cA + cB - 2 * (MIN (cA * aB, cB * aA))'],
- ['exclusion', '(cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)']
+ # ['multiply', 'cA * cB + cA * (1 - aB) + cB * (1 - aA)', '5910165f5e64ac11b4f57520e82c99e8'],
+ ['screen', 'cA + cB - cA * cB', '9642c59dd077663c4c27e4ebe556a382'],
+ ['darken', 'MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)',
'85aa17ac4e0fc35470625880d42e17ff'],
+ ['lighten', 'MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)',
'16ecf46ab388720e4976f0691c05f62f'],
+ ['difference', 'cA + cB - 2 * (MIN (cA * aB, cB * aA))', '3737dde4e8302b7cd8c25efcde917676'],
+ ['exclusion', '(cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)',
'f93816fd8955e9d7deb2807b66fbbc55']
]
b = [
['overlay', '2 * cB > aB',
'2 * cA * cB + cA * (1 - aB) + cB * (1 - aA)',
- 'aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)'],
+ 'aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)',
+ '0148854c1b7d80cca8f015e216ce8fa3'],
['color_dodge', 'cA * aB + cB * aA >= aA * aB',
'aA * aB + cA * (1 - aB) + cB * (1 - aA)',
- '(cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) + cB * (1 -
aA)'],
+ '(cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) + cB * (1 -
aA)',
+ 'ea40c71bc14de7f431480addf43e8b13'],
['color_burn', 'cA * aB + cB * aA <= aA * aB',
'cA * (1 - aB) + cB * (1 - aA)',
- '(cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1
- aA))'],
+ '(cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1
- aA))',
+ 'f59eedae9e7ff4e7772341badec3f724'],
['hard_light', '2 * cA < aA',
'2 * cA * cB + cA * (1 - aB) + cB * (1 - aA)',
- 'aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)']
+ 'aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)',
+ '7c64c9793501c9ad28dc96c9dd5f3c1e']
]
c = [
@@ -63,12 +67,14 @@ c = [
'cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 -
aA)',
'8 * cB <= aB',
'cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA) * (aB == 0 ? 3 : 3 - 8 * cB
/ aB)) + cA * (1 - aB) + cB * (1 - aA)',
- '(aA * cB + (aB == 0 ? 0 : sqrt (cB / aB) * aB - cB) * (2 * cA - aA)) + cA * (1 -
aB) + cB * (1 - aA)']
+ '(aA * cB + (aB == 0 ? 0 : sqrt (cB / aB) * aB - cB) * (2 * cA - aA)) + cA * (1 -
aB) + cB * (1 - aA)',
+ '84242bdbb83f6bfd01711106423b20ab']
]
d = [
['plus', 'cA + cB',
- 'MIN (aA + aB, 1)']
+ 'MIN (aA + aB, 1)',
+ '860a6a3c10939c3327ca16103703537e']
]
file_head1 = '
@@ -243,6 +249,7 @@ a.each do
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"compat-name\" , \"gegl:#{compat_name}\",
+ \"reference-hash\" , \"#{item[2]}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
@@ -310,6 +317,7 @@ b.each do
\"name\" , \"svg:#{name}\",
\"compat-name\" , \"gegl:#{name}\",
\"title\" , \"#{name.capitalize}\",
+ \"reference-hash\" , \"#{item[4]}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1} otherwise: d =
#{formula2}</code>)\"),
NULL);
@@ -381,6 +389,7 @@ c.each do
gegl_operation_class_set_keys (operation_class,
\"name\" , \"gegl:#{name}\",
\"title\" , \"#{name.capitalize}\",
+ \"reference-hash\" , \"#{item[6]}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1}; if #{cond2}: d = #{formula2};
otherwise: d = #{formula3}</code>)\"),
NULL);
@@ -445,6 +454,7 @@ d.each do
\"name\" , \"svg:#{name}\",
\"title\" , \"#{name.capitalize}\",
\"compat-name\" , \"gegl:#{name}\",
+ \"reference-hash\" , \"#{item[3]}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
diff --git a/operations/generated/svg-12-porter-duff.rb b/operations/generated/svg-12-porter-duff.rb
index d169931..becb2a4 100755
--- a/operations/generated/svg-12-porter-duff.rb
+++ b/operations/generated/svg-12-porter-duff.rb
@@ -36,42 +36,43 @@ copyright = '
a = [
['clear', '0.0f',
'0.0f',
- false],
+ false, 'f1b3ab0f1e84ec5882f23aee0a0c68f6'],
['src', 'cA',
'aA',
- false],
+ false, 'f6a66e7e92224fb5df43d15d8faf4262'],
['dst', 'cB',
'aB',
- true],
+ true, '9bbe341d798da4f7b181c903e6f442fd'],
# ['src_over', 'cA + cB * (1.0f - aA)',
# 'aA + aB - aA * aB',
# false],
['dst_over', 'cB + cA * (1.0f - aB)',
'aA + aB - aA * aB',
- true],
+ true, '9bed66932992ce558e517de0bf815f17'],
['dst_in', 'cB * aA', # <- XXX: typo?
'aA * aB',
- false],
+ false, 'a94543affd078e575419cced22a3dcfb'],
['src_out', 'cA * (1.0f - aB)',
'aA * (1.0f - aB)',
- false],
+ false, 'e335ad3a0cea2455e6776244a3f83b1d'],
['dst_out', 'cB * (1.0f - aA)',
'aB * (1.0f - aA)',
- true],
+ true, '7a51822400f0a06d339cc3f1925e0699'],
['src_atop', 'cA * aB + cB * (1.0f - aA)',
'aB',
- true],
+ true, '7e48d1097702179c39b513b2be9d6102'],
['dst_atop', 'cB * aA + cA * (1.0f - aB)',
'aA',
- false],
+ false, 'daeb2e2e1ae75898af7db31934e240fb'],
['xor', 'cA * (1.0f - aB)+ cB * (1.0f - aA)',
'aA + aB - 2.0f * aA * aB',
- true],
+ true, 'e80ef5797385bf06ac3b7e7747bc5be0'],
]
b = [ ['src_in', 'cA * aB', # the bounding box of this mode is the
- 'aA * aB']] # bounding box of the input only.
+ 'aA * aB',
+ 'cd8b5c32799849fd2ca773a2759ab98e']] # bounding box of the input only.
file_head1 = '
#include "config.h"
@@ -233,6 +234,7 @@ a.each do
\"name\" , \"svg:#{name}\",
\"compat-name\", \"gegl:#{name}\",
\"title\" , \"#{name.capitalize}\",
+ \"reference-hash\" , \"#{item[4]}\",
\"categories\" , \"compositors:porter-duff\",
\"description\",
_(\"Porter Duff operation #{name} (d = #{c_formula})\"),
@@ -316,6 +318,7 @@ static GeglRectangle get_bounding_box (GeglOperation *self)
\"name\" , \"svg:#{name}\",
\"compat-name\", \"gegl:#{name}\",
\"title\" , \"#{name.capitalize}\",
+ \"reference-hash\" , \"#{item[3]}\",
\"categories\", \"compositors:porter-duff\",
\"description\" ,
_(\"Porter Duff compositing operation #{name} (formula: #{c_formula})\"),
diff --git a/operations/generated/svg-multiply.c b/operations/generated/svg-multiply.c
index f8d12a2..1e3429f 100644
--- a/operations/generated/svg-multiply.c
+++ b/operations/generated/svg-multiply.c
@@ -41,7 +41,7 @@ property_boolean (srgb, _("sRGB"), FALSE)
#else
#define GEGL_OP_POINT_COMPOSER
-#define GEGL_OP_NAME svg_multiply
+#define GEGL_OP_NAME multiply
#define GEGL_OP_C_FILE "svg-multiply.c"
#include "gegl-op.h"
@@ -166,6 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:multiply",
"compat-name" , "gegl:svg-multiply",
+ "reference-hash" , "5910165f5e64ac11b4f57520e82c99e8",
"description" ,
_("SVG blend operation multiply (<code>d = cA * cB + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/xor.c b/operations/generated/xor.c
index 797d1ec..9dd622b 100644
--- a/operations/generated/xor.c
+++ b/operations/generated/xor.c
@@ -144,6 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:xor",
"compat-name", "gegl:xor",
"title" , "Xor",
+ "reference-hash" , "e80ef5797385bf06ac3b7e7747bc5be0",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation xor (d = cA * (1.0f - aB)+ cB * (1.0f - aA))"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]