Browse Source

Cleanup

pull/511/head
James Jackson-South 8 years ago
parent
commit
5b787effbf
  1. 2
      src/ImageSharp/PixelFormats/Alpha8.cs
  2. 2
      src/ImageSharp/PixelFormats/Argb32.cs
  3. 4
      src/ImageSharp/PixelFormats/Bgr24.cs
  4. 2
      src/ImageSharp/PixelFormats/Bgr565.cs
  5. 3
      src/ImageSharp/PixelFormats/Bgra32.cs
  6. 2
      src/ImageSharp/PixelFormats/Bgra4444.cs
  7. 2
      src/ImageSharp/PixelFormats/Bgra5551.cs
  8. 2
      src/ImageSharp/PixelFormats/Byte4.cs
  9. 3
      src/ImageSharp/PixelFormats/HalfSingle.cs
  10. 4
      src/ImageSharp/PixelFormats/HalfTypeHelper.cs
  11. 2
      src/ImageSharp/PixelFormats/HalfVector2.cs
  12. 2
      src/ImageSharp/PixelFormats/HalfVector4.cs
  13. 2
      src/ImageSharp/PixelFormats/NormalizedByte2.cs
  14. 2
      src/ImageSharp/PixelFormats/NormalizedByte4.cs
  15. 2
      src/ImageSharp/PixelFormats/NormalizedShort2.cs
  16. 2
      src/ImageSharp/PixelFormats/NormalizedShort4.cs
  17. 2
      src/ImageSharp/PixelFormats/Rg32.cs
  18. 3
      src/ImageSharp/PixelFormats/Rgb24.cs
  19. 2
      src/ImageSharp/PixelFormats/Rgba1010102.cs
  20. 2
      src/ImageSharp/PixelFormats/Rgba32.cs
  21. 2
      src/ImageSharp/PixelFormats/Rgba64.cs
  22. 2
      src/ImageSharp/PixelFormats/RgbaVector.cs
  23. 2
      src/ImageSharp/PixelFormats/Short2.cs
  24. 2
      src/ImageSharp/PixelFormats/Short4.cs

2
src/ImageSharp/PixelFormats/Alpha8.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing a single 8 bit normalized W values.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;0, 0, 0, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [0, 0, 0, 1] in vector form.
/// </para>
/// </summary>
public struct Alpha8 : IPixel<Alpha8>, IPackedVector<byte>

2
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.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
/// <remarks>

4
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
/// <summary>
/// Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255.
/// The color components are stored in blue, green, red order.
/// <para>
/// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Bgr24 : IPixel<Bgr24>

2
src/ImageSharp/PixelFormats/Bgr565.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// 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.
/// <para>
/// Ranges from &lt;0, 0, 0, 1&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct Bgr565 : IPixel<Bgr565>, IPackedVector<ushort>

3
src/ImageSharp/PixelFormats/Bgra32.cs

@ -11,6 +11,9 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// 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.
/// <para>
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Bgra32 : IPixel<Bgra32>, IPackedVector<uint>

2
src/ImageSharp/PixelFormats/Bgra4444.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing unsigned normalized values, ranging from 0 to 1, using 4 bits each for x, y, z, and w.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct Bgra4444 : IPixel<Bgra4444>, IPackedVector<ushort>

2
src/ImageSharp/PixelFormats/Bgra5551.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// 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.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct Bgra5551 : IPixel<Bgra5551>, IPackedVector<ushort>

2
src/ImageSharp/PixelFormats/Byte4.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 8-bit unsigned integer values, ranging from 0 to 255.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;255, 255, 255, 255&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [255, 255, 255, 255] in vector form.
/// </para>
/// </summary>
public struct Byte4 : IPixel<Byte4>, IPackedVector<uint>

3
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
/// <summary>
/// Packed pixel type containing a single 16 bit floating point value.
/// <para>
/// Ranges from &lt;-1, 0, 0, 1&gt; to &lt;1, 0, 0, 1&gt; in vector form.
/// Ranges from [-1, 0, 0, 1] to [1, 0, 0, 1] in vector form.
/// </para>
/// </summary>
public struct HalfSingle : IPixel<HalfSingle>, IPackedVector<ushort>

4
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;
}

2
src/ImageSharp/PixelFormats/HalfVector2.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing two 16-bit floating-point values.
/// <para>
/// Ranges from &lt;-1, -1, 0, 1&gt; to &lt;1, 1, 0, 1&gt; in vector form.
/// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form.
/// </para>
/// </summary>
public struct HalfVector2 : IPixel<HalfVector2>, IPackedVector<uint>

