/* * Copyright (c) 2024, Zachary Huang * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Gfx { struct BitmapSequence { Vector>> bitmaps; }; // a struct to temporarily store bitmap fields before the buffer data is decoded struct BitmapMetadata { Gfx::BitmapFormat format; Gfx::AlphaType alpha_type; Gfx::IntSize size; size_t size_in_bytes; }; } namespace IPC { template<> ErrorOr encode(Encoder&, Gfx::BitmapMetadata const&); template<> ErrorOr decode(Decoder&); template<> ErrorOr encode(Encoder&, Gfx::BitmapSequence const&); template<> ErrorOr decode(Decoder&); }