Skip to content

Commit e7a2445

Browse files
Cleanup
1 parent 698d76e commit e7a2445

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/ImageSharp/ColorProfiles/CieLab.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ public bool Equals(CieLab other) =>
104104
[MethodImpl(MethodImplOptions.AggressiveInlining)]
105105
public static CieLab FromProfileConnectingSpace(ColorConversionOptions options, in CieXyz source)
106106
{
107-
// Conversion algorithm described here: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_Lab.html
107+
// Conversion algorithm described here:
108+
// http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_Lab.html
108109
CieXyz whitePoint = options.TargetWhitePoint;
109110
float wx = whitePoint.X, wy = whitePoint.Y, wz = whitePoint.Z;
110111

@@ -174,5 +175,6 @@ public static void ToProfileConnectionSpace(ColorConversionOptions options, Read
174175
}
175176

176177
/// <inheritdoc/>
177-
public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSource() => ChromaticAdaptionWhitePointSource.WhitePoint;
178+
public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSource()
179+
=> ChromaticAdaptionWhitePointSource.WhitePoint;
178180
}

src/ImageSharp/ColorProfiles/Hsv.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace SixLabors.ImageSharp.ColorProfiles;
2020
/// <param name="h">The h hue component.</param>
2121
/// <param name="s">The s saturation component.</param>
2222
/// <param name="v">The v value (brightness) component.</param>
23-
[MethodImpl(InliningOptions.ShortMethod)]
23+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2424
public Hsv(float h, float s, float v)
2525
: this(new Vector3(h, s, v))
2626
{
@@ -30,7 +30,7 @@ public Hsv(float h, float s, float v)
3030
/// Initializes a new instance of the <see cref="Hsv"/> struct.
3131
/// </summary>
3232
/// <param name="vector">The vector representing the h, s, v components.</param>
33-
[MethodImpl(InliningOptions.ShortMethod)]
33+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
3434
public Hsv(Vector3 vector)
3535
{
3636
vector = Vector3.Clamp(vector, Min, Max);
@@ -65,7 +65,7 @@ public Hsv(Vector3 vector)
6565
/// <returns>
6666
/// True if the current left is equal to the <paramref name="right"/> parameter; otherwise, false.
6767
/// </returns>
68-
[MethodImpl(InliningOptions.ShortMethod)]
68+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
6969
public static bool operator ==(Hsv left, Hsv right) => left.Equals(right);
7070

7171
/// <summary>
@@ -76,7 +76,7 @@ public Hsv(Vector3 vector)
7676
/// <returns>
7777
/// True if the current left is unequal to the <paramref name="right"/> parameter; otherwise, false.
7878
/// </returns>
79-
[MethodImpl(InliningOptions.ShortMethod)]
79+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8080
public static bool operator !=(Hsv left, Hsv right) => !left.Equals(right);
8181

8282
/// <inheritdoc/>
@@ -211,7 +211,7 @@ public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSo
211211
=> ChromaticAdaptionWhitePointSource.RgbWorkingSpace;
212212

213213
/// <inheritdoc/>
214-
[MethodImpl(InliningOptions.ShortMethod)]
214+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
215215
public override int GetHashCode() => HashCode.Combine(this.H, this.S, this.V);
216216

217217
/// <inheritdoc/>
@@ -221,7 +221,7 @@ public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSo
221221
public override bool Equals(object? obj) => obj is Hsv other && this.Equals(other);
222222

223223
/// <inheritdoc/>
224-
[MethodImpl(InliningOptions.ShortMethod)]
224+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
225225
public bool Equals(Hsv other)
226226
=> this.H.Equals(other.H)
227227
&& this.S.Equals(other.S)

0 commit comments

Comments
 (0)