[gegl] alien-map: propagate BablSpace



commit 1bdbb41e24365a27a34f293fb8a0e95dcf104cb8
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 13:38:42 2018 +0200

    alien-map: propagate BablSpace

 operations/common/alien-map.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/alien-map.c b/operations/common/alien-map.c
index 66b2bc90e..bbd9ad361 100644
--- a/operations/common/alien-map.c
+++ b/operations/common/alien-map.c
@@ -116,20 +116,21 @@ static void
 prepare (GeglOperation *operation)
 {
   GeglProperties *o = GEGL_PROPERTIES (operation);
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
 
   if (o->color_model == GEGL_ALIEN_MAP_COLOR_MODEL_RGB)
     {
       gegl_operation_set_format (operation, "input",
-                                 babl_format ("R'G'B'A float"));
+                                 babl_format_with_space ("R'G'B'A float", space));
       gegl_operation_set_format (operation, "output",
-                                 babl_format ("R'G'B'A float"));
+                                 babl_format_with_space ("R'G'B'A float", space));
     }
   else
     {
       gegl_operation_set_format (operation, "input",
-                                 babl_format ("HSLA float"));
+                                 babl_format_with_space ("HSLA float", space));
       gegl_operation_set_format (operation, "output",
-                                 babl_format ("HSLA float"));
+                                 babl_format_with_space ("HSLA float", space));
     }
 }
 


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