12345678910111213141516171819202122232425262728293031 |
- /*
- * Copyright (c) 2023, Nicolas Ramz <nicolas.ramz@gmail.com>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <LibGfx/ImageFormats/ImageDecoder.h>
- namespace Gfx {
- struct ILBMLoadingContext;
- class ILBMImageDecoderPlugin final : public ImageDecoderPlugin {
- public:
- static bool sniff(ReadonlyBytes);
- static ErrorOr<NonnullOwnPtr<ImageDecoderPlugin>> create(ReadonlyBytes);
- virtual ~ILBMImageDecoderPlugin() override;
- virtual IntSize size() override;
- virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
- private:
- ILBMImageDecoderPlugin(ReadonlyBytes, NonnullOwnPtr<ILBMLoadingContext>);
- NonnullOwnPtr<ILBMLoadingContext> m_context;
- };
- }
|