LibGfx/WebPWriter: Add a toggle for disabling individual transforms

This commit is contained in:
Nico Weber
2024-05-29 18:24:41 -04:00
committed by Jelle Raaijmakers
parent 4a327d98a4
commit 533b29dde7
Notes: sideshowbarker 2024-07-17 20:58:35 +09:00
5 changed files with 22 additions and 11 deletions

View File

@@ -11,6 +11,11 @@
namespace Gfx {
ErrorOr<ByteBuffer> compress_VP8L_image_data(Bitmap const&, bool& is_fully_opaque);
struct VP8LEncoderOptions {
// For each TransformType, set bit `1 << transform_type` if that transform type is allowed.
unsigned allowed_transforms { 0xf };
};
ErrorOr<ByteBuffer> compress_VP8L_image_data(Bitmap const&, VP8LEncoderOptions const&, bool& is_fully_opaque);
}