mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-29 12:24:18 +00:00
26 lines
516 B
C
26 lines
516 B
C
|
|
/*
|
||
|
|
* Copyright (c) 2024, Nico Weber <thakis@chromium.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <AK/MemoryStream.h>
|
||
|
|
#include <AK/OwnPtr.h>
|
||
|
|
#include <LibGfx/ImageFormats/ImageDecoder.h>
|
||
|
|
|
||
|
|
namespace Gfx {
|
||
|
|
|
||
|
|
struct JBIG2LoadingContext;
|
||
|
|
|
||
|
|
class JBIG2ImageDecoderPlugin : public ImageDecoderPlugin {
|
||
|
|
public:
|
||
|
|
static bool sniff(ReadonlyBytes);
|
||
|
|
static ErrorOr<NonnullOwnPtr<ImageDecoderPlugin>> create(ReadonlyBytes);
|
||
|
|
|
||
|
|
virtual ~JBIG2ImageDecoderPlugin() override = default;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|