diff --git a/src/ImageSharp/PixelFormats/Alpha8.cs b/src/ImageSharp/PixelFormats/Alpha8.cs index 71480650db..922926e385 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 3b25efb9fd..b700231920 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 423e281404..e8fc24b31c 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 b8a17bb9e0..54e29e21e6 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 8a8dcd84cc..2b9a447bd9 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 718f164c34..f339881d0c 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 295ac06bc4..ea1d7446d5 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 bb7bfbd4eb..d7aae5df9a 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 d32e433248..0569b796d4 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 4d6ef0fb40..cf8b9f4a23 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 47255f0af1..b26ae95983 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 9e102be18d..f19d1ec952 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 692635a7fd..69ed25e439 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 2df67196eb..18af886dfe 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 263e6d0f31..afea6aaad8 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 9a54377cf1..157f7419be 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 e17d1dd0bd..5ce029af35 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 6a93028cb3..bb31d9ae97 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 627eb247f7..39eed08f38 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 1630cac356..182fd7cce0 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 5d513458f3..4a2f9ef6aa 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 d4137a2d0a..0234a48268 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 77eee03a29..16151256df 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 4a1676f091..6eab376170 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