[gegl] gegl: use RGBA rather than RaGaBaA for mipmap related scaling



commit 0ab81824d586df8f857157c5dfaadabed7947bdb
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jan 19 01:40:16 2018 +0100

    gegl: use RGBA rather than RaGaBaA for mipmap related scaling
    
    This will cause some minor color-of-transparent-pixels-fringe leaking,
    but paths from commonly used raster storage/layer formats are likely
    nearer to RGBA float than RaGaBaA float, thus being able to use cheaper
    conversions.
    
    The linear already existing versions do not enforce use of
    pre-multiplied alpha either.

 gegl/gegl-algorithms.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/gegl-algorithms.c b/gegl/gegl-algorithms.c
index 0b0599a..5bb9d4e 100644
--- a/gegl/gegl-algorithms.c
+++ b/gegl/gegl-algorithms.c
@@ -98,7 +98,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 = gegl_babl_rgba_linear_float ();
   const Babl *from_fish  = babl_fish (format, tmp_format);
   const Babl *to_fish    = babl_fish (tmp_format, format);
   const gint tmp_bpp     = 4 * 4;
@@ -182,7 +182,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 = gegl_babl_rgba_linear_float ();
   const Babl *from_fish  = babl_fish (format, tmp_format);
   const Babl *to_fish    = babl_fish (tmp_format, format);
 
@@ -277,7 +277,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 = gegl_babl_rgba_linear_float ();
   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]