[gegl] rgb-clip: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] rgb-clip: propagate BablSpace
- Date: Thu, 5 Jul 2018 20:33:14 +0000 (UTC)
commit 667ba63704a8460fd1e5657a9780cd14c38b4cf3
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 22:32:35 2018 +0200
rgb-clip: propagate BablSpace
operations/common/rgb-clip.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/rgb-clip.c b/operations/common/rgb-clip.c
index d8462c729..869912fba 100644
--- a/operations/common/rgb-clip.c
+++ b/operations/common/rgb-clip.c
@@ -51,6 +51,7 @@ property_double (high_limit, _("High limit"), 1.0)
static void
prepare (GeglOperation *operation)
{
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
const Babl *src_format = gegl_operation_get_source_format (operation, "input");
const char *format = "RGB float";
@@ -70,8 +71,8 @@ prepare (GeglOperation *operation)
format = "RGBA float";
}
- 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 gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]