1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-04 12:07:35 +00:00
serenity/Tests/LibGfx/test-inputs
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
..
big_image.jpg Tests: Add benchmarks for JPEGLoader 2023-04-03 20:58:49 +01:00
buggie-bottom-left-compressed.tga LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-bottom-left-uncompressed.tga LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-raw.pbm LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-raw.pgm LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-raw.ppm LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-top-left-compressed.tga LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie-top-left-uncompressed.tga LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
buggie.png LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
catdog-alert-2.webp Tests: Add webp lossless test with color index and < 16 colors 2023-04-08 19:24:13 +02:00
catdog-alert-3.webp Tests: Add webp lossless test with color index and < 16 colors 2023-04-08 19:24:13 +02:00
catdog-alert-8.webp Tests: Add webp lossless test with color index and < 16 colors 2023-04-08 19:24:13 +02:00
catdog-alert-13.webp Tests: Add webp lossless test with color index and < 16 colors 2023-04-08 19:24:13 +02:00
download-animation.gif LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
extended-lossless-animated.webp LibGfx: Implement WebPImageDecoderPlugin::loop_count() 2023-02-26 15:54:22 +01:00
extended-lossless.webp LibGfx+Tests: Add test for webp ICC loading and fix bug 2023-02-24 20:13:52 +01:00
extended-lossy.webp LibGfx+Tests: Add test for webp ICC loading and fix bug 2023-02-24 20:13:52 +01:00
icc-v2.png Tests: Add a basic ICC profile test 2023-02-01 19:19:30 +01:00
icc-v4.jpg Tests: Add a basic ICC profile test 2023-02-01 19:19:30 +01:00
p3-v4.icc Tests: Add a test for Gfx::ICC::encode() 2023-02-19 08:12:04 +00:00
Qpalette.webp Tests: Add test for lossless webp file using a color indexing tranform 2023-04-08 16:50:40 +02:00
rgb24.jpg LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
rgb_components.jpg Tests: Add a test for JPEGs with RGB components 2023-03-10 22:22:36 +01:00
rgba32-1.bmp LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
serenity.ico LibGfx: Move TestImageDecoder over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
several_scans.jpg Tests: Replace test image with my own creation 2023-03-04 23:39:41 +00:00
several_scans_odd_number_mcu.jpg LibGfx/JPEG: More support for scans with a single component 2023-03-25 21:31:21 +01:00
simple-vp8.webp Tests: Add one more webp test file 2023-02-26 12:21:40 +01:00
simple-vp8l.webp Tests: Add one more webp test file 2023-02-26 12:21:40 +01:00
spectral_selection.jpg Tests: Add a test for SOF2 images with only spectral selection 2023-03-04 23:39:41 +00:00
successive_approximation.jpg Tests: Add a test for SOF2 JPEGs with successive approximations 2023-04-03 17:06:21 +01:00
TestFont.font LibGfx: Move TestFontHandling over to input file approach in 8cfabbcd93 2023-02-01 08:56:56 -05:00
width11-height11-colors2.webp LibGfx: Correctly decode webp lossless with small palette and odd width 2023-04-09 00:14:15 +02:00
width11-height11-colors3.webp LibGfx: Correctly decode webp lossless with small palette and odd width 2023-04-09 00:14:15 +02:00
width11-height11-colors15.webp LibGfx: Correctly decode webp lossless with small palette and odd width 2023-04-09 00:14:15 +02:00