Browse Source

Move Rgba32 inline with other pixel formats

pull/486/head
James Jackson-South 8 years ago
parent
commit
023176d0b9
  1. 2
      src/ImageSharp/ColorSpaces/Hsv.cs
  2. 2
      src/ImageSharp/ColorSpaces/Rgb.cs
  3. 2
      src/ImageSharp/Common/Extensions/Vector4Extensions.cs
  4. 4
      src/ImageSharp/Memory/ArrayPoolMemoryManager.CommonFactoryMethods.cs
  5. 5
      src/ImageSharp/PixelFormats/Generated/Rgba32.PixelOperations.Generated.cs
  6. 5
      src/ImageSharp/PixelFormats/Generated/Rgba32.PixelOperations.Generated.tt
  7. 6
      src/ImageSharp/PixelFormats/Rgba32.Definitions.cs
  8. 3
      src/ImageSharp/PixelFormats/Rgba32.PixelOperations.cs
  9. 4
      src/ImageSharp/PixelFormats/Rgba32.cs
  10. 2
      tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs
  11. 2
      tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs
  12. 2
      tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs
  13. 2
      tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs
  14. 3
      tests/ImageSharp.Benchmarks/General/PixelConversion_ConvertFromRgba32.cs
  15. 3
      tests/ImageSharp.Benchmarks/General/PixelConversion_ConvertToRgba32.cs
  16. 2
      tests/ImageSharp.Benchmarks/Image/CopyPixels.cs
  17. 2
      tests/ImageSharp.Benchmarks/Image/DecodeBmp.cs
  18. 2
      tests/ImageSharp.Benchmarks/Image/DecodeFilteredPng.cs
  19. 2
      tests/ImageSharp.Benchmarks/Image/DecodeGif.cs
  20. 2
      tests/ImageSharp.Benchmarks/Image/DecodePng.cs
  21. 2
      tests/ImageSharp.Benchmarks/Image/EncodeBmp.cs
  22. 2
      tests/ImageSharp.Benchmarks/Image/EncodeGif.cs
  23. 2
      tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs
  24. 2
      tests/ImageSharp.Benchmarks/Image/EncodePng.cs
  25. 2
      tests/ImageSharp.Benchmarks/Image/Jpeg/DecodeJpeg.cs
  26. 2
      tests/ImageSharp.Benchmarks/Image/Jpeg/DecodeJpegMultiple.cs
  27. 2
      tests/ImageSharp.Benchmarks/Image/Jpeg/EncodeJpeg.cs
  28. 1
      tests/ImageSharp.Benchmarks/Image/MultiImageBenchmarkBase.cs
  29. 2
      tests/ImageSharp.Benchmarks/Samplers/Crop.cs
  30. 2
      tests/ImageSharp.Benchmarks/Samplers/DetectEdges.cs
  31. 2
      tests/ImageSharp.Tests/BaseImageOperationsExtensionTest.cs
  32. 2
      tests/ImageSharp.Tests/Drawing/BeziersTests.cs
  33. 1
      tests/ImageSharp.Tests/Drawing/DrawPathTests.cs
  34. 1
      tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs
  35. 1
      tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs
  36. 1
      tests/ImageSharp.Tests/Drawing/LineTests.cs
  37. 1
      tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs
  38. 1
      tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs
  39. 1
      tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs
  40. 2
      tests/ImageSharp.Tests/Drawing/PolygonTests.cs
  41. 1
      tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs
  42. 1
      tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs
  43. 1
      tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs
  44. 3
      tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs
  45. 2
      tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.ComponentData.cs
  46. 2
      tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.SpectralData.cs
  47. 1
      tests/ImageSharp.Tests/Image/ImageLoadTests.cs
  48. 2
      tests/ImageSharp.Tests/Image/ImageProcessingContextTests.cs
  49. 1
      tests/ImageSharp.Tests/Image/ImageRotationTests.cs
  50. 2
      tests/ImageSharp.Tests/ImageOperationTests.cs
  51. 3
      tests/ImageSharp.Tests/Memory/ArrayPoolMemoryManagerTests.cs
  52. 12
      tests/ImageSharp.Tests/PixelFormats/PixelOperationsTests.cs
  53. 2
      tests/ImageSharp.Tests/Processing/Effects/BackgroundColorTest.cs
  54. 1
      tests/ImageSharp.Tests/Processing/Filters/BlackWhiteTest.cs
  55. 1
      tests/ImageSharp.Tests/Processing/Filters/ColorBlindnessTest.cs
  56. 1
      tests/ImageSharp.Tests/Processing/Filters/ContrastTest.cs
  57. 1
      tests/ImageSharp.Tests/Processing/Filters/FilterTest.cs
  58. 1
      tests/ImageSharp.Tests/Processing/Filters/GrayscaleTest.cs
  59. 1
      tests/ImageSharp.Tests/Processing/Filters/OpacityTest.cs
  60. 1
      tests/ImageSharp.Tests/Processing/Filters/SaturateTest.cs
  61. 2
      tests/ImageSharp.Tests/Processing/Overlays/GlowTest.cs
  62. 1
      tests/ImageSharp.Tests/Processing/Overlays/VignetteTest.cs
  63. 2
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs
  64. 2
      tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs
  65. 1
      tests/ImageSharp.Tests/Processing/Transforms/CropTest.cs
  66. 1
      tests/ImageSharp.Tests/Processing/Transforms/EntropyCropTest.cs
  67. 1
      tests/ImageSharp.Tests/Processing/Transforms/PadTest.cs
  68. 1
      tests/ImageSharp.Tests/Processing/Transforms/ResizeTests.cs
  69. 1
      tests/ImageSharp.Tests/Processing/Transforms/RotateFlipTests.cs
  70. 5
      tests/ImageSharp.Tests/Processing/Transforms/RotateTests.cs
  71. 1
      tests/ImageSharp.Tests/Processing/Transforms/SkewTest.cs
  72. 4
      tests/ImageSharp.Tests/TestUtilities/ImageComparison/PixelDifference.cs

