diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-16 15:15:14 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-25 07:58:58 -0700 |
commit | ef757f33da46d6d488163915f877ba5c1930281c (patch) | |
tree | 52d8e5cad9a1c23b07af481ac6756057680b5984 /Ladybird/ImageCodecPluginLadybird.h | |
parent | 4334929323d24e5b093b5ad6470dc1cbd7de6e7f (diff) | |
download | serenity-ef757f33da46d6d488163915f877ba5c1930281c.zip |
Ladybird: Implement the Web::Platform::ImageCodecPlugin interface
...and move it to separate files while we're at it.
Diffstat (limited to 'Ladybird/ImageCodecPluginLadybird.h')
-rw-r--r-- | Ladybird/ImageCodecPluginLadybird.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Ladybird/ImageCodecPluginLadybird.h b/Ladybird/ImageCodecPluginLadybird.h new file mode 100644 index 0000000000..ae2e49ee39 --- /dev/null +++ b/Ladybird/ImageCodecPluginLadybird.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022, Dexβͺ <dexes.ttp@gmail.com> + * Copyright (c) 2022, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibWeb/Platform/ImageCodecPlugin.h> + +namespace Ladybird { + +class ImageCodecPluginLadybird final : public Web::Platform::ImageCodecPlugin { +public: + ImageCodecPluginLadybird() = default; + virtual ~ImageCodecPluginLadybird() override; + + virtual Optional<Web::Platform::DecodedImage> decode_image(ReadonlyBytes data) override; +}; + +} |