Browse Source

Merge remote-tracking branch 'origin/master' into tiff-format

pull/1570/head
Brian Popow 5 years ago
parent
commit
2f15756cfd
  1. 2
      src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs
  2. 7
      tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs
  3. 6
      tests/ImageSharp.Tests/Formats/Bmp/BmpEncoderTests.cs
  4. 1
      tests/ImageSharp.Tests/Formats/Bmp/BmpFileHeaderTests.cs
  5. 6
      tests/ImageSharp.Tests/Formats/Bmp/BmpMetadataTests.cs
  6. 1
      tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs
  7. 4
      tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs
  8. 1
      tests/ImageSharp.Tests/Formats/Gif/GifFrameMetadataTests.cs
  9. 1
      tests/ImageSharp.Tests/Formats/Gif/GifMetadataTests.cs
  10. 5
      tests/ImageSharp.Tests/Formats/Jpg/AdobeMarkerTests.cs
  11. 1
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.CopyToBufferArea.cs
  12. 1
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs
  13. 1
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8Tests.cs
  14. 1
      tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs
  15. 1
      tests/ImageSharp.Tests/Formats/Jpg/GenericBlock8x8Tests.cs
  16. 1
      tests/ImageSharp.Tests/Formats/Jpg/ImageExtensionsTest.cs
  17. 5
      tests/ImageSharp.Tests/Formats/Jpg/JFifMarkerTests.cs
  18. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs
  19. 5
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Baseline.cs
  20. 2
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Images.cs
  21. 13
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Metadata.cs
  22. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs
  23. 4
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
  24. 4
      tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs
  25. 3
      tests/ImageSharp.Tests/Formats/Jpg/JpegFileMarkerTests.cs
  26. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegImagePostProcessorTests.cs
  27. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegMetadataTests.cs
  28. 1
      tests/ImageSharp.Tests/Formats/Jpg/LibJpegToolsTests.cs
  29. 1
      tests/ImageSharp.Tests/Formats/Jpg/ParseStreamTests.cs
  30. 1
      tests/ImageSharp.Tests/Formats/Jpg/ProfileResolverTests.cs
  31. 1
      tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.AccurateDCT.cs
  32. 1
      tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs
  33. 1
      tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.StandardIntegerDCT.cs
  34. 2
      tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs
  35. 1
      tests/ImageSharp.Tests/Formats/Jpg/ZigZagTests.cs
  36. 1
      tests/ImageSharp.Tests/Formats/Png/Adler32Tests.cs
  37. 1
      tests/ImageSharp.Tests/Formats/Png/Crc32Tests.cs
  38. 1
      tests/ImageSharp.Tests/Formats/Png/ImageExtensionsTest.cs
  39. 1
      tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs
  40. 3
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs
  41. 1
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs
  42. 4
      tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.Chunks.cs
  43. 1
      tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
  44. 1
      tests/ImageSharp.Tests/Formats/Png/PngMetadataTests.cs
  45. 1
      tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs
  46. 1
      tests/ImageSharp.Tests/Formats/Png/PngTextDataTests.cs
  47. 7
      tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs
  48. 5
      tests/ImageSharp.Tests/Formats/Tga/TgaEncoderTests.cs
  49. 3
      tests/ImageSharp.Tests/Formats/Tga/TgaFileHeaderTests.cs
  50. 3
      tests/ImageSharp.Tests/PixelFormats/A8Tests.cs
  51. 1
      tests/ImageSharp.Tests/PixelFormats/Argb32Tests.cs
  52. 1
      tests/ImageSharp.Tests/PixelFormats/Bgr24Tests.cs
  53. 1
      tests/ImageSharp.Tests/PixelFormats/Bgr565Tests.cs
  54. 1
      tests/ImageSharp.Tests/PixelFormats/Bgra32Tests.cs
  55. 3
      tests/ImageSharp.Tests/PixelFormats/Bgra4444Tests.cs
  56. 1
      tests/ImageSharp.Tests/PixelFormats/Bgra5551Tests.cs
  57. 1
      tests/ImageSharp.Tests/PixelFormats/Byte4Tests.cs
  58. 1
      tests/ImageSharp.Tests/PixelFormats/HalfSingleTests.cs
  59. 1
      tests/ImageSharp.Tests/PixelFormats/HalfVector2Tests.cs
  60. 1
      tests/ImageSharp.Tests/PixelFormats/HalfVector4Tests.cs
  61. 3
      tests/ImageSharp.Tests/PixelFormats/L16Tests.cs
  62. 1
      tests/ImageSharp.Tests/PixelFormats/L8Tests.cs
  63. 1
      tests/ImageSharp.Tests/PixelFormats/La16Tests.cs
  64. 1
      tests/ImageSharp.Tests/PixelFormats/La32Tests.cs
  65. 3
      tests/ImageSharp.Tests/PixelFormats/NormalizedByte2Tests.cs
  66. 1
      tests/ImageSharp.Tests/PixelFormats/NormalizedByte4Tests.cs
  67. 1
      tests/ImageSharp.Tests/PixelFormats/NormalizedShort2Tests.cs
  68. 1
      tests/ImageSharp.Tests/PixelFormats/NormalizedShort4Tests.cs
  69. 1
      tests/ImageSharp.Tests/PixelFormats/PixelBlenderTests.cs
  70. 3
      tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.ReferenceImplementations.cs
  71. 3
      tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.cs
  72. 1
      tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelConversionModifiersExtensionsTests.cs
  73. 1
      tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.Rgba32OperationsTests.cs
  74. 1
      tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs
  75. 1
      tests/ImageSharp.Tests/PixelFormats/Rg32Tests.cs
  76. 1
      tests/ImageSharp.Tests/PixelFormats/Rgb24Tests.cs
  77. 1
      tests/ImageSharp.Tests/PixelFormats/Rgb48Tests.cs
  78. 1
      tests/ImageSharp.Tests/PixelFormats/Rgba1010102Tests.cs
  79. 1
      tests/ImageSharp.Tests/PixelFormats/Rgba32Tests.cs
  80. 1
      tests/ImageSharp.Tests/PixelFormats/Rgba64Tests.cs
  81. 1
      tests/ImageSharp.Tests/PixelFormats/RgbaVectorTests.cs
  82. 1
      tests/ImageSharp.Tests/PixelFormats/Short2Tests.cs
  83. 1
      tests/ImageSharp.Tests/PixelFormats/Short4Tests.cs
  84. 5
      tests/ImageSharp.Tests/PixelFormats/UnPackedPixelTests.cs

2
src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs

@ -166,7 +166,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
bitsPerPixel += bits;
}
return new ImageInfo(new PixelTypeInfo(bitsPerPixel), (int)root.Width, (int)root.Height, metadata);
return new ImageInfo(new PixelTypeInfo(bitsPerPixel), (int)root.Width, (int)root.Height, this.metadata);
}
private void SetTiffFormatMetaData(List<TiffFrameMetadata> framesMetadata, TiffByteOrder byteOrder)

7
tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

@ -7,6 +7,7 @@ using Microsoft.DotNet.RemoteExecutor;
using SixLabors.ImageSharp.Formats.Bmp;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.TestUtilities;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
@ -14,12 +15,12 @@ using SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs;
using Xunit;
using static SixLabors.ImageSharp.Tests.TestImages.Bmp;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
{
using SixLabors.ImageSharp.Metadata;
using static TestImages.Bmp;
[Trait("Format", "Bmp")]
public class BmpDecoderTests
{
public const PixelTypes CommonNonDefaultPixelTypes = PixelTypes.Rgba32 | PixelTypes.Bgra32 | PixelTypes.RgbaVector;

6
tests/ImageSharp.Tests/Formats/Bmp/BmpEncoderTests.cs

@ -11,14 +11,16 @@ using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs;
using Xunit;
using Xunit.Abstractions;
using static SixLabors.ImageSharp.Tests.TestImages.Bmp;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
{
using static TestImages.Bmp;
[Trait("Format", "Bmp")]
public class BmpEncoderTests
{
public static readonly TheoryData<BmpBitsPerPixel> BitsPerPixel =

1
tests/ImageSharp.Tests/Formats/Bmp/BmpFileHeaderTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
{
[Trait("Format", "Bmp")]
public class BmpFileHeaderTests
{
[Fact]

6
tests/ImageSharp.Tests/Formats/Bmp/BmpMetadataTests.cs

@ -4,13 +4,15 @@
using System.IO;
using SixLabors.ImageSharp.Formats.Bmp;
using Xunit;
using static SixLabors.ImageSharp.Tests.TestImages.Bmp;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
{
using static TestImages.Bmp;
[Trait("Format", "Bmp")]
public class BmpMetadataTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs

@ -17,6 +17,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Gif
{
[Trait("Format", "Gif")]
public class GifDecoderTests
{
private const PixelTypes TestPixelTypes = PixelTypes.Rgba32 | PixelTypes.RgbaVector | PixelTypes.Argb32;

4
tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs

@ -2,17 +2,19 @@
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Gif
{
[Trait("Format", "Gif")]
public class GifEncoderTests
{
private const PixelTypes TestPixelTypes = PixelTypes.Rgba32 | PixelTypes.RgbaVector | PixelTypes.Argb32;

1
tests/ImageSharp.Tests/Formats/Gif/GifFrameMetadataTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Gif
{
[Trait("Format", "Gif")]
public class GifFrameMetadataTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Gif/GifMetadataTests.cs

@ -13,6 +13,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Gif
{
[Trait("Format", "Gif")]
public class GifMetadataTests
{
public static readonly TheoryData<string, int, int, PixelResolutionUnit> RatioFiles =

5
tests/ImageSharp.Tests/Formats/Jpg/AdobeMarkerTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Jpeg;
@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class AdobeMarkerTests
{
// Taken from actual test image
@ -79,4 +80,4 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
Assert.False(marker.GetHashCode().Equals(marker2.GetHashCode()));
}
}
}
}

1
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.CopyToBufferArea.cs

@ -13,6 +13,7 @@ using Xunit.Abstractions;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class Block8x8FTests
{
public class CopyToBufferArea : JpegFixture

1
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

@ -14,6 +14,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class Block8x8FTests : JpegFixture
{
#if BENCHMARKING

1
tests/ImageSharp.Tests/Formats/Jpg/Block8x8Tests.cs

@ -9,6 +9,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class Block8x8Tests : JpegFixture
{
public Block8x8Tests(ITestOutputHelper output)

1
tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs

@ -12,6 +12,7 @@ using Xunit.Abstractions;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public static class DCTTests
{
public class FastFloatingPoint : JpegFixture

1
tests/ImageSharp.Tests/Formats/Jpg/GenericBlock8x8Tests.cs

@ -11,6 +11,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class GenericBlock8x8Tests
{
public static Image<TPixel> CreateTestImage<TPixel>()

1
tests/ImageSharp.Tests/Formats/Jpg/ImageExtensionsTest.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class ImageExtensionsTest
{
[Fact]

5
tests/ImageSharp.Tests/Formats/Jpg/JFifMarkerTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JFifMarkerTests
{
// Taken from actual test image
@ -91,4 +92,4 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
Assert.False(marker.GetHashCode().Equals(marker2.GetHashCode()));
}
}
}
}

1
tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs

@ -16,6 +16,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JpegColorConverterTests
{
private const float Precision = 0.1F / 255;

5
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Baseline.cs

@ -1,16 +1,15 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using Microsoft.DotNet.RemoteExecutor;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.TestUtilities;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class JpegDecoderTests
{
[Theory]

2
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Images.cs

@ -2,9 +2,11 @@
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class JpegDecoderTests
{
public static string[] BaselineTestJpegs =

13
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Metadata.cs

@ -1,22 +1,23 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.IO;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
using System;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Metadata;
[Trait("Format", "Jpg")]
public partial class JpegDecoderTests
{
// TODO: A JPEGsnoop & metadata expert should review if the Exif/Icc expectations are correct.

1
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs

@ -9,6 +9,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class JpegDecoderTests
{
public const string DecodeProgressiveJpegOutputName = "DecodeProgressiveJpeg";

4
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs

@ -6,13 +6,12 @@ using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.DotNet.RemoteExecutor;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils;
using SixLabors.ImageSharp.Tests.TestUtilities;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
@ -22,6 +21,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
// TODO: Scatter test cases into multiple test classes
[Trait("Format", "Jpg")]
public partial class JpegDecoderTests
{
public const PixelTypes CommonNonDefaultPixelTypes = PixelTypes.Rgba32 | PixelTypes.Argb32 | PixelTypes.RgbaVector;

4
tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs

@ -1,13 +1,12 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
@ -20,6 +19,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JpegEncoderTests
{
public static readonly TheoryData<string, int> QualityFiles =

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

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Jpeg;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JpegFileMarkerTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Jpg/JpegImagePostProcessorTests.cs

@ -12,6 +12,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JpegImagePostProcessorTests
{
public static string[] BaselineTestJpegs =

1
tests/ImageSharp.Tests/Formats/Jpg/JpegMetadataTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class JpegMetadataTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Jpg/LibJpegToolsTests.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class LibJpegToolsTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Jpg/ParseStreamTests.cs

@ -13,6 +13,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class ParseStreamTests
{
private ITestOutputHelper Output { get; }

1
tests/ImageSharp.Tests/Formats/Jpg/ProfileResolverTests.cs

@ -9,6 +9,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class ProfileResolverTests
{
private static readonly byte[] JFifMarker = Encoding.ASCII.GetBytes("JFIF\0");

1
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.AccurateDCT.cs

@ -9,6 +9,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class ReferenceImplementationsTests
{
public class AccurateDCT : JpegFixture

1
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs

@ -10,6 +10,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class ReferenceImplementationsTests
{
public class FastFloatingPointDCT : JpegFixture

1
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.StandardIntegerDCT.cs

@ -12,6 +12,7 @@ using Xunit.Abstractions;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public partial class ReferenceImplementationsTests
{
public class StandardIntegerDCT : JpegFixture

2
tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs

@ -7,7 +7,6 @@ using System.Linq;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils;
@ -17,6 +16,7 @@ using Xunit.Abstractions;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class SpectralJpegTests
{
public SpectralJpegTests(ITestOutputHelper output)

1
tests/ImageSharp.Tests/Formats/Jpg/ZigZagTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
{
[Trait("Format", "Jpg")]
public class ZigZagTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Png/Adler32Tests.cs

@ -8,6 +8,7 @@ using SharpAdler32 = ICSharpCode.SharpZipLib.Checksum.Adler32;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class Adler32Tests
{
[Theory]

1
tests/ImageSharp.Tests/Formats/Png/Crc32Tests.cs

@ -8,6 +8,7 @@ using SharpCrc32 = ICSharpCode.SharpZipLib.Checksum.Crc32;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class Crc32Tests
{
[Theory]

1
tests/ImageSharp.Tests/Formats/Png/ImageExtensionsTest.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class ImageExtensionsTest
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class PngChunkTypeTests
{
[Fact]

3
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs

@ -1,13 +1,11 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Buffers.Binary;
using System.IO;
using System.Text;
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.Formats.Png.Zlib;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
@ -15,6 +13,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public partial class PngDecoderTests
{
// Represents ASCII string of "123456789"

1
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

@ -16,6 +16,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public partial class PngDecoderTests
{
private const PixelTypes PixelTypes = Tests.PixelTypes.Rgba32 | Tests.PixelTypes.RgbaVector | Tests.PixelTypes.Argb32;

4
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.Chunks.cs

@ -4,15 +4,17 @@
using System;
using System.Buffers.Binary;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public partial class PngEncoderTests
{
[Fact]

1
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

@ -15,6 +15,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public partial class PngEncoderTests
{
private static PngEncoder PngEncoder => new PngEncoder();

1
tests/ImageSharp.Tests/Formats/Png/PngMetadataTests.cs

@ -12,6 +12,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class PngMetadataTests
{
public static readonly TheoryData<string, int, int, PixelResolutionUnit> RatioFiles =

1
tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Png
{
[Trait("Format", "Png")]
public class PngSmokeTests
{
[Theory]

1
tests/ImageSharp.Tests/Formats/Png/PngTextDataTests.cs

@ -10,6 +10,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
/// <summary>
/// Tests the <see cref="PngTextData"/> class.
/// </summary>
[Trait("Format", "Png")]
public class PngTextDataTests
{
/// <summary>

7
tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs

@ -6,16 +6,17 @@ using Microsoft.DotNet.RemoteExecutor;
using SixLabors.ImageSharp.Formats.Tga;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
using static SixLabors.ImageSharp.Tests.TestImages.Tga;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Tga
{
using static TestImages.Tga;
[Trait("Format", "Tga")]
public class TgaDecoderTests
{
private static TgaDecoder TgaDecoder => new TgaDecoder();

5
tests/ImageSharp.Tests/Formats/Tga/TgaEncoderTests.cs

@ -8,11 +8,12 @@ using SixLabors.ImageSharp.PixelFormats;
using Xunit;
using static SixLabors.ImageSharp.Tests.TestImages.Tga;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Formats.Tga
{
using static TestImages.Tga;
[Trait("Format", "Tga")]
public class TgaEncoderTests
{
public static readonly TheoryData<TgaBitsPerPixel> BitsPerPixel =

3
tests/ImageSharp.Tests/Formats/Tga/TgaFileHeaderTests.cs

@ -1,15 +1,16 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using System.IO;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Tga;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tga
{
[Trait("Format", "Tga")]
public class TgaFileHeaderTests
{
[Theory]

3
tests/ImageSharp.Tests/PixelFormats/A8Tests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class A8Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/Argb32Tests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Argb32Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Bgr24Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Bgr24Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/Bgr565Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Bgr565Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Bgra32Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Bgra32Tests
{
/// <summary>

3
tests/ImageSharp.Tests/PixelFormats/Bgra4444Tests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Bgra4444Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Bgra5551Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Bgra5551Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Byte4Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Byte4Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/HalfSingleTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class HalfSingleTests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/HalfVector2Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class HalfVector2Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/HalfVector4Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class HalfVector4Tests
{
[Fact]

3
tests/ImageSharp.Tests/PixelFormats/L16Tests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class L16Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/L8Tests.cs

@ -9,6 +9,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class L8Tests
{
public static readonly TheoryData<byte> LuminanceData

1
tests/ImageSharp.Tests/PixelFormats/La16Tests.cs

@ -9,6 +9,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class La16Tests
{
public static readonly TheoryData<byte> LuminanceData

1
tests/ImageSharp.Tests/PixelFormats/La32Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class La32Tests
{
[Fact]

3
tests/ImageSharp.Tests/PixelFormats/NormalizedByte2Tests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class NormalizedByte2Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/NormalizedByte4Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class NormalizedByte4Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/NormalizedShort2Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class NormalizedShort2Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/NormalizedShort4Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class NormalizedShort4Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/PixelBlenderTests.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class PixelBlenderTests
{
public static TheoryData<object, Type, PixelColorBlendingMode> BlenderMappings = new TheoryData<object, Type, PixelColorBlendingMode>

3
tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.ReferenceImplementations.cs

@ -7,8 +7,11 @@ using System.Runtime.InteropServices;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public abstract partial class PixelConverterTests
{
public static class ReferenceImplementations

3
tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.PixelFormats.Utils;
using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public abstract partial class PixelConverterTests
{
public static readonly TheoryData<byte, byte, byte, byte> RgbaData =

1
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelConversionModifiersExtensionsTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations
{
[Trait("Category", "PixelFormats")]
public class PixelConversionModifiersExtensionsTests
{
[Theory]

1
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.Rgba32OperationsTests.cs

@ -9,6 +9,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations
{
[Trait("Category", "PixelFormats")]
public partial class PixelOperationsTests
{
public partial class Rgba32_OperationsTests : PixelOperationsTests<Rgba32>

1
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs

@ -16,6 +16,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations
{
[Trait("Category", "PixelFormats")]
public partial class PixelOperationsTests
{
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter

1
tests/ImageSharp.Tests/PixelFormats/Rg32Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Rg32Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/Rgb24Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Rgb24Tests
{
public static readonly TheoryData<byte, byte, byte> ColorData =

1
tests/ImageSharp.Tests/PixelFormats/Rgb48Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Rgb48Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/Rgba1010102Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Rgba1010102Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Rgba32Tests.cs

@ -11,6 +11,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
/// <summary>
/// Tests the <see cref="Rgba32"/> struct.
/// </summary>
[Trait("Category", "PixelFormats")]
public class Rgba32Tests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Rgba64Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Rgba64Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/RgbaVectorTests.cs

@ -11,6 +11,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
/// <summary>
/// Tests the <see cref="RgbaVector"/> struct.
/// </summary>
[Trait("Category", "PixelFormats")]
public class RgbaVectorTests
{
/// <summary>

1
tests/ImageSharp.Tests/PixelFormats/Short2Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Short2Tests
{
[Fact]

1
tests/ImageSharp.Tests/PixelFormats/Short4Tests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.PixelFormats
{
[Trait("Category", "PixelFormats")]
public class Short4Tests
{
[Fact]

5
tests/ImageSharp.Tests/PixelFormats/UnPackedPixelTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Colors
{
[Trait("Category", "PixelFormats")]
public class UnPackedPixelTests
{
[Fact]
@ -102,4 +103,4 @@ namespace SixLabors.ImageSharp.Tests.Colors
Assert.Equal(color.ToHex(), colorVector.ToHex());
}
}
}
}

Loading…
Cancel
Save