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

LibGfx+icc: Add ICCProfile support for XYZType and print it

This commit is contained in:
Nico Weber 2023-01-22 22:25:44 -05:00 committed by Linus Groh
parent 2bfd09b173
commit 6cfb057430
3 changed files with 46 additions and 0 deletions

View file

@ -335,6 +335,25 @@ private:
String m_text;
};
// ICC v4, 10.31 XYZType
class XYZTagData : public TagData {
public:
static constexpr TagTypeSignature Type { 0x58595A20 }; // 'XYZ '
static ErrorOr<NonnullRefPtr<XYZTagData>> from_bytes(ReadonlyBytes, u32 offset, u32 size);
XYZTagData(u32 offset, u32 size, Vector<XYZ, 1> xyzs)
: TagData(offset, size, Type)
, m_xyzs(move(xyzs))
{
}
Vector<XYZ, 1> const& xyzs() const { return m_xyzs; }
private:
Vector<XYZ, 1> m_xyzs;
};
namespace Detail {
struct TagTableEntry;
}