[gegl] ops: use svg: prefix for compositing operations
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] ops: use svg: prefix for compositing operations
- Date: Fri, 13 May 2011 00:36:01 +0000 (UTC)
commit 730bb9107ae0a75c12d2ff9adff24a1f02cf72d6
Author: �yvind Kolås <pippin gimp org>
Date: Fri May 13 01:34:33 2011 +0100
ops: use svg: prefix for compositing operations
use the compat_name field of GeglOperation for supporting the old gegl:
prefixed names for the operations.
operations/common/over.c | 3 ++-
operations/generated/svg-12-blend.rb | 11 +++++++----
operations/generated/svg-12-porter-duff.rb | 6 ++++--
3 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/operations/common/over.c b/operations/common/over.c
index b2a4290..1519ec2 100644
--- a/operations/common/over.c
+++ b/operations/common/over.c
@@ -129,7 +129,8 @@ gegl_chant_class_init (GeglChantClass *klass)
point_composer_class->process = process;
- operation_class->name = "gegl:over";
+ operation_class->compat_name = "gegl:over";
+ operation_class->name = "svg:src-over";
operation_class->description =
_("Porter Duff operation over (d = cA + cB * (1 - aA))");
operation_class->categories = "compositors:porter-duff";
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index c825b7d..fcb337c 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -32,7 +32,7 @@ copyright = '
*/'
a = [
- ['svg_multiply', 'cA * cB + cA * (1 - aB) + cB * (1 - aA)'],
+ ['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)'],
@@ -180,7 +180,8 @@ a.each do
"
file.write file_tail1
file.write "
- operation_class->name = \"gegl:#{name}\";
+ operation_class->compat_name = \"gegl:#{name}\";
+ operation_class->name = \"svg:#{name}\";
operation_class->description =
_(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\");
"
@@ -242,7 +243,8 @@ b.each do
"
file.write file_tail1
file.write "
- operation_class->name = \"gegl:#{name}\";
+ operation_class->compat_name = \"gegl:#{name}\";
+ operation_class->name = \"svg:#{name}\";
operation_class->description =
_(\"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</tt>)\");
"
@@ -367,7 +369,8 @@ d.each do
"
file.write file_tail1
file.write "
- operation_class->name = \"gegl:#{name}\";
+ operation_class->name = \"svg:#{name}\";
+ operation_class->compat_name = \"gegl:#{name}\";
operation_class->description =
_(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\");
"
diff --git a/operations/generated/svg-12-porter-duff.rb b/operations/generated/svg-12-porter-duff.rb
index 23982dd..204d082 100755
--- a/operations/generated/svg-12-porter-duff.rb
+++ b/operations/generated/svg-12-porter-duff.rb
@@ -173,7 +173,8 @@ a.each do
"
file.write file_tail1
file.write "
- operation_class->name = \"gegl:#{name}\";
+ operation_class->compat_name = \"gegl:#{name}\";
+ operation_class->name = \"svg:#{name}\";
operation_class->description =
_(\"Porter Duff operation #{name} (d = #{c_formula})\");
"
@@ -245,7 +246,8 @@ static GeglRectangle get_bounding_box (GeglOperation *self)
"
file.write file_tail1
file.write "
- operation_class->name = \"gegl:#{name}\";
+ operation_class->compat_name = \"gegl:#{name}\";
+ operation_class->name = \"svg:#{name}\";
operation_class->get_bounding_box = get_bounding_box;
operation_class->description =
_(\"Porter Duff operation #{name} (d = #{c_formula})\");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]