|
|
@ -94,9 +94,9 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
public float[][] Values { get; } |
|
|
public float[][] Values { get; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets or sets the CLUT data type (important when writing a profile)
|
|
|
/// Gets the CLUT data type (important when writing a profile)
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public IccClutDataType DataType { get; set; } |
|
|
public IccClutDataType DataType { get; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets the number of input channels
|
|
|
/// Gets the number of input channels
|
|
|
@ -116,7 +116,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
/// <inheritdoc/>
|
|
|
/// <inheritdoc/>
|
|
|
public bool Equals(IccClut other) |
|
|
public bool Equals(IccClut other) |
|
|
{ |
|
|
{ |
|
|
if (ReferenceEquals(null, other)) |
|
|
if (other == null) |
|
|
{ |
|
|
{ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
@ -154,11 +154,11 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
{ |
|
|
{ |
|
|
unchecked |
|
|
unchecked |
|
|
{ |
|
|
{ |
|
|
int hashCode = this.Values != null ? this.Values.GetHashCode() : 0; |
|
|
int hashCode = this.Values?.GetHashCode() ?? 0; |
|
|
hashCode = (hashCode * 397) ^ (int)this.DataType; |
|
|
hashCode = (hashCode * 397) ^ (int)this.DataType; |
|
|
hashCode = (hashCode * 397) ^ this.InputChannelCount; |
|
|
hashCode = (hashCode * 397) ^ this.InputChannelCount; |
|
|
hashCode = (hashCode * 397) ^ this.OutputChannelCount; |
|
|
hashCode = (hashCode * 397) ^ this.OutputChannelCount; |
|
|
hashCode = (hashCode * 397) ^ (this.GridPointCount != null ? this.GridPointCount.GetHashCode() : 0); |
|
|
hashCode = (hashCode * 397) ^ (this.GridPointCount?.GetHashCode() ?? 0); |
|
|
return hashCode; |
|
|
return hashCode; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|