1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Ladybird: Implement the Web::Platform::ImageCodecPlugin interface

...and move it to separate files while we're at it.
This commit is contained in:
Andreas Kling 2022-09-16 15:15:14 +02:00 committed by Andrew Kaster
parent 4334929323
commit ef757f33da
4 changed files with 105 additions and 77 deletions

View file

@ -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;
};
}