[gegl] buffer: stop doing nearest neighbor for scaled cmyk blits



commit 3755d25e66bce47a95701af3c9d6ad33c3893321
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Nov 28 02:55:31 2018 +0100

    buffer: stop doing nearest neighbor for scaled cmyk blits

 gegl/buffer/gegl-buffer-access.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 32288b3bc..8814c81d5 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -2091,18 +2091,10 @@ _gegl_buffer_get_unlocked (GeglBuffer          *buffer,
     gint interpolation = (flags & GEGL_BUFFER_FILTER_ALL);
     gint    factor = 1;
 
-    /* XXX: temporary, force nearest neighbor filter for blit saling of
-       CMYK based buffers
-     */
     const Babl *bfmt = gegl_buffer_get_format (buffer);
     const Babl *model = babl_format_get_model (bfmt);
     BablModelFlag model_flags = babl_model_get_flags (model);
 
-    if (model_flags & BABL_MODEL_FLAG_CMYK)
-    {
-      interpolation = GEGL_BUFFER_FILTER_NEAREST;
-    }
-
     while (scale <= 0.5)
       {
         x1 = 0 < x1 ? x1 / 2 : (x1 - 1) / 2;


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