summaryrefslogtreecommitdiff
path: root/Ladybird/ImageCodecPluginLadybird.h
blob: ae2e49ee39bb5479d25f1f282c46115dd85d5c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
};

}