ladybird/Libraries/LibGfx/ImageFormats/WebPWriter.h
Jelle Raaijmakers 62cf33b98e LibGfx: Remove WebP animation writer and utility
This went unused.
2025-08-05 11:30:20 +02:00

31 lines
576 B
C++

/*
* Copyright (c) 2024, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
#include <LibGfx/Forward.h>
#include <LibGfx/ImageFormats/WebPWriterLossless.h>
namespace Gfx {
struct WebPEncoderOptions {
VP8LEncoderOptions vp8l_options;
Optional<ReadonlyBytes> icc_data;
};
class WebPWriter {
public:
using Options = WebPEncoderOptions;
// Always lossless at the moment.
static ErrorOr<void> encode(Stream&, Bitmap const&, Options const& = {});
private:
WebPWriter() = delete;
};
}