mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 23:12:22 +00:00
LibGfx: Add a method to get a specific tag from an ICC Profile
This commit is contained in:
parent
91b677c81e
commit
1066831b39
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1066831b39
Pull-request: https://github.com/SerenityOS/serenity/pull/19691
Reviewed-by: https://github.com/LucasChollet
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
Reviewed-by: https://github.com/nico ✅
1 changed files with 5 additions and 0 deletions
|
@ -254,6 +254,11 @@ public:
|
|||
return {};
|
||||
}
|
||||
|
||||
Optional<TagData const&> tag_data(TagSignature signature) const
|
||||
{
|
||||
return m_tag_table.get(signature).map([](auto it) -> TagData const& { return *it; });
|
||||
}
|
||||
|
||||
size_t tag_count() const { return m_tag_table.size(); }
|
||||
|
||||
// Only versions 2 and 4 are in use.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue