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

ICC: Rename XYZ and XYZNumber fields to uppercase

Given that XYZ and xyz are distinct things, let's use the correct
case for these member variables.

No behavior change.
This commit is contained in:
Nico Weber 2023-04-28 14:04:27 -04:00 committed by Andreas Kling
parent 1e5ececf75
commit 227072a5af
4 changed files with 18 additions and 18 deletions

View file

@ -33,22 +33,22 @@ using u16Fixed16Number = u32;
// ICC V4, 4.14 XYZNumber
struct XYZNumber {
BigEndian<s15Fixed16Number> x;
BigEndian<s15Fixed16Number> y;
BigEndian<s15Fixed16Number> z;
BigEndian<s15Fixed16Number> X;
BigEndian<s15Fixed16Number> Y;
BigEndian<s15Fixed16Number> Z;
XYZNumber() = default;
XYZNumber(XYZ const& xyz)
: x(round(xyz.x * 0x1'0000))
, y(round(xyz.y * 0x1'0000))
, z(round(xyz.z * 0x1'0000))
: X(round(xyz.X * 0x1'0000))
, Y(round(xyz.Y * 0x1'0000))
, Z(round(xyz.Z * 0x1'0000))
{
}
operator XYZ() const
{
return XYZ { x / (float)0x1'0000, y / (float)0x1'0000, z / (float)0x1'0000 };
return XYZ { X / (float)0x1'0000, Y / (float)0x1'0000, Z / (float)0x1'0000 };
}
};