mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:07:35 +00:00
LibGfx+icc: Make device manufacturer and device model clickable
This commit is contained in:
parent
243caa8fa9
commit
b56a145a67
3 changed files with 29 additions and 2 deletions
|
@ -388,6 +388,18 @@ ErrorOr<void> parse_reserved(ICCHeader const& header)
|
|||
}
|
||||
}
|
||||
|
||||
URL device_manufacturer_url(DeviceManufacturer device_manufacturer)
|
||||
{
|
||||
return URL(DeprecatedString::formatted("https://www.color.org/signatureRegistry/?entityEntry={:c}{:c}{:c}{:c}-{:08X}",
|
||||
device_manufacturer.c0(), device_manufacturer.c1(), device_manufacturer.c2(), device_manufacturer.c3(), device_manufacturer.value));
|
||||
}
|
||||
|
||||
URL device_model_url(DeviceModel device_model)
|
||||
{
|
||||
return URL(DeprecatedString::formatted("https://www.color.org/signatureRegistry/deviceRegistry/?entityEntry={:c}{:c}{:c}{:c}-{:08X}",
|
||||
device_model.c0(), device_model.c1(), device_model.c2(), device_model.c3(), device_model.value));
|
||||
}
|
||||
|
||||
StringView device_class_name(DeviceClass device_class)
|
||||
{
|
||||
switch (device_class) {
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/Span.h>
|
||||
#include <AK/URL.h>
|
||||
#include <LibCrypto/Hash/MD5.h>
|
||||
|
||||
namespace Gfx::ICC {
|
||||
|
@ -53,6 +54,9 @@ using Creator = DistinctFourCC<FourCCType::Creator>; // IC
|
|||
using TagSignature = DistinctFourCC<FourCCType::TagSignature>; // ICC v4, "9.2 Tag listing"
|
||||
using TagTypeSignature = DistinctFourCC<FourCCType::TagTypeSignature>; // ICC v4, "10 Tag type definitions"
|
||||
|
||||
URL device_manufacturer_url(DeviceManufacturer);
|
||||
URL device_model_url(DeviceModel);
|
||||
|
||||
// ICC v4, 7.2.4 Profile version field
|
||||
class Version {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue