1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

WebP: Add test for vertical ALPH chunk filtering_method

This commit is contained in:
Nico Weber 2023-06-08 18:28:11 -04:00 committed by Tim Flynn
parent a77b6c470a
commit 52d17afd7e
2 changed files with 24 additions and 1 deletions

View file

@ -290,7 +290,6 @@ static ErrorOr<void> decode_webp_chunk_ALPH(Chunk const& alph_chunk, Bitmap& bit
// "Method 2: predictor = B"
// "The top-left value at location (0, 0) uses 0 as predictor value. Otherwise,
// For vertical or gradient filtering methods, the top-most pixels at location (x, 0) are predicted using the location (x-1, 0) on the left."
// FIXME: This branch is untested.
for (int x = 1; x < bitmap.width(); ++x)
alpha[x] += alpha[x - 1];
for (int y = 1; y < bitmap.height(); ++y) {