[gegl] operation: only do in-place processing if ROI fits in input abyss
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operation: only do in-place processing if ROI fits in input abyss
- Date: Thu, 16 Jan 2020 15:34:06 +0000 (UTC)
commit dd642566fda190ec7ab2bd6235599beb3cea41ce
Author: Ell <ell_se yahoo com>
Date: Thu Jan 16 17:22:55 2020 +0200
operation: only do in-place processing if ROI fits in input abyss
In gegl_can_do_inplace_processing(), check if the ROI fits in the
input buffer's abyss, rather than its extent, since we're
discarding written data outside the abyss.
gegl/operation/gegl-operations.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gegl/operation/gegl-operations.c b/gegl/operation/gegl-operations.c
index 07c12d073..e52ab38e9 100644
--- a/gegl/operation/gegl-operations.c
+++ b/gegl/operation/gegl-operations.c
@@ -398,7 +398,7 @@ gegl_can_do_inplace_processing (GeglOperation *operation,
return FALSE;
if (gegl_buffer_get_format (input) == gegl_operation_get_format (operation, "output") &&
- gegl_rectangle_contains (gegl_buffer_get_extent (input), result))
+ gegl_rectangle_contains (gegl_buffer_get_abyss (input), result))
return TRUE;
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]