summaryrefslogtreecommitdiff
path: root/Ladybird/ImageCodecPluginLadybird.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-16 15:15:14 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 07:58:58 -0700
commitef757f33da46d6d488163915f877ba5c1930281c (patch)
tree52d8e5cad9a1c23b07af481ac6756057680b5984 /Ladybird/ImageCodecPluginLadybird.h
parent4334929323d24e5b093b5ad6470dc1cbd7de6e7f (diff)
downloadserenity-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.h22
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;
+};
+
+}