d8fab0
From 72168aba34445e4cd99aaed32d8e6a80e89ce729 Mon Sep 17 00:00:00 2001
d8fab0
From: Nils Philippsen <nils@redhat.com>
d8fab0
Date: Mon, 1 Jul 2013 13:53:18 +0200
d8fab0
Subject: [PATCH] patch: remove-src-over-op
d8fab0
d8fab0
Squashed commit of the following:
d8fab0
d8fab0
commit b766094d951bf1515a75408ee85d4e1af432e6bd
d8fab0
Author: Daniel Sabo <DanielSabo@gmail.com>
d8fab0
Date:   Tue Jun 4 20:57:03 2013 -0700
d8fab0
d8fab0
    Remove auto-generated svg:src-over
d8fab0
d8fab0
    It was already shadowed by gegl:over, which declares
d8fab0
    svg:src-over as a compat-name.
d8fab0
d8fab0
    (cherry picked from commit c1caf2401271e8a17fd1937bf84279c250bd8e2a)
d8fab0
d8fab0
    Conflicts:
d8fab0
    	po/POTFILES.in
d8fab0
---
d8fab0
 operations/generated/src-over.c            | 122 -----------------------------
d8fab0
 operations/generated/svg-12-porter-duff.rb |   5 +-
d8fab0
 po/POTFILES.in                             |   3 +-
d8fab0
 3 files changed, 4 insertions(+), 126 deletions(-)
d8fab0
 delete mode 100644 operations/generated/src-over.c
d8fab0
d8fab0
diff --git a/operations/generated/src-over.c b/operations/generated/src-over.c
d8fab0
deleted file mode 100644
d8fab0
index e586087..0000000
d8fab0
--- a/operations/generated/src-over.c
d8fab0
+++ /dev/null
d8fab0
@@ -1,122 +0,0 @@
d8fab0
-
d8fab0
-/* !!!! AUTOGENERATED FILE generated by svg-12-porter-duff.rb !!!!!
d8fab0
- *
d8fab0
- * This file is an image processing operation for GEGL
d8fab0
- *
d8fab0
- * GEGL is free software; you can redistribute it and/or
d8fab0
- * modify it under the terms of the GNU Lesser General Public
d8fab0
- * License as published by the Free Software Foundation; either
d8fab0
- * version 3 of the License, or (at your option) any later version.
d8fab0
- *
d8fab0
- * GEGL is distributed in the hope that it will be useful,
d8fab0
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
d8fab0
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
d8fab0
- * Lesser General Public License for more details.
d8fab0
- *
d8fab0
- * You should have received a copy of the GNU Lesser General Public
d8fab0
- * License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
d8fab0
- *
d8fab0
- *  Copyright 2006, 2007 Øyvind Kolås <pippin@gimp.org>
d8fab0
- *            2007 John Marshall
d8fab0
- *
d8fab0
- * SVG rendering modes; see:
d8fab0
- *     http://www.w3.org/TR/SVG12/rendering.html
d8fab0
- *     http://www.w3.org/TR/2004/WD-SVG12-20041027/rendering.html#comp-op-prop
d8fab0
- *
d8fab0
- *     aA = aux(src) alpha      aB = in(dst) alpha      aD = out alpha
d8fab0
- *     cA = aux(src) colour     cB = in(dst) colour     cD = out colour
d8fab0
- *
d8fab0
- * !!!! AUTOGENERATED FILE !!!!!
d8fab0
- */
d8fab0
-#include "config.h"
d8fab0
-#include <glib/gi18n-lib.h>
d8fab0
-
d8fab0
-
d8fab0
-#ifdef GEGL_CHANT_PROPERTIES
d8fab0
-
d8fab0
-/* no properties */
d8fab0
-
d8fab0
-#else
d8fab0
-
d8fab0
-#define GEGL_CHANT_TYPE_POINT_COMPOSER
d8fab0
-#define GEGL_CHANT_C_FILE        "src-over.c"
d8fab0
-
d8fab0
-#include "gegl-chant.h"
d8fab0
-
d8fab0
-static void prepare (GeglOperation *operation)
d8fab0
-{
d8fab0
-  const Babl *format = babl_format ("RaGaBaA float");
d8fab0
-
d8fab0
-  gegl_operation_set_format (operation, "input", format);
d8fab0
-  gegl_operation_set_format (operation, "aux", format);
d8fab0
-  gegl_operation_set_format (operation, "output", format);
d8fab0
-}
d8fab0
-
d8fab0
-static gboolean
d8fab0
-process (GeglOperation        *op,
d8fab0
-          void                *in_buf,
d8fab0
-          void                *aux_buf,
d8fab0
-          void                *out_buf,
d8fab0
-          glong                n_pixels,
d8fab0
-          const GeglRectangle *roi,
d8fab0
-          gint                 level)
d8fab0
-{
d8fab0
-  gint i;
d8fab0
-  gfloat * GEGL_ALIGNED in = in_buf;
d8fab0
-  gfloat * GEGL_ALIGNED aux = aux_buf;
d8fab0
-  gfloat * GEGL_ALIGNED out = out_buf;
d8fab0
-
d8fab0
-  if (aux==NULL)
d8fab0
-    return TRUE;
d8fab0
-
d8fab0
-  for (i = 0; i < n_pixels; i++)
d8fab0
-    {
d8fab0
-      gint   j;
d8fab0
-      gfloat aA G_GNUC_UNUSED, aB G_GNUC_UNUSED, aD G_GNUC_UNUSED;
d8fab0
-
d8fab0
-      aB = in[3];
d8fab0
-      aA = aux[3];
d8fab0
-      aD = aA + aB - aA * aB;
d8fab0
-
d8fab0
-      for (j = 0; j < 3; j++)
d8fab0
-        {
d8fab0
-          gfloat cA G_GNUC_UNUSED, cB G_GNUC_UNUSED;
d8fab0
-
d8fab0
-          cB = in[j];
d8fab0
-          cA = aux[j];
d8fab0
-          out[j] = cA + cB * (1.0f - aA);
d8fab0
-        }
d8fab0
-      out[3] = aD;
d8fab0
-      in  += 4;
d8fab0
-      aux += 4;
d8fab0
-      out += 4;
d8fab0
-    }
d8fab0
-  return TRUE;
d8fab0
-}
d8fab0
-
d8fab0
-
d8fab0
-static void
d8fab0
-gegl_chant_class_init (GeglChantClass *klass)
d8fab0
-{
d8fab0
-  GeglOperationClass              *operation_class;
d8fab0
-  GeglOperationPointComposerClass *point_composer_class;
d8fab0
-
d8fab0
-  operation_class      = GEGL_OPERATION_CLASS (klass);
d8fab0
-  point_composer_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
d8fab0
-
d8fab0
-  point_composer_class->process = process;
d8fab0
-  operation_class->prepare = prepare;
d8fab0
-
d8fab0
-
d8fab0
-  operation_class->compat_name = "gegl:src-over";
d8fab0
-  gegl_operation_class_set_keys (operation_class,
d8fab0
-    "name"      , "svg:src-over",
d8fab0
-    "categories", "compositors:porter-duff",
d8fab0
-    "description",
d8fab0
-        _("Porter Duff operation src-over (d = cA + cB * (1.0f - aA))"),
d8fab0
-        NULL);
d8fab0
- 
d8fab0
-
d8fab0
-}
d8fab0
-
d8fab0
-#endif
d8fab0
diff --git a/operations/generated/svg-12-porter-duff.rb b/operations/generated/svg-12-porter-duff.rb
d8fab0
index 5516802..dab5d2f 100755
d8fab0
--- a/operations/generated/svg-12-porter-duff.rb
d8fab0
+++ b/operations/generated/svg-12-porter-duff.rb
d8fab0
@@ -1,4 +1,5 @@
d8fab0
 #!/usr/bin/env ruby
d8fab0
+# encoding: utf-8
d8fab0
 
d8fab0
 copyright = '
d8fab0
 /* !!!! AUTOGENERATED FILE generated by svg-12-porter-duff.rb !!!!!
d8fab0
@@ -38,8 +39,8 @@ a = [
d8fab0
                         'aA'],
d8fab0
       ['dst',           'cB',
d8fab0
                         'aB'],
d8fab0
-      ['src_over',      'cA + cB * (1.0f - aA)',
d8fab0
-                        'aA + aB - aA * aB'],
d8fab0
+#      ['src_over',      'cA + cB * (1.0f - aA)',
d8fab0
+#                        'aA + aB - aA * aB'],
d8fab0
       ['dst_over',      'cB + cA * (1.0f - aB)',
d8fab0
                         'aA + aB - aA * aB'],
d8fab0
       ['dst_in',        'cB * aA', # <- XXX: typo?
d8fab0
diff --git a/po/POTFILES.in b/po/POTFILES.in
d8fab0
index e309594..d36cbc2 100644
d8fab0
--- a/po/POTFILES.in
d8fab0
+++ b/po/POTFILES.in
d8fab0
@@ -115,10 +115,9 @@ operations/generated/plus.c
d8fab0
 operations/generated/screen.c
d8fab0
 operations/generated/soft-light.c
d8fab0
 operations/generated/src-atop.c
d8fab0
+operations/generated/src.c
d8fab0
 operations/generated/src-in.c
d8fab0
 operations/generated/src-out.c
d8fab0
-operations/generated/src-over.c
d8fab0
-operations/generated/src.c
d8fab0
 operations/generated/subtract.c
d8fab0
 operations/generated/svg-multiply.c
d8fab0
 operations/generated/xor.c
d8fab0
-- 
d8fab0
1.8.3.1
d8fab0