ladybird/Tests/LibGfx
Lucas CHOLLET 3f9c5af553 LibGfx/JPEG: More support for scans with a single component
Introduced in 2c98eff, support for non-interleaved scans was not working
for frames with a number of MCU per line or column that is odd. Indeed,
the decoder assumed that they have scans that include a fabricated MCU
like scans with multiple components.

This patch makes the decoder handle images with a number of MCU per line
or column that is odd. To do so, as in the current decoder state we do
not know if components are interleaved at allocation time, we skip over
falsely-created macroblocks when filling them. As stated in 2c98eff,
this is probably not a good solution and a whole refactor will be
welcome.

It also comes with a test that open a square image with a side of 600px,
meaning 75 MCUs.
2023-03-25 21:31:21 +01:00
..
test-inputs LibGfx/JPEG: More support for scans with a single component 2023-03-25 21:31:21 +01:00
BenchmarkGfxPainter.cpp LibGfx+Tests: Remove code unnecessary after 9e7c16d0a4 2023-02-01 08:56:56 -05:00
CMakeLists.txt Tests: Add tests to verify alpha values are premultiplied when scaling 2023-03-21 00:29:33 +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/JPEG: More support for scans with a single component 2023-03-25 21:31:21 +01:00
TestScalingFunctions.cpp Tests: Add tests to verify alpha values are premultiplied when scaling 2023-03-21 00:29:33 +01:00