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