[gegl] buffer: Add an abyss argument to gegl_buffer_copy, this changes the API but doesn't add the implemen



commit af5361ca8d5083297803e4930398eb3c646eeaaf
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun May 24 20:22:46 2015 +0200

    buffer: Add an abyss argument to gegl_buffer_copy, this changes the API but
    doesn't add the implementation defaulting to GEGL_ABYSS_NONE all the time (and
    passing it, in almost all places, some could proably use CLAMP)

 gegl/buffer/gegl-buffer-access.c             |    3 +-
 gegl/buffer/gegl-buffer.h                    |    3 +
 gegl/gegl-apply.c                            |    2 +-
 gegl/graph/gegl-node.c                       |    4 +-
 gegl/operation/gegl-operation-temporal.c     |    2 +-
 opencl/colors-8bit-lut.cl.h                  |    6 +-
 opencl/colors.cl.h                           |    6 +-
 opencl/texturize-canvas.cl.h                 |   62 +++++++++++++-------------
 operations/common/bilateral-filter.c         |    3 +-
 operations/common/buffer-sink.c              |    2 +-
 operations/common/color-enhance.c            |    3 +-
 operations/common/copy-buffer.c              |    9 +++-
 operations/common/map-absolute.c             |    3 +-
 operations/common/map-relative.c             |    3 +-
 operations/common/shift.c                    |    3 +-
 operations/common/value-propagate.c          |    3 +-
 operations/common/warp.c                     |    3 +-
 operations/common/write-buffer.c             |    6 ++-
 operations/core/cast-format.c                |    2 +-
 operations/core/convert-format.c             |    3 +-
 operations/external/npd.c                    |    3 +-
 operations/external/path.c                   |    3 +-
 operations/external/vector-fill.c            |    2 +-
 operations/external/vector-stroke.c          |    3 +-
 tests/buffer/tests/buffer_copy.c             |    2 +-
 tests/buffer/tests/buffer_copy_lower_left.c  |    2 +-
 tests/buffer/tests/buffer_copy_lower_right.c |    2 +-
 tests/buffer/tests/buffer_copy_self.c        |    2 +-
 tests/buffer/tests/buffer_copy_upper_left.c  |    2 +-
 tests/buffer/tests/buffer_copy_upper_right.c |    2 +-
 tests/buffer/tests/buffer_linear_copy.c      |    2 +-
 tests/simple/test-buffer-cast.c              |    3 +-
 tests/simple/test-buffer-tile-voiding.c      |    3 +-
 33 files changed, 92 insertions(+), 70 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 3106987..af62c89 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1593,6 +1593,7 @@ gegl_buffer_copy2 (GeglBuffer          *src,
 void
 gegl_buffer_copy (GeglBuffer          *src,
                   const GeglRectangle *src_rect,
+                  GeglAbyssPolicy      repeat_mode,
                   GeglBuffer          *dst,
                   const GeglRectangle *dst_rect)
 {
@@ -2036,7 +2037,7 @@ gegl_buffer_dup (GeglBuffer *buffer)
   g_return_val_if_fail (GEGL_IS_BUFFER (buffer), NULL);
 
   new_buffer = gegl_buffer_new (gegl_buffer_get_extent (buffer), buffer->soft_format);
-  gegl_buffer_copy (buffer, gegl_buffer_get_extent (buffer),
+  gegl_buffer_copy (buffer, gegl_buffer_get_extent (buffer), GEGL_ABYSS_NONE,
                     new_buffer, gegl_buffer_get_extent (buffer));
   return new_buffer;
 }
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index 3a78ead..da4ad2a 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -356,6 +356,7 @@ void            gegl_buffer_clear             (GeglBuffer          *buffer,
  * gegl_buffer_copy:
  * @src: (transfer none): source buffer.
  * @src_rect: source rectangle (or NULL to copy entire source buffer)
+ * @repeat_mode: the abyss policy to be using if src_rect is outside src's extent.
  * @dst: (transfer none): destination buffer.
  * @dst_rect: position of upper left destination pixel, or NULL for top
  * left coordinates of the buffer extents.
@@ -370,10 +371,12 @@ void            gegl_buffer_clear             (GeglBuffer          *buffer,
  */
 void            gegl_buffer_copy              (GeglBuffer          *src,
                                                const GeglRectangle *src_rect,
+                                               GeglAbyssPolicy      repeat_mode,
                                                GeglBuffer          *dst,
                                                const GeglRectangle *dst_rect);
 
 
+
 /**
  * gegl_buffer_dup:
  * @buffer: (transfer none): the GeglBuffer to duplicate.
diff --git a/gegl/gegl-apply.c b/gegl/gegl-apply.c
index e4da593..77269aa 100644
--- a/gegl/gegl-apply.c
+++ b/gegl/gegl-apply.c
@@ -173,7 +173,7 @@ gegl_apply_op_valist (GeglBuffer  *buffer,
 
   if (tempbuf)
     {
-      gegl_buffer_copy (tempbuf, NULL, buffer, NULL);
+      gegl_buffer_copy (tempbuf, NULL, GEGL_ABYSS_NONE, buffer, NULL);
       g_object_unref (tempbuf);
     }
   g_object_unref (buffer);
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index f6d409c..a8acca6 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -967,7 +967,7 @@ static void
 gegl_node_blit_buffer2 (GeglNode            *self,
                         GeglBuffer          *buffer,
                         const GeglRectangle *roi,
-                        gint                 level)
+                        gint                 level) // XXX: add abyss policy
 {
   GeglEvalManager *eval_manager;
   GeglBuffer      *result;
@@ -987,7 +987,7 @@ gegl_node_blit_buffer2 (GeglNode            *self,
   if (result)
     {
       if (buffer)
-        gegl_buffer_copy (result, &request, buffer, NULL);
+        gegl_buffer_copy (result, &request, GEGL_ABYSS_NONE, buffer, NULL);
       g_object_unref (result);
     }
 }
diff --git a/gegl/operation/gegl-operation-temporal.c b/gegl/operation/gegl-operation-temporal.c
index 8c63497..8b278f4 100644
--- a/gegl/operation/gegl-operation-temporal.c
+++ b/gegl/operation/gegl-operation-temporal.c
@@ -99,7 +99,7 @@ static gboolean gegl_operation_temporal_process (GeglOperation       *self,
    GeglRectangle write_rect = *result;
    write_rect.y = priv->next_to_write * priv->height;
 
-   gegl_buffer_copy (input, result, priv->frame_store, &write_rect);
+   gegl_buffer_copy (input, result, GEGL_ABYSS_NONE, priv->frame_store, &write_rect);
    priv->count++;
    priv->next_to_write++;
    if (priv->next_to_write >= priv->history_length)
diff --git a/opencl/colors-8bit-lut.cl.h b/opencl/colors-8bit-lut.cl.h
index 368c202..a63ba7f 100644
--- a/opencl/colors-8bit-lut.cl.h
+++ b/opencl/colors-8bit-lut.cl.h
@@ -278,9 +278,9 @@ static const char* colors_8bit_lut_cl_source =
 "};                                                                            \n"
 "                                                                              \n"
 "/* babl reference file: babl/base/rgb-constants.h */                          \n"
-"#define RGB_LUMINANCE_RED    (0.22248840f)                                    \n"
-"#define RGB_LUMINANCE_GREEN  (0.71690369f)                                    \n"
-"#define RGB_LUMINANCE_BLUE   (0.06060791f)                                    \n"
+"#define RGB_LUMINANCE_RED    (0.222491f)                                      \n"
+"#define RGB_LUMINANCE_GREEN  (0.716888f)                                      \n"
+"#define RGB_LUMINANCE_BLUE   (0.060621f)                                      \n"
 "                                                                              \n"
 "/* R'G'B' u8 -> RGBA float */                                                 \n"
 "__kernel void rgb_gamma_u8_to_rgbaf (__global const uchar  * in,              \n"
diff --git a/opencl/colors.cl.h b/opencl/colors.cl.h
index 8e976e8..9431fc3 100644
--- a/opencl/colors.cl.h
+++ b/opencl/colors.cl.h
@@ -419,9 +419,9 @@ static const char* colors_cl_source =
 "/* -- YA float -- */                                                          \n"
 "                                                                              \n"
 "/* babl reference file: babl/base/rgb-constants.h */                          \n"
-"#define RGB_LUMINANCE_RED    (0.22248840f)                                    \n"
-"#define RGB_LUMINANCE_GREEN  (0.71690369f)                                    \n"
-"#define RGB_LUMINANCE_BLUE   (0.06060791f)                                    \n"
+"#define RGB_LUMINANCE_RED    (0.222491f)                                      \n"
+"#define RGB_LUMINANCE_GREEN  (0.716888f)                                      \n"
+"#define RGB_LUMINANCE_BLUE   (0.060621f)                                      \n"
 "                                                                              \n"
 "/* RGBA float -> YA float */                                                  \n"
 "__kernel void rgbaf_to_yaf (__global const float4 * in,                       \n"
diff --git a/opencl/texturize-canvas.cl.h b/opencl/texturize-canvas.cl.h
index 52ac243..5fa1566 100644
--- a/opencl/texturize-canvas.cl.h
+++ b/opencl/texturize-canvas.cl.h
@@ -1,32 +1,32 @@
-static const char *texturize_canvas_cl_source =
-"#define CLAMP(val,lo,hi) (val < lo) ? lo : ((hi < val) ? hi : val )        \n"
-"__kernel void cl_texturize_canvas(__global const float * in,               \n"
-"                                  __global float * out,                    \n"
-"                                  __global const float * sdata,            \n"
-"                                  const int x,                             \n"
-"                                  const int y,                             \n"
-"                                  const int xm,                            \n"
-"                                  const int ym,                            \n"
-"                                  const int offs,                          \n"
-"                                  const float mult,                        \n"
-"                                  const int components,                    \n"
-"                                  const int has_alpha)                     \n"
-"{                                                                          \n"
-"    int col = get_global_id(0);                                            \n"
-"    int row = get_global_id(1);                                            \n"
-"    int step = components + has_alpha;                                     \n"
-"    int index = step * (row * get_global_size(0) + col);                   \n"
-"    int canvas_index = ((x + col) & 127) * xm +                            \n"
-"                       ((y + row) & 127) * ym + offs;                      \n"
-"    float color;                                                           \n"
-"    int i;                                                                 \n"
-"    float tmp = mult * sdata[canvas_index];                                \n"
-"    for(i=0; i<components; ++i)                                            \n"
-"    {                                                                      \n"
-"       color = tmp + in[index];                                            \n"
-"       out[index++] = CLAMP(color,0.0f,1.0f);                              \n"
-"    }                                                                      \n"
-"    if(has_alpha)                                                          \n"
-"       out[index] = in[index];                                             \n"
-"}                                                                          \n"
+static const char* texturize_canvas_cl_source =
+"#define CLAMP(val,lo,hi) (val < lo) ? lo : ((hi < val) ? hi : val )           \n"
+"__kernel cl_texturize_canvas(__global const float * in,                       \n"
+"                             __global float * out,                            \n"
+"                             __global float * sdata,                          \n"
+"                             const int x,                                     \n"
+"                             const int y,                                     \n"
+"                             const int xm,                                    \n"
+"                             const int ym,                                    \n"
+"                             const int offs,                                  \n"
+"                             const float mult,                                \n"
+"                             const int components,                            \n"
+"                             const int has_alpha)                             \n"
+"{                                                                             \n"
+"    int col = get_global_id(0);                                               \n"
+"    int row = get_global_id(1);                                               \n"
+"    int step = components + has_alpha;                                        \n"
+"    int index = step * (row * get_global_size(0) + col);                      \n"
+"    int canvas_index = ((x + col) & 127) * xm +                               \n"
+"                       ((y + row) & 127) * ym + offs;                         \n"
+"    float color;                                                              \n"
+"    int i;                                                                    \n"
+"    float tmp = mult * sdata[canvas_index];                                   \n"
+"    for(i=0; i<components; ++i)                                               \n"
+"    {                                                                         \n"
+"       color = tmp + src[index];                                              \n"
+"       out[index++] = CLAMP(color,0.0f,1.0f);                                 \n"
+"    }                                                                         \n"
+"    if(has_alpha)                                                             \n"
+"       out[index] = in[index];                                                \n"
+"}                                                                             \n"
 ;
diff --git a/operations/common/bilateral-filter.c b/operations/common/bilateral-filter.c
index 248825a..05045dd 100644
--- a/operations/common/bilateral-filter.c
+++ b/operations/common/bilateral-filter.c
@@ -174,7 +174,8 @@ process (GeglOperation       *operation,
 
   if (o->blur_radius < 1.0)
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                        output, result);
     }
   else
     {
diff --git a/operations/common/buffer-sink.c b/operations/common/buffer-sink.c
index a0e9f6f..0fe7eb2 100644
--- a/operations/common/buffer-sink.c
+++ b/operations/common/buffer-sink.c
@@ -57,7 +57,7 @@ process (GeglOperation       *operation,
       *output = gegl_buffer_new (gegl_buffer_get_extent (input),
                                  o->format);
 
-      gegl_buffer_copy (input, NULL,
+      gegl_buffer_copy (input, NULL, GEGL_ABYSS_NONE,
                         *output, NULL);
     }
 
diff --git a/operations/common/color-enhance.c b/operations/common/color-enhance.c
index c2b3e94..15a4390 100644
--- a/operations/common/color-enhance.c
+++ b/operations/common/color-enhance.c
@@ -134,7 +134,8 @@ process (GeglOperation       *operation,
 
   if (! delta)
     {
-      gegl_buffer_copy (input, NULL, output, NULL);
+      gegl_buffer_copy (input, NULL, GEGL_ABYSS_NONE,
+                        output, NULL);
       return TRUE;
     }
 
diff --git a/operations/common/copy-buffer.c b/operations/common/copy-buffer.c
index 9c53cae..2f60f77 100644
--- a/operations/common/copy-buffer.c
+++ b/operations/common/copy-buffer.c
@@ -118,14 +118,17 @@ process (GeglOperation       *operation,
             }
 
           if (cl_err || err)
-            gegl_buffer_copy (input, result, buffer, result);
+            gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                              buffer, result);
         }
       else
-        gegl_buffer_copy (input, result, buffer, result);
+        gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                          buffer, result);
     }
 
   if (output)
-    gegl_buffer_copy (input, result, output, result);
+    gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                      output, result);
 
   return TRUE;
 }
