diff --git a/src/ImageSharp/PixelFormats/Alpha8.cs b/src/ImageSharp/PixelFormats/Alpha8.cs index 71480650d..922926e38 100644 --- a/src/ImageSharp/PixelFormats/Alpha8.cs +++ b/src/ImageSharp/PixelFormats/Alpha8.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing a single 8 bit normalized W values. /// - /// Ranges from <0, 0, 0, 0> to <0, 0, 0, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [0, 0, 0, 1] in vector form. /// /// public struct Alpha8 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Argb32.cs b/src/ImageSharp/PixelFormats/Argb32.cs index 3b25efb9f..b70023192 100644 --- a/src/ImageSharp/PixelFormats/Argb32.cs +++ b/src/ImageSharp/PixelFormats/Argb32.cs @@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. /// The color components are stored in alpha, red, green, and blue order. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// /// diff --git a/src/ImageSharp/PixelFormats/Bgr24.cs b/src/ImageSharp/PixelFormats/Bgr24.cs index 423e28140..e8fc24b31 100644 --- a/src/ImageSharp/PixelFormats/Bgr24.cs +++ b/src/ImageSharp/PixelFormats/Bgr24.cs @@ -1,7 +1,6 @@ // Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. -using System; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -11,6 +10,9 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255. /// The color components are stored in blue, green, red order. + /// + /// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form. + /// /// [StructLayout(LayoutKind.Sequential)] public struct Bgr24 : IPixel diff --git a/src/ImageSharp/PixelFormats/Bgr565.cs b/src/ImageSharp/PixelFormats/Bgr565.cs index b8a17bb9e..54e29e21e 100644 --- a/src/ImageSharp/PixelFormats/Bgr565.cs +++ b/src/ImageSharp/PixelFormats/Bgr565.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing unsigned normalized values ranging from 0 to 1. The x and z components use 5 bits, and the y component uses 6 bits. /// - /// Ranges from <0, 0, 0, 1> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form. /// /// public struct Bgr565 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Bgra32.cs b/src/ImageSharp/PixelFormats/Bgra32.cs index 8a8dcd84c..2b9a447bd 100644 --- a/src/ImageSharp/PixelFormats/Bgra32.cs +++ b/src/ImageSharp/PixelFormats/Bgra32.cs @@ -11,6 +11,9 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. /// The color components are stored in blue, green, red, and alpha order. + /// + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. + /// /// [StructLayout(LayoutKind.Sequential)] public struct Bgra32 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Bgra4444.cs b/src/ImageSharp/PixelFormats/Bgra4444.cs index 718f164c3..f339881d0 100644 --- a/src/ImageSharp/PixelFormats/Bgra4444.cs +++ b/src/ImageSharp/PixelFormats/Bgra4444.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing unsigned normalized values, ranging from 0 to 1, using 4 bits each for x, y, z, and w. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// public struct Bgra4444 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Bgra5551.cs b/src/ImageSharp/PixelFormats/Bgra5551.cs index 295ac06bc..ea1d7446d 100644 --- a/src/ImageSharp/PixelFormats/Bgra5551.cs +++ b/src/ImageSharp/PixelFormats/Bgra5551.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing unsigned normalized values ranging from 0 to 1. The x , y and z components use 5 bits, and the w component uses 1 bit. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// public struct Bgra5551 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Byte4.cs b/src/ImageSharp/PixelFormats/Byte4.cs index bb7bfbd4e..d7aae5df9 100644 --- a/src/ImageSharp/PixelFormats/Byte4.cs +++ b/src/ImageSharp/PixelFormats/Byte4.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 8-bit unsigned integer values, ranging from 0 to 255. /// - /// Ranges from <0, 0, 0, 0> to <255, 255, 255, 255> in vector form. + /// Ranges from [0, 0, 0, 0] to [255, 255, 255, 255] in vector form. /// /// public struct Byte4 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/HalfSingle.cs b/src/ImageSharp/PixelFormats/HalfSingle.cs index d32e43324..0569b796d 100644 --- a/src/ImageSharp/PixelFormats/HalfSingle.cs +++ b/src/ImageSharp/PixelFormats/HalfSingle.cs @@ -1,7 +1,6 @@ // Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. -using System; using System.Numerics; using System.Runtime.CompilerServices; @@ -10,7 +9,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing a single 16 bit floating point value. /// - /// Ranges from <-1, 0, 0, 1> to <1, 0, 0, 1> in vector form. + /// Ranges from [-1, 0, 0, 1] to [1, 0, 0, 1] in vector form. /// /// public struct HalfSingle : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/HalfTypeHelper.cs b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs index 4d6ef0fb4..cf8b9f4a2 100644 --- a/src/ImageSharp/PixelFormats/HalfTypeHelper.cs +++ b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs @@ -19,7 +19,7 @@ namespace SixLabors.ImageSharp.PixelFormats [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ushort Pack(float value) { - Uif uif = new Uif { F = value }; + var uif = new Uif { F = value }; return Pack(uif.I); } @@ -113,7 +113,7 @@ namespace SixLabors.ImageSharp.PixelFormats result = ((((uint)value & 0x8000) << 16) | ((((((uint)value >> 10) & 0x1f) - 15) + 127) << 23)) | (mantissa << 13); } - Uif uif = new Uif { U = result }; + var uif = new Uif { U = result }; return uif.F; } diff --git a/src/ImageSharp/PixelFormats/HalfVector2.cs b/src/ImageSharp/PixelFormats/HalfVector2.cs index 47255f0af..b26ae9598 100644 --- a/src/ImageSharp/PixelFormats/HalfVector2.cs +++ b/src/ImageSharp/PixelFormats/HalfVector2.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing two 16-bit floating-point values. /// - /// Ranges from <-1, -1, 0, 1> to <1, 1, 0, 1> in vector form. + /// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form. /// /// public struct HalfVector2 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/HalfVector4.cs b/src/ImageSharp/PixelFormats/HalfVector4.cs index 9e102be18..f19d1ec95 100644 --- a/src/ImageSharp/PixelFormats/HalfVector4.cs +++ b/src/ImageSharp/PixelFormats/HalfVector4.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 16-bit floating-point values. /// - /// Ranges from <-1, -1, -1, -1> to <1, 1, 1, 1> in vector form. + /// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form. /// /// public struct HalfVector4 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/NormalizedByte2.cs b/src/ImageSharp/PixelFormats/NormalizedByte2.cs index 692635a7f..69ed25e43 100644 --- a/src/ImageSharp/PixelFormats/NormalizedByte2.cs +++ b/src/ImageSharp/PixelFormats/NormalizedByte2.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed packed pixel type containing two 8-bit signed normalized values, ranging from −1 to 1. /// - /// Ranges from <-1, -1, 0, 1> to <1, 1, 0, 1> in vector form. + /// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form. /// /// public struct NormalizedByte2 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/NormalizedByte4.cs b/src/ImageSharp/PixelFormats/NormalizedByte4.cs index 2df67196e..18af886df 100644 --- a/src/ImageSharp/PixelFormats/NormalizedByte4.cs +++ b/src/ImageSharp/PixelFormats/NormalizedByte4.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 8-bit signed normalized values, ranging from −1 to 1. /// - /// Ranges from <-1, -1, -1, -1> to <1, 1, 1, 1> in vector form. + /// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form. /// /// public struct NormalizedByte4 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/NormalizedShort2.cs b/src/ImageSharp/PixelFormats/NormalizedShort2.cs index 263e6d0f3..afea6aaad 100644 --- a/src/ImageSharp/PixelFormats/NormalizedShort2.cs +++ b/src/ImageSharp/PixelFormats/NormalizedShort2.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing two 16-bit signed normalized values, ranging from −1 to 1. /// - /// Ranges from <-1, -1, 0, 1> to <1, 1, 0, 1> in vector form. + /// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form. /// /// public struct NormalizedShort2 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/NormalizedShort4.cs b/src/ImageSharp/PixelFormats/NormalizedShort4.cs index 9a54377cf..157f7419b 100644 --- a/src/ImageSharp/PixelFormats/NormalizedShort4.cs +++ b/src/ImageSharp/PixelFormats/NormalizedShort4.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 16-bit signed normalized values, ranging from −1 to 1. /// - /// Ranges from <-1, -1, -1, -1> to <1, 1, 1, 1> in vector form. + /// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form. /// /// public struct NormalizedShort4 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Rg32.cs b/src/ImageSharp/PixelFormats/Rg32.cs index e17d1dd0b..5ce029af3 100644 --- a/src/ImageSharp/PixelFormats/Rg32.cs +++ b/src/ImageSharp/PixelFormats/Rg32.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing two 16-bit unsigned normalized values ranging from 0 to 1. /// - /// Ranges from <0, 0, 0, 1> to <1, 1, 0, 1> in vector form. + /// Ranges from [0, 0, 0, 1] to [1, 1, 0, 1] in vector form. /// /// public struct Rg32 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Rgb24.cs b/src/ImageSharp/PixelFormats/Rgb24.cs index 6a93028cb..bb31d9ae9 100644 --- a/src/ImageSharp/PixelFormats/Rgb24.cs +++ b/src/ImageSharp/PixelFormats/Rgb24.cs @@ -11,6 +11,9 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255. /// The color components are stored in red, green, blue order. + /// + /// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form. + /// /// [StructLayout(LayoutKind.Sequential)] public struct Rgb24 : IPixel diff --git a/src/ImageSharp/PixelFormats/Rgba1010102.cs b/src/ImageSharp/PixelFormats/Rgba1010102.cs index 627eb247f..39eed08f3 100644 --- a/src/ImageSharp/PixelFormats/Rgba1010102.cs +++ b/src/ImageSharp/PixelFormats/Rgba1010102.cs @@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// Packed vector type containing unsigned normalized values ranging from 0 to 1. /// The x, y and z components use 10 bits, and the w component uses 2 bits. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// public struct Rgba1010102 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Rgba32.cs b/src/ImageSharp/PixelFormats/Rgba32.cs index 1630cac35..182fd7cce 100644 --- a/src/ImageSharp/PixelFormats/Rgba32.cs +++ b/src/ImageSharp/PixelFormats/Rgba32.cs @@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255. /// The color components are stored in red, green, blue, and alpha order. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// /// diff --git a/src/ImageSharp/PixelFormats/Rgba64.cs b/src/ImageSharp/PixelFormats/Rgba64.cs index 5d513458f..4a2f9ef6a 100644 --- a/src/ImageSharp/PixelFormats/Rgba64.cs +++ b/src/ImageSharp/PixelFormats/Rgba64.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 16-bit unsigned normalized values ranging from 0 to 1. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// public struct Rgba64 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/RgbaVector.cs b/src/ImageSharp/PixelFormats/RgbaVector.cs index d4137a2d0..0234a4826 100644 --- a/src/ImageSharp/PixelFormats/RgbaVector.cs +++ b/src/ImageSharp/PixelFormats/RgbaVector.cs @@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// Unpacked pixel type containing four 16-bit floating-point values typically ranging from 0 to 1. /// The color components are stored in red, green, blue, and alpha order. /// - /// Ranges from <0, 0, 0, 0> to <1, 1, 1, 1> in vector form. + /// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form. /// /// /// diff --git a/src/ImageSharp/PixelFormats/Short2.cs b/src/ImageSharp/PixelFormats/Short2.cs index 77eee03a2..16151256d 100644 --- a/src/ImageSharp/PixelFormats/Short2.cs +++ b/src/ImageSharp/PixelFormats/Short2.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing two 16-bit signed integer values. /// - /// Ranges from <-32767, -32767, 0, 1> to <32767, 32767, 0, 1> in vector form. + /// Ranges from [-32767, -32767, 0, 1] to [32767, 32767, 0, 1] in vector form. /// /// public struct Short2 : IPixel, IPackedVector diff --git a/src/ImageSharp/PixelFormats/Short4.cs b/src/ImageSharp/PixelFormats/Short4.cs index 4a1676f09..6eab37617 100644 --- a/src/ImageSharp/PixelFormats/Short4.cs +++ b/src/ImageSharp/PixelFormats/Short4.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Packed pixel type containing four 16-bit signed integer values. /// - /// Ranges from <-37267, -37267, -37267, -37267> to <37267, 37267, 37267, 37267> in vector form. + /// Ranges from [-37267, -37267, -37267, -37267] to [37267, 37267, 37267, 37267] in vector form. /// /// public struct Short4 : IPixel, IPackedVector