[gegl] convolution-matrix: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] convolution-matrix: propagate BablSpace
- Date: Thu, 5 Jul 2018 13:19:49 +0000 (UTC)
commit 90abbacf2b558b25481dcddf0f2030f444bfa9d7
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 15:19:24 2018 +0200
convolution-matrix: propagate BablSpace
operations/common/convolution-matrix.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/convolution-matrix.c b/operations/common/convolution-matrix.c
index ace588ce3..e1bd5e8f2 100644
--- a/operations/common/convolution-matrix.c
+++ b/operations/common/convolution-matrix.c
@@ -108,6 +108,8 @@ enough_with_3x3 (GeglProperties *o)
static void
prepare (GeglOperation *operation)
{
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+
GeglOperationAreaFilter *op_area = GEGL_OPERATION_AREA_FILTER (operation);
GeglProperties *o = GEGL_PROPERTIES (operation);
@@ -117,7 +119,7 @@ prepare (GeglOperation *operation)
op_area->left = op_area->right = op_area->top = op_area->bottom = 2; /* 5 */
gegl_operation_set_format (operation, "output",
- babl_format ("RGBA float"));
+ babl_format_with_space ("RGBA float", space));
}
static void
@@ -455,7 +457,7 @@ process (GeglOperation *operation,
{
GeglProperties *o = GEGL_PROPERTIES (operation);
GeglOperationAreaFilter *op_area = GEGL_OPERATION_AREA_FILTER (operation);
- const Babl *format = babl_format ("RGBA float");
+ const Babl *format = gegl_operation_get_format (operation, "output");
GeglRectangle rect;
gfloat *src_buf;
gfloat *dst_buf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]