diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs index 62952f537b..7e5ee8b753 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs @@ -206,6 +206,54 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg [WithTestPatternImages(587, 821, PixelTypes.Rgba32, JpegColorType.YCbCrRatio444)] [WithTestPatternImages(677, 683, PixelTypes.Bgra32, JpegColorType.YCbCrRatio420)] [WithSolidFilledImages(400, 400, "Red", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Green", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Blue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Aqua", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Aquamarine", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Azure", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Beige", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Bisque", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "BlanchedAlmond", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "BlueViolet", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Brown", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "BurlyWood", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "CadetBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Chartreuse", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Chocolate", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Coral", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "CornflowerBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Cornsilk", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Crimson", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkCyan", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkGoldenrod", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkGray", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkGreen", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkGrey", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkKhaki", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkMagenta", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkOliveGreen", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkOrange", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkOrchid", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkRed", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkSalmon", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkSeaGreen", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkSlateBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkSlateGray", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkSlateGrey", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkTurquoise", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DarkViolet", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DeepPink", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DeepSkyBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DimGray", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DimGrey", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "DodgerBlue", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Firebrick", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "FloralWhite", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "ForestGreen", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Fuchsia", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "Gainsboro", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] + [WithSolidFilledImages(400, 400, "GhostWhite", PixelTypes.Bgr24, JpegColorType.YCbCrRatio420)] public void EncodeBaseline_WorksWithDiscontiguousBuffers(TestImageProvider provider, JpegColorType colorType) where TPixel : unmanaged, IPixel { diff --git a/tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs b/tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs index 6814a91327..7553317161 100644 --- a/tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs +++ b/tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs @@ -55,8 +55,10 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays provider.RunRectangleConstrainedValidatingProcessorTest(this.Apply); } + public static TheoryData Replicas = new() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 }; + [Theory] - [WithTestPatternImages(70, 120, PixelTypes.Rgba32)] + [WithTestPatternImages(nameof(Replicas), 70, 120, PixelTypes.Rgba32)] public void WorksWithDiscoBuffers(TestImageProvider provider) where TPixel : unmanaged, IPixel {