diff --git a/operations/common/map-absolute.c b/operations/common/map-absolute.c
index eb95c04..46fd29b 100644
--- a/operations/common/map-absolute.c
+++ b/operations/common/map-absolute.c
@@ -126,7 +126,8 @@ process (GeglOperation       *operation,
     }
   else
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                        output, result);
     }
 
   g_object_unref (sampler);
diff --git a/operations/common/map-relative.c b/operations/common/map-relative.c
index 585524f..f91f337 100644
--- a/operations/common/map-relative.c
+++ b/operations/common/map-relative.c
@@ -135,7 +135,8 @@ process (GeglOperation       *operation,
     }
   else
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                        output, result);
     }
 
   g_object_unref (sampler);
diff --git a/operations/common/shift.c b/operations/common/shift.c
index f8e8f32..de6f015 100644
--- a/operations/common/shift.c
+++ b/operations/common/shift.c
@@ -121,7 +121,8 @@ process (GeglOperation       *operation,
 
       /* XXX: gegl_buffer_copy doesn't allow to set the abyss policy,
        * but we probably need _CLAMP here */
-      gegl_buffer_copy (input, &src_rect, output, &dst_rect);
+      gegl_buffer_copy (input, &src_rect, GEGL_ABYSS_CLAMP,
+                        output, &dst_rect);
     }
 
   return  TRUE;
