Commit e7f5d1bf authored by Michael Henning's avatar Michael Henning

operations: Always set compat-name with gegl_operation_class_set_keys()

parent 4106120d
......@@ -66,11 +66,11 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);
operation_class->compat_name = "gegl:invert";
point_filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:invert-linear",
"compat-name", "gegl:invert",
"categories" , "color",
"description",
_("Inverts the components (except alpha), the result is the "
......
......@@ -296,12 +296,12 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->opencl_support = TRUE;
operation_class->compat_name = "gegl:motion-blur";
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:motion-blur-linear",
"compat-name", "gegl:motion-blur",
"categories", "blur",
"description", _("Linear motion blur"),
NULL);
......
......@@ -132,10 +132,9 @@ gegl_chant_class_init (GeglChantClass *klass)
point_composer_class->process = process;
operation_class->compat_name = "gegl:over";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-over",
"compat-name", "gegl:over",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation over (d = cA + cB * (1 - aA))"),
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:clear";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:clear",
"categories", "compositors:porter-duff",
"name" , "svg:clear",
"compat-name", "gegl:clear",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation clear (d = 0.0f)"),
NULL);
......
......@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:color-burn";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:color-burn",
"compat-name" , "gegl:color-burn",
"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);
......
......@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:color-dodge";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:color-dodge",
"compat-name" , "gegl:color-dodge",
"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);
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:darken";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:darken",
"compat-name" , "gegl:darken",
"description" ,
_("SVG blend operation darken (<code>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:difference";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:difference",
"compat-name" , "gegl:difference",
"description" ,
_("SVG blend operation difference (<code>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</code>)"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:dst-atop";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:dst-atop",
"categories", "compositors:porter-duff",
"name" , "svg:dst-atop",
"compat-name", "gegl:dst-atop",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-atop (d = cB * aA + cA * (1.0f - aB))"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:dst-in";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:dst-in",
"categories", "compositors:porter-duff",
"name" , "svg:dst-in",
"compat-name", "gegl:dst-in",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-in (d = cB * aA)"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:dst-out";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:dst-out",
"categories", "compositors:porter-duff",
"name" , "svg:dst-out",
"compat-name", "gegl:dst-out",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-out (d = cB * (1.0f - aA))"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:dst-over";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:dst-over",
"categories", "compositors:porter-duff",
"name" , "svg:dst-over",
"compat-name", "gegl:dst-over",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-over (d = cB + cA * (1.0f - aB))"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:dst";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:dst",
"categories", "compositors:porter-duff",
"name" , "svg:dst",
"compat-name", "gegl:dst",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst (d = cB)"),
NULL);
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:exclusion";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:exclusion",
"compat-name" , "gegl:exclusion",
"description" ,
_("SVG blend operation exclusion (<code>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:hard-light";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:hard-light",
"compat-name" , "gegl:hard-light",
"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);
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:lighten";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:lighten",
"compat-name" , "gegl:lighten",
"description" ,
_("SVG blend operation lighten (<code>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:overlay";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:overlay",
"compat-name" , "gegl:overlay",
"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);
......
......@@ -155,10 +155,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:plus";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:plus",
"compat-name" , "gegl:plus",
"description" ,
_("SVG blend operation plus (<code>d = cA + cB</code>)"),
NULL);
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:screen";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:screen",
"compat-name" , "gegl:screen",
"description" ,
_("SVG blend operation screen (<code>d = cA + cB - cA * cB</code>)"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:src-atop";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-atop",
"categories", "compositors:porter-duff",
"name" , "svg:src-atop",
"compat-name", "gegl:src-atop",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-atop (d = cA * aB + cB * (1.0f - aA))"),
NULL);
......
......@@ -116,9 +116,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:src-in";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-in",
"compat-name", "gegl:src-in",
"get_bounding_box" , get_bounding_box,
"categories", "compositors:porter-duff",
"description" ,
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:src-out";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-out",
"categories", "compositors:porter-duff",
"name" , "svg:src-out",
"compat-name", "gegl:src-out",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-out (d = cA * (1.0f - aB))"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:src";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src",
"categories", "compositors:porter-duff",
"name" , "svg:src",
"compat-name", "gegl:src",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src (d = cA)"),
NULL);
......
......@@ -232,10 +232,9 @@ a.each do
"
file.write file_tail1
file.write "
operation_class->compat_name = \"gegl:#{compat_name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"compat-name\" , \"gegl:#{compat_name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
......@@ -298,9 +297,9 @@ b.each do
"
file.write file_tail1
file.write "
operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"compat-name\" , \"gegl:#{name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</code>)\"),
NULL);
......@@ -428,10 +427,10 @@ d.each do
"
file.write file_tail1
file.write "
operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"compat-name\" , \"gegl:#{name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
......
......@@ -176,10 +176,10 @@ a.each do
"
file.write file_tail1
file.write "
operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"categories\", \"compositors:porter-duff\",
\"name\" , \"svg:#{name}\",
\"compat-name\", \"gegl:#{name}\",
\"categories\" , \"compositors:porter-duff\",
\"description\",
_(\"Porter Duff operation #{name} (d = #{c_formula})\"),
NULL);
......@@ -252,9 +252,9 @@ static GeglRectangle get_bounding_box (GeglOperation *self)
"
file.write file_tail1
file.write "
operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
\"compat-name\", \"gegl:#{name}\",
\"get_bounding_box\" , get_bounding_box,
\"categories\", \"compositors:porter-duff\",
\"description\" ,
......
......@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:svg-multiply";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:multiply",
"compat-name" , "gegl:svg-multiply",
"description" ,
_("SVG blend operation multiply (<code>d = cA * cB + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
......
......@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->compat_name = "gegl:xor";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:xor",
"categories", "compositors:porter-duff",
"name" , "svg:xor",
"compat-name", "gegl:xor",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation xor (d = cA * (1.0f - aB)+ cB * (1.0f - aA))"),
NULL);
......
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