operations: more reference hash updates

parent b834d7c3
......@@ -182,7 +182,7 @@ gegl_op_class_init (GeglOpClass *klass)
"title", _("Normal compositing"),
"compat-name", "gegl:over",
"categories" , "compositors:porter-duff",
"reference-hash", "4927f3cc0372acb702695c7dc4b90785",
"reference-hash", "b0fd7eded2a894bcdf1a395b01b09e44",
"description",
_("Porter Duff operation over (also known as normal mode, and src-over) (d = cA + cB * (1 - aA))"),
"cl-source" , svg_src_over_cl_source,
......
......@@ -125,9 +125,9 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:add",
"title" , "Add",
"categories" , "compositors:math",
"reference-hash" , "7a68e829c08d859a9a5cce3ffc2c91f4",
"reference-hash" , "3b665a3c7f3d3aac89c67bd7051c276f",
"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)"),
_("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. The result is the evaluation of the expression result = input + value"),
NULL);
}
#endif
......@@ -170,7 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:color-burn",
"compat-name" , "gegl:color-burn",
"title" , "Color-burn",
"reference-hash" , "f59eedae9e7ff4e7772341badec3f724",
"reference-hash" , "e9f58c8e3b67d0ed84d1e1875c414159",
"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);
......
......@@ -170,7 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:color-dodge",
"compat-name" , "gegl:color-dodge",
"title" , "Color-dodge",
"reference-hash" , "9e42179d64227eb71cb6f78b7308c927",
"reference-hash" , "30a75546688fe4a12e7d0721b5c357ce",
"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);
......
......@@ -166,7 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:darken",
"compat-name" , "gegl:darken",
"reference-hash" , "4a0c76cb0c19818779abfdae020c04d4",
"reference-hash" , "78d5adc0553b920894c5ffc109769a88",
"description" ,
_("SVG blend operation darken (<code>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -166,7 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:difference",
"compat-name" , "gegl:difference",
"reference-hash" , "a6fc455c2374f5989229b8950bc00d79",
"reference-hash" , "d49524773e0a1119d9128e3d9799bffc",
"description" ,
_("SVG blend operation difference (<code>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</code>)"),
NULL);
......
......@@ -127,7 +127,7 @@ gegl_op_class_init (GeglOpClass *klass)
"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)"),
_("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. The result is the evaluation of the expression result = value==0.0f?0.0f:input/value"),
NULL);
}
#endif
......@@ -122,7 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-atop",
"compat-name", "gegl:dst-atop",
"title" , "Dst-atop",
"reference-hash" , "67f3a1f0999875280dfb86faab13c948",
"reference-hash" , "daeb2e2e1ae75898af7db31934e240fb",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-atop (d = cB * aA + cA * (1.0f - aB))"),
......
......@@ -122,7 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-in",
"compat-name", "gegl:dst-in",
"title" , "Dst-in",
"reference-hash" , "a94543affd078e575419cced22a3dcfb",
"reference-hash" , "e7e478208bc463c6894049aefd1616b5",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-in (d = cB * aA)"),
......
......@@ -144,7 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-out",
"compat-name", "gegl:dst-out",
"title" , "Dst-out",
"reference-hash" , "7a51822400f0a06d339cc3f1925e0699",
"reference-hash" , "b0ffe0c9b9a5a48d21df751ce576ffa9",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-out (d = cB * (1.0f - aA))"),
......
......@@ -144,7 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst-over",
"compat-name", "gegl:dst-over",
"title" , "Dst-over",
"reference-hash" , "e288fa07b1c81431cd581f09e777198d",
"reference-hash" , "2ae31f32b8b4e788e5f631827cad51b4",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-over (d = cB + cA * (1.0f - aB))"),
......
......@@ -144,7 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:dst",
"compat-name", "gegl:dst",
"title" , "Dst",
"reference-hash" , "9bbe341d798da4f7b181c903e6f442fd",
"reference-hash" , "ffb9e86edb25bc92e8d4e68f59bbb04b",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst (d = cB)"),
......
......@@ -166,7 +166,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name" , "svg:exclusion",
"compat-name" , "gegl:exclusion",
"reference-hash" , "d4428801756f0799b656d276556ed47c",
"reference-hash" , "d26e0029c2f19b8f357069704eca580a",
"description" ,
_("SVG blend operation exclusion (<code>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -125,9 +125,9 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:gamma",
"title" , "Gamma",
"categories" , "compositors:math",
"reference-hash" , "ec7236147d64775ad190fe823ff03f43",
"reference-hash" , "2687ab0395fe31ccc25e2901a43a9c03",
"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))"),
_("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. The result is the evaluation of the expression result = powf (input, value)"),
NULL);
}
#endif
......@@ -170,7 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:hard-light",
"compat-name" , "gegl:hard-light",
"title" , "Hard-light",
"reference-hash" , "7c64c9793501c9ad28dc96c9dd5f3c1e",
"reference-hash" , "77f3994f122ac63313b0c67ebfddbcfe",
"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);
......
......@@ -166,7 +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",
"reference-hash" , "81d848688367b57294d91ea1e49880c7",
"description" ,
_("SVG blend operation lighten (<code>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -25,11 +25,11 @@ copyright = '
*/'
a = [
['add', 'result = input + value', 0.0, '7a68e829c08d859a9a5cce3ffc2c91f4'],
['subtract', 'result = input - value', 0.0, '8e8b7b3712ca34b0b358da70c391882f'],
['add', 'result = input + value', 0.0, '3b665a3c7f3d3aac89c67bd7051c276f'],
['subtract', 'result = input - value', 0.0, '964b3d0b0afea081c157fe0251600ba3'],
['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'],
['gamma', 'result = powf (input, value)', 1.0, '2687ab0395fe31ccc25e2901a43a9c03'],
# ['threshold', 'result = c>=value?1.0f:0.0f', 0.5],
# ['invert', 'result = 1.0-c']
]
......
......@@ -127,7 +127,7 @@ gegl_op_class_init (GeglOpClass *klass)
"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)"),
_("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. The result is the evaluation of the expression result = input * value"),
NULL);
}
#endif
......@@ -170,7 +170,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:overlay",
"compat-name" , "gegl:overlay",
"title" , "Overlay",
"reference-hash" , "0148854c1b7d80cca8f015e216ce8fa3",
"reference-hash" , "5b0a600e815dd027ee127cc7c01c26cb",
"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);
......
......@@ -168,7 +168,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:plus",
"title" , "Plus",
"compat-name" , "gegl:plus",
"reference-hash" , "860a6a3c10939c3327ca16103703537e",
"reference-hash" , "02568f1753f7ded71ed2534b38f26d73",
"description" ,
_("SVG blend operation plus (<code>d = cA + cB</code>)"),
NULL);
......
......@@ -166,7 +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",
"reference-hash" , "dd4057b688a2721774557d5637e59a50",
"description" ,
_("SVG blend operation screen (<code>d = cA + cB - cA * cB</code>)"),
NULL);
......
......@@ -172,7 +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",
"reference-hash" , "21a00cc30644e8caafe2d42d77b089ef",
"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);
......
......@@ -144,7 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-atop",
"compat-name", "gegl:src-atop",
"title" , "Src-atop",
"reference-hash" , "7e48d1097702179c39b513b2be9d6102",
"reference-hash" , "7cb5948ed7e041e6f88b4939d352edf8",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-atop (d = cA * aB + cB * (1.0f - aA))"),
......
......@@ -130,7 +130,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-in",
"compat-name", "gegl:src-in",
"title" , "Src-in",
"reference-hash" , "cd8b5c32799849fd2ca773a2759ab98e",
"reference-hash" , "2663ce60fd1362bb014d22534ab34ac7",
"categories", "compositors:porter-duff",
"description" ,
_("Porter Duff compositing operation src-in (formula: cA * aB)"),
......
......@@ -122,7 +122,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:src-out",
"compat-name", "gegl:src-out",
"title" , "Src-out",
"reference-hash" , "e26976d7bc7986e9cfe4937577261bfd",
"reference-hash" , "64265021e1681dfc4485349cfe4f8a9e",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-out (d = cA * (1.0f - aB))"),
......
......@@ -125,9 +125,9 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "gegl:subtract",
"title" , "Subtract",
"categories" , "compositors:math",
"reference-hash" , "8e8b7b3712ca34b0b358da70c391882f",
"reference-hash" , "964b3d0b0afea081c157fe0251600ba3",
"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)"),
_("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. The result is the evaluation of the expression result = input - value"),
NULL);
}
#endif
......@@ -35,31 +35,31 @@ copyright = '
a = [
# ['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)', '4a0c76cb0c19818779abfdae020c04d4'],
['lighten', 'MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)', '16ecf46ab388720e4976f0691c05f62f'],
['difference', 'cA + cB - 2 * (MIN (cA * aB, cB * aA))', 'a6fc455c2374f5989229b8950bc00d79'],
['exclusion', '(cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)', 'd4428801756f0799b656d276556ed47c']
['screen', 'cA + cB - cA * cB', 'dd4057b688a2721774557d5637e59a50'],
['darken', 'MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)', '78d5adc0553b920894c5ffc109769a88'],
['lighten', 'MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)', '81d848688367b57294d91ea1e49880c7'],
['difference', 'cA + cB - 2 * (MIN (cA * aB, cB * aA))', 'd49524773e0a1119d9128e3d9799bffc'],
['exclusion', '(cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)', 'd26e0029c2f19b8f357069704eca580a']
]
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)',
'0148854c1b7d80cca8f015e216ce8fa3'],
'5b0a600e815dd027ee127cc7c01c26cb'],
['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)',
'9e42179d64227eb71cb6f78b7308c927'],
'30a75546688fe4a12e7d0721b5c357ce'],
['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))',
'f59eedae9e7ff4e7772341badec3f724'],
'e9f58c8e3b67d0ed84d1e1875c414159'],
['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)',
'7c64c9793501c9ad28dc96c9dd5f3c1e']
'77f3994f122ac63313b0c67ebfddbcfe']
]
c = [
......@@ -68,13 +68,13 @@ c = [
'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)',
'84242bdbb83f6bfd01711106423b20ab']
'21a00cc30644e8caafe2d42d77b089ef']
]
d = [
['plus', 'cA + cB',
'MIN (aA + aB, 1)',
'860a6a3c10939c3327ca16103703537e']
'02568f1753f7ded71ed2534b38f26d73']
]
file_head1 = '
......
......@@ -42,37 +42,37 @@ a = [
false, 'f6a66e7e92224fb5df43d15d8faf4262'],
['dst', 'cB',
'aB',
true, '9bbe341d798da4f7b181c903e6f442fd'],
true, 'ffb9e86edb25bc92e8d4e68f59bbb04b'],
# ['src_over', 'cA + cB * (1.0f - aA)',
# 'aA + aB - aA * aB',
# false],
['dst_over', 'cB + cA * (1.0f - aB)',
'aA + aB - aA * aB',
true, 'e288fa07b1c81431cd581f09e777198d'],
true, '2ae31f32b8b4e788e5f631827cad51b4'],
['dst_in', 'cB * aA', # <- XXX: typo?
'aA * aB',
false, 'a94543affd078e575419cced22a3dcfb'],
false, 'e7e478208bc463c6894049aefd1616b5'],
['src_out', 'cA * (1.0f - aB)',
'aA * (1.0f - aB)',
false, 'e26976d7bc7986e9cfe4937577261bfd'],
false, '64265021e1681dfc4485349cfe4f8a9e'],
['dst_out', 'cB * (1.0f - aA)',
'aB * (1.0f - aA)',
true, '7a51822400f0a06d339cc3f1925e0699'],
true, 'b0ffe0c9b9a5a48d21df751ce576ffa9'],
['src_atop', 'cA * aB + cB * (1.0f - aA)',
'aB',
true, '7e48d1097702179c39b513b2be9d6102'],
true, '7cb5948ed7e041e6f88b4939d352edf8'],
['dst_atop', 'cB * aA + cA * (1.0f - aB)',
'aA',
false, '67f3a1f0999875280dfb86faab13c948'],
false, 'daeb2e2e1ae75898af7db31934e240fb'],
['xor', 'cA * (1.0f - aB)+ cB * (1.0f - aA)',
'aA + aB - 2.0f * aA * aB',
true, 'e80ef5797385bf06ac3b7e7747bc5be0'],
true, 'd5c452c163acf983677da4dd5e5dca09'],
]
b = [ ['src_in', 'cA * aB', # the bounding box of this mode is the
'aA * aB',
'cd8b5c32799849fd2ca773a2759ab98e']] # bounding box of the input only.
'2663ce60fd1362bb014d22534ab34ac7']] # bounding box of the input only.
file_head1 = '
#include "config.h"
......
......@@ -144,7 +144,7 @@ gegl_op_class_init (GeglOpClass *klass)
"name" , "svg:xor",
"compat-name", "gegl:xor",
"title" , "Xor",
"reference-hash" , "e80ef5797385bf06ac3b7e7747bc5be0",
"reference-hash" , "d5c452c163acf983677da4dd5e5dca09",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation xor (d = cA * (1.0f - aB)+ cB * (1.0f - aA))"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment