[gegl] gblur-1d: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gblur-1d: propagate BablSpace
- Date: Thu, 5 Jul 2018 13:53:06 +0000 (UTC)
commit a05914704a85c12a75a6b111e711d6c1e69325fb
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 15:52:38 2018 +0200
gblur-1d: propagate BablSpace
operations/common/gblur-1d.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/gblur-1d.c b/operations/common/gblur-1d.c
index 254cfa0fa..d502fafba 100644
--- a/operations/common/gblur-1d.c
+++ b/operations/common/gblur-1d.c
@@ -933,6 +933,7 @@ filter_disambiguation (GeglGblur1dFilter filter,
static void
gegl_gblur_1d_prepare (GeglOperation *operation)
{
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
GeglProperties *o = GEGL_PROPERTIES (operation);
const Babl *src_format = gegl_operation_get_source_format (operation, "input");
const char *format = "RaGaBaA float";
@@ -965,8 +966,8 @@ gegl_gblur_1d_prepare (GeglOperation *operation)
}
}
- gegl_operation_set_format (operation, "input", babl_format (format));
- gegl_operation_set_format (operation, "output", babl_format (format));
+ gegl_operation_set_format (operation, "input", babl_format_with_space (format, space));
+ gegl_operation_set_format (operation, "output", babl_format_with_space (format, space));
}
static GeglRectangle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]