2022-09-16 13:15:14 +00:00
|
|
|
/*
|
|
|
|
* 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 {
|
|
|
|
|
2023-08-02 18:01:17 +00:00
|
|
|
class ImageCodecPlugin final : public Web::Platform::ImageCodecPlugin {
|
2022-09-16 13:15:14 +00:00
|
|
|
public:
|
2023-08-02 18:01:17 +00:00
|
|
|
ImageCodecPlugin() = default;
|
|
|
|
virtual ~ImageCodecPlugin() override;
|
2022-09-16 13:15:14 +00:00
|
|
|
|
|
|
|
virtual Optional<Web::Platform::DecodedImage> decode_image(ReadonlyBytes data) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|