[gegl] image-gradient: propagate space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] image-gradient: propagate space
- Date: Thu, 5 Jul 2018 21:06:32 +0000 (UTC)
commit 09c6cfcc3638653a276ea018014c76d6c791bf60
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 23:06:04 2018 +0200
image-gradient: propagate space
operations/common/image-gradient.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/image-gradient.c b/operations/common/image-gradient.c
index 175612b95..943347c29 100644
--- a/operations/common/image-gradient.c
+++ b/operations/common/image-gradient.c
@@ -48,9 +48,10 @@ property_enum (output_mode, _("Output mode"),
static void
prepare (GeglOperation *operation)
{
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
GeglOperationAreaFilter *area = GEGL_OPERATION_AREA_FILTER (operation);
GeglProperties *o = GEGL_PROPERTIES (operation);
- const Babl *rgb_format = babl_format ("R'G'B' float");
+ const Babl *rgb_format = babl_format_with_space ("R'G'B' float", space);
const Babl *out_format = babl_format_n (babl_type ("float"), 2);
area->left =
@@ -91,7 +92,7 @@ process (GeglOperation *operation,
gint level)
{
GeglProperties *o = GEGL_PROPERTIES (operation);
- const Babl *in_format = babl_format ("R'G'B' float");
+ const Babl *in_format = gegl_operation_get_format (operation, "input");
const Babl *out_format = gegl_operation_get_format (operation, "output");
gfloat *row1;
gfloat *row2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]