1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:57:45 +00:00

LibGfx: Write ICC tag table

All offsets and sizes are set to 0 for now, so this still doesn't
produce a valid icc file. It gets closer, though.
This commit is contained in:
Nico Weber 2023-02-17 15:59:48 -05:00 committed by Andreas Kling
parent 9bd7048519
commit 1457e36b79
2 changed files with 25 additions and 2 deletions

View file

@ -247,6 +247,8 @@ public:
callback(tag.key, tag.value);
}
size_t tag_count() const { return m_tag_table.size(); }
// Only versions 2 and 4 are in use.
bool is_v2() const { return version().major_version() == 2; }
bool is_v4() const { return version().major_version() == 4; }