diff --git a/operations/common/value-propagate.c b/operations/common/value-propagate.c
index 7a903b7..ab4c5fd 100644
--- a/operations/common/value-propagate.c
+++ b/operations/common/value-propagate.c
@@ -529,7 +529,8 @@ process (GeglOperation       *operation,
       !(o->value || o->alpha) ||
        (o->upper_threshold < o->lower_threshold))
     {
-      gegl_buffer_copy (input, NULL, output, NULL);
+      gegl_buffer_copy (input, NULL, GEGL_ABYSS_CLAMP,
+                        output, NULL);
       return TRUE;
     }
 
diff --git a/operations/common/warp.c b/operations/common/warp.c
index a91f0e4..c6825a5 100644
--- a/operations/common/warp.c
+++ b/operations/common/warp.c
@@ -377,7 +377,8 @@ process (GeglOperation       *operation,
     }
 
   /* Affect the output buffer */
-  gegl_buffer_copy (priv->buffer, result, output, result);
+  gegl_buffer_copy (priv->buffer, result, GEGL_ABYSS_NONE,
+                    output, result);
   gegl_buffer_set_extent (output, gegl_buffer_get_extent (input));
   g_object_unref (priv->buffer);
 
diff --git a/operations/common/write-buffer.c b/operations/common/write-buffer.c
index b4ffc55..7901a92 100644
--- a/operations/common/write-buffer.c
+++ b/operations/common/write-buffer.c
@@ -105,10 +105,12 @@ process (GeglOperation       *operation,
             }
 
           if (cl_err || err)
