[gegl] map-absolute: propagate space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] map-absolute: propagate space
- Date: Thu, 5 Jul 2018 21:10:16 +0000 (UTC)
commit f42e0d673fc997ad6e8e99aa775cf60e9ca8b72f
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 23:09:16 2018 +0200
map-absolute: propagate space
operations/common/map-absolute.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/map-absolute.c b/operations/common/map-absolute.c
index e25c04cbb..b60068b6e 100644
--- a/operations/common/map-absolute.c
+++ b/operations/common/map-absolute.c
@@ -41,7 +41,8 @@ property_enum (abyss_policy, _("Abyss policy"),
static void
prepare (GeglOperation *operation)
{
- const Babl *format = babl_format ("RGBA float");
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ const Babl *format = babl_format_with_space ("RGBA float", space);
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format_n (babl_type ("float"), 2));
@@ -73,7 +74,7 @@ process (GeglOperation *operation,
GeglBufferIterator *it;
gint index_in, index_out, index_coords;
- format_io = babl_format ("RGBA float");
+ format_io = gegl_operation_get_format (operation,"output");
format_coords = babl_format_n (babl_type ("float"), 2);
sampler = gegl_buffer_sampler_new_at_level (input, format_io, o->sampler_type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]