gtk/gdk/loaders
Simon McVittie 979c124e57 png: Correct endianness for big-endian machines
libpng wants to receive samples in either RGB or RGBA order, whether
each sample is big-endian or not. This resolves test failures in
testsuite/gdk/memorytexture.c (and a lot of reftests) on s390x, and
probably the PowerPC family too.

Modifying the test to show the color in use and write out the PNG bytes
to a file, and running the memorytexture test on s390x, produces a PNG
that loads with the correct color values in GIMP (on an x86_64 machine),
which seems like evidence that this is the correct change and not just
compensating errors.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4616
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-01-08 17:09:29 +00:00
..
gdkjpeg.c jpeg: Use gdk_memory_texture_from_texture() 2021-10-18 12:08:57 +02:00
gdkjpegprivate.h Add code to save jpegs 2021-09-17 02:02:51 +02:00
gdkpng.c png: Correct endianness for big-endian machines 2022-01-08 17:09:29 +00:00
gdkpngprivate.h texture: Split out type detection 2021-09-17 00:25:22 +02:00
gdktiff.c tiff loader: Catch more errors 2021-12-13 17:54:11 -05:00
gdktiffprivate.h texture: Split out type detection 2021-09-17 00:25:22 +02:00