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

WebP: Add test for horizontal ALPH chunk filtering_method

This commit is contained in:
Nico Weber 2023-06-08 17:28:59 -04:00 committed by Tim Flynn
parent 737786f9a8
commit 816674de36
2 changed files with 25 additions and 1 deletions

View file

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