mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
WebP: Add test for horizontal ALPH chunk filtering_method
This commit is contained in:
parent
737786f9a8
commit
816674de36
2 changed files with 25 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue