[gegl] whirl-pinch: use GEGL_ABYSS_CLAMP when sampling
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] whirl-pinch: use GEGL_ABYSS_CLAMP when sampling
- Date: Thu, 22 Mar 2018 18:28:10 +0000 (UTC)
commit 780fb8c40fbcd5152c7ebe971cd8005039596ac5
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Mar 22 18:58:49 2018 +0100
whirl-pinch: use GEGL_ABYSS_CLAMP when sampling
This fixes an introduced 1px wide mostly transparent first column/row in the output.
operations/common-gpl3+/whirl-pinch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/whirl-pinch.c b/operations/common-gpl3+/whirl-pinch.c
index 8c7ad54..7f4dcf3 100644
--- a/operations/common-gpl3+/whirl-pinch.c
+++ b/operations/common-gpl3+/whirl-pinch.c
@@ -179,7 +179,7 @@ apply_whirl_pinch (gdouble whirl,
gegl_sampler_compute_scale (scale, roi->x + col, roi->y + row);
gegl_unmap (roi->x + col, roi->y + row, cx, cy);
- gegl_sampler_get (sampler, cx, cy, &scale, &dst_buf[(row * roi->width + col) * 4], GEGL_ABYSS_NONE);
+ gegl_sampler_get (sampler, cx, cy, &scale, &dst_buf[(row * roi->width + col) * 4], GEGL_ABYSS_CLAMP);
} /* for */
} /* for */
@@ -261,7 +261,7 @@ gegl_op_class_init (GeglOpClass *klass)
"categories", "distort:map",
"license", "GPL3+",
"position-dependent", "true",
- "reference-hash", "f56bc33dafbe5a106cde720a30b14374",
+ "reference-hash", "e24f6a5ec8c1c7faead1dbeeae34e386",
"description", _("Distort an image by whirling and pinching"),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]