mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 14:12:52 +00:00
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.) |
||
---|---|---|
.. | ||
test-inputs | ||
BenchmarkGfxPainter.cpp | ||
BenchmarkJPEGLoader.cpp | ||
CMakeLists.txt | ||
TestFontHandling.cpp | ||
TestICCProfile.cpp | ||
TestImageDecoder.cpp | ||
TestScalingFunctions.cpp |