[gegl] value-propagate: propagate space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] value-propagate: propagate space
- Date: Fri, 6 Jul 2018 10:34:36 +0000 (UTC)
commit e3360b2287cdec5b63584ea4b786dfade0435c9f
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jul 6 12:33:41 2018 +0200
value-propagate: propagate space
operations/common-gpl3+/value-propagate.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/operations/common-gpl3+/value-propagate.c b/operations/common-gpl3+/value-propagate.c
index c3658dd3e..cca137a0e 100644
--- a/operations/common-gpl3+/value-propagate.c
+++ b/operations/common-gpl3+/value-propagate.c
@@ -463,6 +463,7 @@ prepare (GeglOperation *operation)
{
GeglOperationAreaFilter *area = GEGL_OPERATION_AREA_FILTER (operation);
GeglProperties *o = GEGL_PROPERTIES (operation);
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
VPParamsType *params;
if (o->user_data == NULL)
@@ -477,8 +478,8 @@ prepare (GeglOperation *operation)
area->left = area->right = area->top = area->bottom = 1;
- gegl_operation_set_format (operation, "input", babl_format ("R'G'B'A float"));
- gegl_operation_set_format (operation, "output", babl_format ("R'G'B'A float"));
+ gegl_operation_set_format (operation, "input", babl_format_with_space ("R'G'B'A float", space));
+ gegl_operation_set_format (operation, "output", babl_format_with_space ("R'G'B'A float", space));
}
static void
@@ -519,7 +520,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");
GeglRectangle src_rect;
gfloat *src_buf;
gfloat *dst_buf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]