[gegl] gegl: do not convert away from buffers space on view scaling



commit d019735ffc75053ac30b00d26ac052ff42d70f16
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Jul 7 13:08:23 2018 +0200

    gegl: do not convert away from buffers space on view scaling

 gegl/gegl-algorithms.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/gegl-algorithms.c b/gegl/gegl-algorithms.c
index 1e1acff86..019febd07 100644
--- a/gegl/gegl-algorithms.c
+++ b/gegl/gegl-algorithms.c
@@ -64,7 +64,7 @@ gegl_downscale_2x2_generic (const Babl *format,
                             guchar     *dst_data,
                             gint        dst_rowstride)
 {
-  const Babl *tmp_format = gegl_babl_rgba_linear_float ();
+  const Babl *tmp_format = babl_format_with_space ("RGBA float", format);
   const Babl *from_fish  = babl_fish (format, tmp_format);
   const Babl *to_fish    = babl_fish (tmp_format, format);
   const gint tmp_bpp     = 4 * 4;
@@ -1003,7 +1003,7 @@ gegl_resample_boxfilter_generic (guchar       *dest_buf,
                                  const Babl *format,
                                  gint d_rowstride)
 {
-  const Babl *tmp_format = gegl_babl_rgba_linear_float ();
+  const Babl *tmp_format = babl_format_with_space ("RGBA float", format);
   const Babl *from_fish  = babl_fish (format, tmp_format);
   const Babl *to_fish    = babl_fish (tmp_format, format);
 
@@ -1110,7 +1110,7 @@ gegl_resample_bilinear_generic (guchar              *dest_buf,
                                 const Babl          *format,
                                 gint                 d_rowstride)
 {
-  const Babl *tmp_format = gegl_babl_rgba_linear_float ();
+  const Babl *tmp_format = babl_format_with_space ("RGBA float", format);
   const Babl *from_fish  = babl_fish (format, tmp_format);
   const Babl *to_fish    = babl_fish (tmp_format, format);
 


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