mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibGfx: Add spec comment to ICC encode_tag_table()
This commit is contained in:
parent
30ec59f163
commit
4d972ab975
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/4d972ab975 Pull-request: https://github.com/SerenityOS/serenity/pull/17536 Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ static ErrorOr<Vector<ByteBuffer>> encode_tag_datas(Profile const& profile, Hash
|
|||
|
||||
static ErrorOr<void> encode_tag_table(ByteBuffer& bytes, Profile const& profile, Vector<size_t> const& offsets, Vector<ByteBuffer> const& tag_data_bytes, HashMap<TagData*, size_t> const& tag_data_map)
|
||||
{
|
||||
// ICC v4, 7.3 Tag table
|
||||
// ICC v4, 7.3.1 Overview
|
||||
VERIFY(bytes.size() >= sizeof(ICCHeader) + sizeof(u32) + profile.tag_count() * sizeof(TagTableEntry));
|
||||
|
||||
*bit_cast<BigEndian<u32>*>(bytes.data() + sizeof(ICCHeader)) = profile.tag_count();
|
||||
|
|
Loading…
Reference in a new issue