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.
parent 08debafb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment