LibGfx: Make unfilter_scanline() a static PNGImageDecoderPlugin method

That way, LibPDF will be able to call it.

No behavior change.
This commit is contained in:
Nico Weber 2023-11-16 19:59:56 -05:00 committed by Andreas Kling
commit 5a70813d11
Notes: sideshowbarker 2024-07-17 02:28:18 +09:00
2 changed files with 5 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <LibGfx/ImageFormats/ImageDecoder.h>
#include <LibGfx/ImageFormats/PNGShared.h>
namespace Gfx {
@ -28,6 +29,8 @@ public:
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
static void unfilter_scanline(PNG::FilterType filter, Bytes scanline_data, ReadonlyBytes previous_scanlines_data, u8 bytes_per_complete_pixel);
private:
PNGImageDecoderPlugin(u8 const*, size_t);
bool ensure_image_data_chunk_was_decoded();