2
src/ImageSharp/ColorSpaces/Hsv.cs

@ -6,6 +6,8 @@ using System.ComponentModel;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.ColorSpaces
{
/// <summary>

2
src/ImageSharp/ColorSpaces/Rgb.cs

@ -6,6 +6,8 @@ using System.ComponentModel;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.ColorSpaces
{
/// <summary>

2
src/ImageSharp/Common/Extensions/Vector4Extensions.cs

@ -5,6 +5,8 @@ using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp
{
/// <summary>

4
src/ImageSharp/Memory/ArrayPoolMemoryManager.CommonFactoryMethods.cs

@ -1,4 +1,6 @@
namespace SixLabors.ImageSharp.Memory
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Memory
{
/// <summary>
/// Contains common factory methods and configuration constants.

5
src/ImageSharp/PixelFormats/Generated/Rgba32.PixelOperations.Generated.cs

@ -2,19 +2,18 @@
// Licensed under the Apache License, Version 2.0.
// <auto-generated />
namespace SixLabors.ImageSharp
namespace SixLabors.ImageSharp.PixelFormats
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.PixelFormats;
/// <content>
/// Provides optimized overrides for bulk operations.
/// </content>
public partial struct Rgba32
{
internal partial class PixelOperations : PixelOperations<Rgba32>
internal partial class PixelOperations
{
/// <inheritdoc />

5
src/ImageSharp/PixelFormats/Generated/Rgba32.PixelOperations.Generated.tt

@ -57,19 +57,18 @@
// Licensed under the Apache License, Version 2.0.
// <auto-generated />
namespace SixLabors.ImageSharp
namespace SixLabors.ImageSharp.PixelFormats
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.PixelFormats;
/// <content>
/// Provides optimized overrides for bulk operations.
/// </content>
public partial struct Rgba32
{
internal partial class PixelOperations : PixelOperations<Rgba32>
internal partial class PixelOperations
{
<#
GeneratePackFromMethod("Rgb24", "Unsafe.As<Rgba32, Rgb24>(ref dp) = sp; dp.A = 255;");

6
src/ImageSharp/PixelFormats/Rgba32.Definitions.cs

@ -1,12 +1,10 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp
namespace SixLabors.ImageSharp.PixelFormats
{
/// <content>
/// Provides standardized deifinitions for named colors.
/// Provides standardized definitions for named colors.
/// </content>
public partial struct Rgba32
{

3
src/ImageSharp/PixelFormats/Rgba32.PixelOperations.cs

@ -6,9 +6,8 @@ using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp
namespace SixLabors.ImageSharp.PixelFormats
{
/// <content>
/// Provides optimized overrides for bulk operations.

4
src/ImageSharp/PixelFormats/Rgba32.cs

@ -1,13 +1,11 @@
// 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;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp
namespace SixLabors.ImageSharp.PixelFormats
{
/// <summary>
/// Packed pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255.

2
tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs

@ -8,6 +8,8 @@ using System.Drawing.Drawing2D;
using System.IO;
using System.Numerics;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;

2
tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs

@ -8,6 +8,8 @@ using System.Drawing.Drawing2D;
using BenchmarkDotNet.Attributes;
using System.IO;
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;

2
tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs

@ -9,6 +9,8 @@ using System.IO;
using System.Numerics;
using SixLabors.Shapes;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;

2
tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs

@ -7,6 +7,8 @@ using System.Drawing;
using System.Drawing.Drawing2D;
using System.Numerics;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;
using CoreRectangle = SixLabors.Primitives.Rectangle;

3
tests/ImageSharp.Benchmarks/General/PixelConversion_ConvertFromRgba32.cs

@ -1,4 +1,7 @@
// ReSharper disable InconsistentNaming
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.General
{
using System.Runtime.CompilerServices;

3
tests/ImageSharp.Benchmarks/General/PixelConversion_ConvertToRgba32.cs

@ -1,4 +1,7 @@
// ReSharper disable InconsistentNaming
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.General
{
using System.Runtime.CompilerServices;

2
tests/ImageSharp.Benchmarks/Image/CopyPixels.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System;

2
tests/ImageSharp.Benchmarks/Image/DecodeBmp.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/DecodeFilteredPng.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.IO;

2
tests/ImageSharp.Benchmarks/Image/DecodeGif.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/DecodePng.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/EncodeBmp.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/EncodeGif.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.IO;

2
tests/ImageSharp.Benchmarks/Image/EncodePng.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/Jpeg/DecodeJpeg.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image.Jpeg
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Image/Jpeg/DecodeJpegMultiple.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image.Jpeg
{
using System.Collections.Generic;

2
tests/ImageSharp.Benchmarks/Image/Jpeg/EncodeJpeg.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image.Jpeg
{
using System.Drawing;

1
tests/ImageSharp.Benchmarks/Image/MultiImageBenchmarkBase.cs

@ -3,6 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks.Image
{

2
tests/ImageSharp.Benchmarks/Samplers/Crop.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks
{
using System.Drawing;

2
tests/ImageSharp.Benchmarks/Samplers/DetectEdges.cs

@ -3,6 +3,8 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Benchmarks
{
using System.IO;

2
tests/ImageSharp.Tests/BaseImageOperationsExtensionTest.cs

@ -4,6 +4,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.Primitives;
using Xunit;

2
tests/ImageSharp.Tests/Drawing/BeziersTests.cs

@ -2,6 +2,8 @@
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;
using Xunit;

1
tests/ImageSharp.Tests/Drawing/DrawPathTests.cs

@ -3,6 +3,7 @@
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Pens;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.Shapes;

1
tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs

@ -7,6 +7,7 @@ using SixLabors.ImageSharp.Drawing.Processors;
using Moq;
using Xunit;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;

1
tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs

@ -4,6 +4,7 @@
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Pens;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Shapes;
using Xunit;

1
tests/ImageSharp.Tests/Drawing/LineTests.cs

@ -4,6 +4,7 @@
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Pens;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

1
tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs

@ -4,6 +4,7 @@
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.Shapes;

1
tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs

@ -5,6 +5,7 @@ using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.Shapes;

1
tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs

@ -3,6 +3,7 @@
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing.Overlays;
using Xunit;

2
tests/ImageSharp.Tests/Drawing/PolygonTests.cs

@ -2,6 +2,8 @@
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Overlays;

1
tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.Primitives;
using Xunit;

1
tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs

@ -3,6 +3,7 @@
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Shapes;
using Xunit;

1
tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs

@ -4,6 +4,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Shapes;
using Xunit;

3
tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs

@ -2,6 +2,9 @@
// Licensed under the Apache License, Version 2.0.
// ReSharper disable InconsistentNaming
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
using System;

2
tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.ComponentData.cs

@ -1,3 +1,5 @@
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
{
using System;

2
tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.SpectralData.cs

@ -1,3 +1,5 @@
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
{
using System;

1
tests/ImageSharp.Tests/Image/ImageLoadTests.cs

@ -8,6 +8,7 @@ using SixLabors.ImageSharp.IO;
using Moq;
using Xunit;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests
{

2
tests/ImageSharp.Tests/Image/ImageProcessingContextTests.cs

@ -2,6 +2,8 @@
// Licensed under the Apache License, Version 2.0.
//using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
using Xunit;

1
tests/ImageSharp.Tests/Image/ImageRotationTests.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
using Xunit;

2
tests/ImageSharp.Tests/ImageOperationTests.cs

@ -8,6 +8,8 @@ using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors;
using Moq;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests

3
tests/ImageSharp.Tests/Memory/ArrayPoolMemoryManagerTests.cs

@ -2,6 +2,9 @@
// Licensed under the Apache License, Version 2.0.
// ReSharper disable InconsistentNaming
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests.Memory
{
using System;

12
tests/ImageSharp.Tests/PixelFormats/PixelOperationsTests.cs

@ -12,7 +12,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
{
public partial class PixelOperationsTests
{
public class Rgba32 : PixelOperationsTests<ImageSharp.Rgba32>
public class Rgba32 : PixelOperationsTests<ImageSharp.PixelFormats.Rgba32>
{
public Rgba32(ITestOutputHelper output)
: base(output)
@ -25,19 +25,19 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
[Fact]
public void IsSpecialImplementation()
{
Assert.IsType<ImageSharp.Rgba32.PixelOperations>(PixelOperations<ImageSharp.Rgba32>.Instance);
Assert.IsType<ImageSharp.PixelFormats.Rgba32.PixelOperations>(PixelOperations<ImageSharp.PixelFormats.Rgba32>.Instance);
}
[Fact]
public void ToVector4SimdAligned()
{
ImageSharp.Rgba32[] source = CreatePixelTestData(64);
ImageSharp.PixelFormats.Rgba32[] source = CreatePixelTestData(64);
Vector4[] expected = CreateExpectedVector4Data(source);
TestOperation(
source,
expected,
(s, d) => ImageSharp.Rgba32.PixelOperations.ToVector4SimdAligned(s, d.Span, 64)
(s, d) => ImageSharp.PixelFormats.Rgba32.PixelOperations.ToVector4SimdAligned(s, d.Span, 64)
);
}
@ -50,14 +50,14 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
int times = 200000;
int count = 1024;
using (IBuffer<ImageSharp.Rgba32> source = Configuration.Default.MemoryManager.Allocate<ImageSharp.Rgba32>(count))
using (IBuffer<ImageSharp.PixelFormats.Rgba32> source = Configuration.Default.MemoryManager.Allocate<ImageSharp.PixelFormats.Rgba32>(count))
using (IBuffer<Vector4> dest = Configuration.Default.MemoryManager.Allocate<Vector4>(count))
{
this.Measure(
times,
() =>
{
PixelOperations<ImageSharp.Rgba32>.Instance.ToVector4(source.Span, dest.Span, count);
PixelOperations<ImageSharp.PixelFormats.Rgba32>.Instance.ToVector4(source.Span, dest.Span, count);
});
}
}

2
tests/ImageSharp.Tests/Processing/Effects/BackgroundColorTest.cs

@ -1,6 +1,8 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects

1
tests/ImageSharp.Tests/Processing/Filters/BlackWhiteTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/ColorBlindnessTest.cs

@ -3,6 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.TestUtilities;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/ContrastTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/FilterTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/GrayscaleTest.cs

@ -3,6 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.TestUtilities;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/OpacityTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Filters/SaturateTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

2
tests/ImageSharp.Tests/Processing/Overlays/GlowTest.cs

@ -2,6 +2,8 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.ImageSharp.Processing.Overlays.Processors;

1
tests/ImageSharp.Tests/Processing/Overlays/VignetteTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing.Overlays;
using SixLabors.ImageSharp.Processing.Overlays.Processors;

2
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs

@ -4,6 +4,8 @@
using System;
using System.IO;
using System.Text;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors;
using SixLabors.Primitives;

2
tests/ImageSharp.Tests/Processing/Transforms/AutoOrientTests.cs

@ -1,6 +1,8 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Transforms

1
tests/ImageSharp.Tests/Processing/Transforms/CropTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Transforms;
using SixLabors.ImageSharp.Processing.Transforms.Processors;
using SixLabors.Primitives;

1
tests/ImageSharp.Tests/Processing/Transforms/EntropyCropTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Transforms;
using SixLabors.ImageSharp.Processing.Transforms.Processors;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Transforms/PadTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Transforms.Resamplers;
using Xunit;

1
tests/ImageSharp.Tests/Processing/Transforms/ResizeTests.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Transforms;
using SixLabors.ImageSharp.Processing.Transforms.Processors;
using SixLabors.ImageSharp.Processing.Transforms.Resamplers;

1
tests/ImageSharp.Tests/Processing/Transforms/RotateFlipTests.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Transforms;
using SixLabors.ImageSharp.Processing.Transforms.Processors;
using Xunit;

5
tests/ImageSharp.Tests/Processing/Transforms/RotateTests.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;
@ -28,12 +29,12 @@ namespace SixLabors.ImageSharp.Tests.Processing.Transforms
[InlineData(RotateType.Rotate90, 90)]
[InlineData(RotateType.Rotate180, 180)]
[InlineData(RotateType.Rotate270, 270)]
public void RotateRotateTypeRotateProcessorWithAnglesConvertedFromEnum(RotateType angle, float expectedangle)
public void RotateRotateTypeRotateProcessorWithAnglesConvertedFromEnum(RotateType angle, float expectedAngle)
{
this.operations.Rotate(angle); // is this api needed ???
RotateProcessor<Rgba32> processor = this.Verify<RotateProcessor<Rgba32>>();
Assert.Equal(expectedangle, processor.Degrees);
Assert.Equal(expectedAngle, processor.Degrees);
}
}
}

1
tests/ImageSharp.Tests/Processing/Transforms/SkewTest.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors;
using Xunit;

4
tests/ImageSharp.Tests/TestUtilities/ImageComparison/PixelDifference.cs

@ -1,4 +1,6 @@
namespace SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison
{
using SixLabors.Primitives;

Loading…
Cancel
Save