summaryrefslogtreecommitdiff
path: root/operations
diff options
context:
space:
mode:
authorØyvind Kolås <pippin@gimp.org>2015-05-24 20:22:46 +0200
committerØyvind Kolås <pippin@gimp.org>2015-05-25 01:25:44 +0200
commitaf5361ca8d5083297803e4930398eb3c646eeaaf (patch)
treeffb2e5befe948067d8fb865ecf2e64f1d249fd7e /operations
parent5d715eee845ef1ab30490259a114902d0b6533ed (diff)
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)
Diffstat (limited to 'operations')
-rw-r--r--operations/common/bilateral-filter.c3
-rw-r--r--operations/common/buffer-sink.c2
-rw-r--r--operations/common/color-enhance.c3
-rw-r--r--operations/common/copy-buffer.c9
-rw-r--r--operations/common/map-absolute.c3
-rw-r--r--operations/common/map-relative.c3
-rw-r--r--operations/common/shift.c3
-rw-r--r--operations/common/value-propagate.c3
-rw-r--r--operations/common/warp.c3
-rw-r--r--operations/common/write-buffer.c6
-rw-r--r--operations/core/cast-format.c2
-rw-r--r--operations/core/convert-format.c3
-rw-r--r--operations/external/npd.c3
-rw-r--r--operations/external/path.c3
-rw-r--r--operations/external/vector-fill.c2
-rw-r--r--operations/external/vector-stroke.c3
16 files changed, 35 insertions, 19 deletions
diff --git a/operations/common/bilateral-filter.c b/operations/common/bilateral-filter.c
index 248825a7..05045ddf 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 a0e9f6f4..0fe7eb2e 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 c2b3e940..15a4390e 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 9c53cae0..2f60f77f 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 eb95c042..46fd29b2 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 585524f8..f91f3379 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 f8e8f324..de6f0157 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 7a903b72..ab4c5fd7 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 a91f0e45..c6825a52 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 b4ffc553..7901a929 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 633e3cf0..8fe2ce25 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 d1f3c0dd..11b7ed43 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 28f32285..4a264279 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 ba708a0e..42266ba9 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 aa58efae..54a6db99 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 86b9f6f3..6948eb88 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
{