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

LibGfx: Add ICCProfile support for multiLocalizedUnicodeType

This is used in v4 profiles for the required 'cprt' and 'desc' tags.
This commit is contained in:
Nico Weber 2023-01-21 21:32:22 -05:00 committed by Linus Groh
parent 3dfb012a1a
commit ec7a2058a2
2 changed files with 88 additions and 0 deletions

View file

@ -257,6 +257,29 @@ public:
}
};
// ICC v4, 10.15 multiLocalizedUnicodeType
class MultiLocalizedUnicodeTagData : public TagData {
public:
static constexpr TagTypeSignature Type { 0x6D6C7563 }; // 'mluc'
static ErrorOr<NonnullRefPtr<MultiLocalizedUnicodeTagData>> from_bytes(ReadonlyBytes, u32 offset, u32 size);
struct Record {
u16 iso_639_1_language_code;
u16 iso_3166_1_country_code;
String text;
};
MultiLocalizedUnicodeTagData(u32 offset, u32 size, Vector<Record> records)
: TagData(offset, size, Type)
, m_records(move(records))
{
}
private:
Vector<Record> m_records;
};
// ICC v4, 10.24 textType
class TextTagData : public TagData {
public: