Blame SOURCES/gegl-0.2.0-remove-src-over-op.patch

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