Files
kimageformats/autotests/read/ras/pal1bit.ras
T
Ana Bobillo 32ff79442c RAS: unpack 1-bit images with a color map
1-bit images with a color map are loaded as Indexed8, but their lines
were copied packed: the first (width + 7) / 8 bytes (rounded up to an
even number) of each line held packed bits read as indexes, and the rest
of the line was not set, so it kept whatever the memory held (images are
allocated without being initialized). The bits are now unpacked to one
index per pixel.

Added the read test pal1bit.ras, which fails without this change.
2026-10-27 10:39:33 +01:00

56 B