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

LibGfx: Store profile id MD5 in ICCProfile

This commit is contained in:
Nico Weber 2023-01-04 14:55:16 -05:00 committed by Andreas Kling
parent c10a02c405
commit d5c8c90ff0
2 changed files with 21 additions and 0 deletions

View file

@ -11,6 +11,7 @@
#include <AK/NonnullRefPtr.h>
#include <AK/RefCounted.h>
#include <AK/Span.h>
#include <LibCrypto/Hash/MD5.h>
namespace Gfx::ICC {
@ -136,6 +137,7 @@ public:
Flags flags() const { return m_flags; }
RenderingIntent rendering_intent() const { return m_rendering_intent; }
const XYZ& pcs_illuminant() const { return m_pcs_illuminant; }
Optional<Crypto::Hash::MD5::DigestType> const& id() const { return m_id; }
private:
Version m_version;
@ -146,6 +148,7 @@ private:
Flags m_flags;
RenderingIntent m_rendering_intent;
XYZ m_pcs_illuminant;
Optional<Crypto::Hash::MD5::DigestType> m_id;
};
}