[gegl] transform: skip babl conversions for more nearest neighor transforms



commit e6422aead02819579f01fe7ca6b990ea8610b54e
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Dec 13 23:41:37 2017 +0100

    transform: skip babl conversions for more nearest neighor transforms

 operations/transform/transform-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index e31ddd9..ef23948 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -139,7 +139,8 @@ gegl_transform_prepare (GeglOperation *operation)
   if (gegl_transform_is_intermediate_node (transform) ||
       gegl_transform_matrix3_allow_fast_translate (&matrix) ||
       (gegl_matrix3_is_translate (&matrix) &&
-       transform->sampler == GEGL_SAMPLER_NEAREST))
+       transform->sampler == GEGL_SAMPLER_NEAREST) ||
+      (transform->sampler == GEGL_SAMPLER_NEAREST))
     {
       const Babl *fmt = gegl_operation_get_source_format (operation, "input");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]