[gegl] mean-curvature-blur: propagate BablSpace



commit 6b9e86ade22adce6f4c72dcd45156ac29f91375c
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 20:16:54 2018 +0200

    mean-curvature-blur: propagate BablSpace

 operations/common/mean-curvature-blur.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/mean-curvature-blur.c b/operations/common/mean-curvature-blur.c
index 5fa5abe50..600d4073d 100644
--- a/operations/common/mean-curvature-blur.c
+++ b/operations/common/mean-curvature-blur.c
@@ -40,9 +40,10 @@ property_int  (iterations, _("Iterations"), 20)
 static void
 prepare (GeglOperation *operation)
 {
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
   GeglOperationAreaFilter *area   = GEGL_OPERATION_AREA_FILTER (operation);
   GeglProperties          *o      = GEGL_PROPERTIES (operation);
-  const Babl              *format = babl_format ("R'G'B'A float");
+  const Babl              *format = babl_format_with_space ("R'G'B'A float", space);
 
   area->left = area->right = area->top = area->bottom = o->iterations;
 
@@ -150,7 +151,7 @@ process (GeglOperation       *operation,
          gint                 level)
 {
   GeglProperties  *o = GEGL_PROPERTIES (operation);
-  const Babl      *format = babl_format ("R'G'B'A float");
+  const Babl      *format = gegl_operation_get_format (operation, "output");
 
   gint iteration;
   gint stride;


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