2
src/ImageSharp/PixelFormats/HalfVector4.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 16-bit floating-point values.
/// <para>
/// Ranges from &lt;-1, -1, -1, -1&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct HalfVector4 : IPixel<HalfVector4>, IPackedVector<ulong>

2
src/ImageSharp/PixelFormats/NormalizedByte2.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed packed pixel type containing two 8-bit signed normalized values, ranging from −1 to 1.
/// <para>
/// Ranges from &lt;-1, -1, 0, 1&gt; to &lt;1, 1, 0, 1&gt; in vector form.
/// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form.
/// </para>
/// </summary>
public struct NormalizedByte2 : IPixel<NormalizedByte2>, IPackedVector<ushort>

2
src/ImageSharp/PixelFormats/NormalizedByte4.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 8-bit signed normalized values, ranging from −1 to 1.
/// <para>
/// Ranges from &lt;-1, -1, -1, -1&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct NormalizedByte4 : IPixel<NormalizedByte4>, IPackedVector<uint>

2
src/ImageSharp/PixelFormats/NormalizedShort2.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing two 16-bit signed normalized values, ranging from −1 to 1.
/// <para>
/// Ranges from &lt;-1, -1, 0, 1&gt; to &lt;1, 1, 0, 1&gt; in vector form.
/// Ranges from [-1, -1, 0, 1] to [1, 1, 0, 1] in vector form.
/// </para>
/// </summary>
public struct NormalizedShort2 : IPixel<NormalizedShort2>, IPackedVector<uint>

2
src/ImageSharp/PixelFormats/NormalizedShort4.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 16-bit signed normalized values, ranging from −1 to 1.
/// <para>
/// Ranges from &lt;-1, -1, -1, -1&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [-1, -1, -1, -1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct NormalizedShort4 : IPixel<NormalizedShort4>, IPackedVector<ulong>

2
src/ImageSharp/PixelFormats/Rg32.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing two 16-bit unsigned normalized values ranging from 0 to 1.
/// <para>
/// Ranges from &lt;0, 0, 0, 1&gt; to &lt;1, 1, 0, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 1] to [1, 1, 0, 1] in vector form.
/// </para>
/// </summary>
public struct Rg32 : IPixel<Rg32>, IPackedVector<uint>

3
src/ImageSharp/PixelFormats/Rgb24.cs

@ -11,6 +11,9 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Pixel type containing three 8-bit unsigned normalized values ranging from 0 to 255.
/// The color components are stored in red, green, blue order.
/// <para>
/// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Rgb24 : IPixel<Rgb24>

2
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.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct Rgba1010102 : IPixel<Rgba1010102>, IPackedVector<uint>

2
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.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
/// <remarks>

2
src/ImageSharp/PixelFormats/Rgba64.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 16-bit unsigned normalized values ranging from 0 to 1.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
public struct Rgba64 : IPixel<Rgba64>, IPackedVector<ulong>

2
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.
/// <para>
/// Ranges from &lt;0, 0, 0, 0&gt; to &lt;1, 1, 1, 1&gt; in vector form.
/// Ranges from [0, 0, 0, 0] to [1, 1, 1, 1] in vector form.
/// </para>
/// </summary>
/// <remarks>

2
src/ImageSharp/PixelFormats/Short2.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing two 16-bit signed integer values.
/// <para>
/// Ranges from &lt;-32767, -32767, 0, 1&gt; to &lt;32767, 32767, 0, 1&gt; in vector form.
/// Ranges from [-32767, -32767, 0, 1] to [32767, 32767, 0, 1] in vector form.
/// </para>
/// </summary>
public struct Short2 : IPixel<Short2>, IPackedVector<uint>

2
src/ImageSharp/PixelFormats/Short4.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <summary>
/// Packed pixel type containing four 16-bit signed integer values.
/// <para>
/// Ranges from &lt;-37267, -37267, -37267, -37267&gt; to &lt;37267, 37267, 37267, 37267&gt; in vector form.
/// Ranges from [-37267, -37267, -37267, -37267] to [37267, 37267, 37267, 37267] in vector form.
/// </para>
/// </summary>
public struct Short4 : IPixel<Short4>, IPackedVector<ulong>

Loading…
Cancel
Save