-            gegl_buffer_copy (input, result, output, result);
+            gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                              output, result);
         }
       else
-        gegl_buffer_copy (input, result, output, result);
+        gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                          output, result);
     }
 
   return TRUE;
diff --git a/operations/core/cast-format.c b/operations/core/cast-format.c
index 633e3cf..8fe2ce2 100644
--- a/operations/core/cast-format.c
+++ b/operations/core/cast-format.c
@@ -85,7 +85,7 @@ process (GeglOperation        *operation,
 
   output = gegl_buffer_new (roi, o->input_format);
 
-  gegl_buffer_copy (input,  roi,
+  gegl_buffer_copy (input,  roi, GEGL_ABYSS_NONE,
                     output, roi);
   gegl_buffer_set_format (output, o->output_format);
 
diff --git a/operations/core/convert-format.c b/operations/core/convert-format.c
index d1f3c0d..11b7ed4 100644
--- a/operations/core/convert-format.c
+++ b/operations/core/convert-format.c
@@ -61,7 +61,8 @@ process (GeglOperation        *operation,
   if (gegl_buffer_get_format (input) != o->format)
     {
       output = gegl_operation_context_get_target (context, "output");
-      gegl_buffer_copy (input, roi, output, roi);
+      gegl_buffer_copy (input, roi, GEGL_ABYSS_NONE,
+                        output, roi);
       g_object_unref (input);
     }
   else
diff --git a/operations/external/npd.c b/operations/external/npd.c
index 28f3228..4a26427 100644
--- a/operations/external/npd.c
+++ b/operations/external/npd.c
@@ -170,7 +170,8 @@ process (GeglOperation       *operation,
       if (!have_model)
         {
           model = props->model = o->model = g_new (NPDModel, 1);
-          gegl_buffer_copy (input, NULL, output, NULL);
+          gegl_buffer_copy (input, NULL, GEGL_ABYSS_NONE,
+                            output, NULL);
           display->image.buffer_f = (gfloat*) gegl_buffer_linear_open (display->image.gegl_buffer,
                                                                        NULL,
                                                                       &display->image.rowstride,
diff --git a/operations/external/path.c b/operations/external/path.c
index ba708a0..42266ba 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -361,7 +361,8 @@ process (GeglOperation       *operation,
 
   if (input)
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                        output, result);
     }
   else
     {
diff --git a/operations/external/vector-fill.c b/operations/external/vector-fill.c
index aa58efa..54a6db9 100644
--- a/operations/external/vector-fill.c
+++ b/operations/external/vector-fill.c
@@ -127,7 +127,7 @@ process (GeglOperation       *operation,
 
   if (input)
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE, output, result);
     }
   else
     {
diff --git a/operations/external/vector-stroke.c b/operations/external/vector-stroke.c
index 86b9f6f..6948eb8 100644
--- a/operations/external/vector-stroke.c
+++ b/operations/external/vector-stroke.c
@@ -155,7 +155,8 @@ process (GeglOperation       *operation,
 
   if (input)
     {
-      gegl_buffer_copy (input, result, output, result);
+      gegl_buffer_copy (input, result, GEGL_ABYSS_NONE,
+                        output, result);
     }
   else
     {
diff --git a/tests/buffer/tests/buffer_copy.c b/tests/buffer/tests/buffer_copy.c
index fd88ca5..ace0aed 100644
--- a/tests/buffer/tests/buffer_copy.c
+++ b/tests/buffer/tests/buffer_copy.c
@@ -9,7 +9,7 @@ TEST ()
   buffer2 = gegl_buffer_new (&bound, babl_format ("Y float"));
 
   vgrad (buffer);
-  gegl_buffer_copy (buffer, &source, buffer2, &dest); 
+  gegl_buffer_copy (buffer, &source, GEGL_ABYSS_NONE, buffer2, &dest); 
   print_buffer (buffer2);
   g_object_unref (buffer);
   g_object_unref (buffer2);
diff --git a/tests/buffer/tests/buffer_copy_lower_left.c b/tests/buffer/tests/buffer_copy_lower_left.c
index 4a0c32c..24cbe90 100644
--- a/tests/buffer/tests/buffer_copy_lower_left.c
+++ b/tests/buffer/tests/buffer_copy_lower_left.c
@@ -13,7 +13,7 @@ TEST ()
     rect.width-=10;
     rect.height-=10;
   buffer2 = gegl_buffer_new (gegl_buffer_get_extent (buffer), gegl_buffer_get_format (buffer));
-  gegl_buffer_copy (buffer, &rect, buffer2, &rect);
+  gegl_buffer_copy (buffer, &rect, GEGL_ABYSS_NONE, buffer2, &rect);
   }
   print_buffer (buffer2);
   g_object_unref (buffer);
diff --git a/tests/buffer/tests/buffer_copy_lower_right.c b/tests/buffer/tests/buffer_copy_lower_right.c
index 21ad884..5cb0155 100644
--- a/tests/buffer/tests/buffer_copy_lower_right.c
+++ b/tests/buffer/tests/buffer_copy_lower_right.c
@@ -13,7 +13,7 @@ TEST ()
     rect.width-=10;
     rect.height-=10;
   buffer2 = gegl_buffer_new (gegl_buffer_get_extent (buffer), gegl_buffer_get_format (buffer));
-  gegl_buffer_copy (buffer, &rect, buffer2, &rect);
+  gegl_buffer_copy (buffer, &rect, GEGL_ABYSS_NONE, buffer2, &rect);
   }
   print_buffer (buffer2);
   g_object_unref (buffer);
diff --git a/tests/buffer/tests/buffer_copy_self.c b/tests/buffer/tests/buffer_copy_self.c
index 1b59de5..98ee168 100644
--- a/tests/buffer/tests/buffer_copy_self.c
+++ b/tests/buffer/tests/buffer_copy_self.c
@@ -8,7 +8,7 @@ TEST ()
   buffer = gegl_buffer_new (&rect, babl_format ("Y float"));
 
   vgrad (buffer);
-  gegl_buffer_copy (buffer, &source, buffer, &dest); /* copying to self */
+  gegl_buffer_copy (buffer, &source, GEGL_ABYSS_NONE, buffer, &dest); /* copying to self */
   print_buffer (buffer);
   g_object_unref (buffer);
   test_end ();
diff --git a/tests/buffer/tests/buffer_copy_upper_left.c b/tests/buffer/tests/buffer_copy_upper_left.c
index 5567ced..1fcf093 100644
--- a/tests/buffer/tests/buffer_copy_upper_left.c
+++ b/tests/buffer/tests/buffer_copy_upper_left.c
@@ -11,7 +11,7 @@ TEST ()
     rect.width-=10;
     rect.height-=10;
   buffer2 = gegl_buffer_new (gegl_buffer_get_extent (buffer), gegl_buffer_get_format (buffer));
-  gegl_buffer_copy (buffer, &rect, buffer2, &rect);
+  gegl_buffer_copy (buffer, &rect, GEGL_ABYSS_NONE, buffer2, &rect);
   }
   print_buffer (buffer2);
   g_object_unref (buffer);
diff --git a/tests/buffer/tests/buffer_copy_upper_right.c b/tests/buffer/tests/buffer_copy_upper_right.c
index 3dbb81c..50fb2b1 100644
--- a/tests/buffer/tests/buffer_copy_upper_right.c
+++ b/tests/buffer/tests/buffer_copy_upper_right.c
@@ -12,7 +12,7 @@ TEST ()
     rect.width-=10;
     rect.height-=10;
   buffer2 = gegl_buffer_new (gegl_buffer_get_extent (buffer), gegl_buffer_get_format (buffer));
-  gegl_buffer_copy (buffer, &rect, buffer2, &rect);
+  gegl_buffer_copy (buffer, &rect, GEGL_ABYSS_NONE, buffer2, &rect);
   }
   print_buffer (buffer2);
   g_object_unref (buffer);
diff --git a/tests/buffer/tests/buffer_linear_copy.c b/tests/buffer/tests/buffer_linear_copy.c
index 35f9c91..db88ad5 100644
--- a/tests/buffer/tests/buffer_linear_copy.c
+++ b/tests/buffer/tests/buffer_linear_copy.c
@@ -20,7 +20,7 @@ TEST ()
   vgrad (buffer);
   fill (buffer2, 1.0);
 
-  gegl_buffer_copy (buffer2, &source, buffer, &source);
+  gegl_buffer_copy (buffer2, &source, GEGL_ABYSS_NONE, buffer, &source);
   print_buffer (buffer);
   g_object_unref (buffer2);
   g_object_unref (buffer);
diff --git a/tests/simple/test-buffer-cast.c b/tests/simple/test-buffer-cast.c
index ffcde39..897ab57 100644
--- a/tests/simple/test-buffer-cast.c
+++ b/tests/simple/test-buffer-cast.c
@@ -42,7 +42,8 @@ test_buffer_cast (void)
                           babl_type ("u8"),
                           babl_component ("B'"),
                           NULL));
-  gegl_buffer_copy (buffer, NULL, cbuffer, NULL);
+  gegl_buffer_copy (buffer, NULL, GEGL_ABYSS_NONE,
+                    cbuffer, NULL);
   gegl_buffer_set_format (cbuffer, NULL);
 
   gegl_buffer_get (cbuffer, NULL, 1.0, NULL,
diff --git a/tests/simple/test-buffer-tile-voiding.c b/tests/simple/test-buffer-tile-voiding.c
index 158e9bd..d692379 100644
--- a/tests/simple/test-buffer-tile-voiding.c
+++ b/tests/simple/test-buffer-tile-voiding.c
@@ -89,7 +89,8 @@ test_buffer_copy (void)
     }
 
   /* Copy-on-write copy from B to A */
-  gegl_buffer_copy (bufferA, NULL, bufferB, NULL);
+  gegl_buffer_copy (bufferA, NULL, GEGL_ABYSS_NONE,
+                    bufferB, NULL);
 
   /* Assert that the copy-on-write actually happened */
   for (i = 0; i < 2; ++i)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]