[gegl] operations: don't enforce the babl format in tile.c



commit fe14e2afc420652e0cd650f0c8ecb629f4bbe3d7
Author: Téo Mazars <teomazars gmail com>
Date:   Sun Dec 1 15:59:04 2013 +0100

    operations: don't enforce the babl format in tile.c

 operations/common/tile.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/tile.c b/operations/common/tile.c
index ad5ce79..aa39311 100644
--- a/operations/common/tile.c
+++ b/operations/common/tile.c
@@ -39,8 +39,12 @@ gegl_chant_int (offset_y, _("Vertical offset"),
 static void
 prepare (GeglOperation *operation)
 {
-  gegl_operation_set_format (operation, "input", babl_format ("RGBA float"));
-  gegl_operation_set_format (operation, "output", babl_format ("RGBA float"));
+  const Babl *format;
+
+  format = gegl_operation_get_source_format (operation, "input");
+
+  gegl_operation_set_format (operation, "input", format);
+  gegl_operation_set_format (operation, "output", format);
 }
 
 static GeglRectangle


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