[gegl] Issue #76 - gegl:edge produces artifacts with border-behavior=loop



commit fa390cf566da3f4a82c8e3e0fbd6494b05dd6554
Author: Thomas Manni <thomas manni free fr>
Date:   Thu Jan 10 13:55:38 2019 +0100

    Issue #76 - gegl:edge produces artifacts with border-behavior=loop
    
    Don't use gegl_operation_get_required_for_output (which takes into
    account the abyss policy) to compute the source rectangle.

 operations/common-gpl3+/edge.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/operations/common-gpl3+/edge.c b/operations/common-gpl3+/edge.c
index a909c0abf..12071896f 100644
--- a/operations/common-gpl3+/edge.c
+++ b/operations/common-gpl3+/edge.c
@@ -266,7 +266,11 @@ process (GeglOperation       *operation,
   GeglRectangle rect;
   gint x, y, ix, iy, b, idx;
 
-  rect = gegl_operation_get_required_for_output (operation, "input", roi);
+  rect = *roi;
+  rect.x -= 1;
+  rect.y -= 1;
+  rect.width  += 2;
+  rect.height += 2;
 
   src_buff = g_new (gfloat, rect.width * rect.height * components);
   dst_buff = g_new0 (gfloat, roi->width * roi->height * components);


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