mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibGfx/PNG: Spec comment for PNGImageDecoderPlugin::unfilter_scanline()
Every time I read this, I'm like "wait, this does the wrong thing for images with bpp != 8". It doesn't, though.
This commit is contained in:
parent
fbde901614
commit
6713ed483b
1 changed files with 2 additions and 0 deletions
|
@ -291,6 +291,8 @@ static_assert(AssertSize<Pixel, 4>());
|
|||
|
||||
void PNGImageDecoderPlugin::unfilter_scanline(PNG::FilterType filter, Bytes scanline_data, ReadonlyBytes previous_scanlines_data, u8 bytes_per_complete_pixel)
|
||||
{
|
||||
// https://www.w3.org/TR/png-3/#9Filter-types
|
||||
// "Filters are applied to bytes, not to pixels, regardless of the bit depth or colour type of the image."
|
||||
switch (filter) {
|
||||
case PNG::FilterType::None:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue