ladybird/Tests/LibGfx
Nico Weber 95e35b7f5e LibGfx: Correctly decode webp lossless with small palette and odd width
WebP lossless files that use a color indexing transform with <= 16
colors use pixel bundling to pack 2, 4, or 8 pixels into a single pixel.

If the image's width doesn't happen to be an exact multiple of the
bundling factor, we need to:

1. Use ceil_div() instead of just dividing the width by the bundling
   factor

2. Remember the original width and use it instead of computing
   reduced width times bundling factor

This does these changes, and adds a simple test for it -- it at least
checks that the decoded images have the right size.

(I created these images myself in Photoshop, and used the same
technique as for Tests/LibGfx/test-inputs/catdog-alert-*.webp
to create images with a certain number of colors.)
2023-04-09 00:14:15 +02:00
..
test-inputs LibGfx: Correctly decode webp lossless with small palette and odd width 2023-04-09 00:14:15 +02:00
BenchmarkGfxPainter.cpp LibGfx+Tests: Remove code unnecessary after 9e7c16d0a4 2023-02-01 08:56:56 -05:00
BenchmarkJPEGLoader.cpp Tests: Add benchmarks for JPEGLoader 2023-04-03 20:58:49 +01:00
CMakeLists.txt Tests: Add benchmarks for JPEGLoader 2023-04-03 20:58:49 +01:00
TestFontHandling.cpp LibGfx: Remove single-code point Font::glyph_or_emoji_width API 2023-02-24 20:28:23 +01:00
TestICCProfile.cpp LibGfx: Move all image loaders and writers to a subdirectory 2023-03-21 22:39:25 +01:00
TestImageDecoder.cpp LibGfx: Correctly decode webp lossless with small palette and odd width 2023-04-09 00:14:15 +02:00
TestScalingFunctions.cpp Tests: Add tests to verify alpha values are premultiplied when scaling 2023-03-21 00:29:33 +01:00