Browse Source

Added test

pull/1979/head
Dmitry Pentin 4 years ago
parent
commit
b4ac71e1dd
  1. 3
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Images.cs
  2. 1
      tests/ImageSharp.Tests/TestImages.cs
  3. 3
      tests/Images/External/ReferenceOutput/JpegDecoderTests/DecodeBaselineJpeg_grayscale_sampling22.png
  4. 3
      tests/Images/Input/Jpg/baseline/grayscale_sampling22.jpg

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

@ -42,6 +42,9 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
// High depth images
TestImages.Jpeg.Baseline.Testorig12bit,
// Grayscale jpeg with 2x2 sampling factors (not a usual thing to encounter in the wild)
TestImages.Jpeg.Baseline.GrayscaleSampling2x2,
};
public static string[] ProgressiveTestJpegs =

1
tests/ImageSharp.Tests/TestImages.cs

@ -223,6 +223,7 @@ namespace SixLabors.ImageSharp.Tests
public const string Winter444_Interleaved = "Jpg/baseline/winter444_interleaved.jpg";
public const string Metadata = "Jpg/baseline/Metadata-test-file.jpg";
public const string ExtendedXmp = "Jpg/baseline/extended-xmp.jpg";
public const string GrayscaleSampling2x2 = "Jpg/baseline/grayscale_sampling22.jpg";
public static readonly string[] All =
{

3
tests/Images/External/ReferenceOutput/JpegDecoderTests/DecodeBaselineJpeg_grayscale_sampling22.png

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad22f28d20ea0ceda983a138b3bf9503ed836d779ed75a313f668329c910665e
size 168405

3
tests/Images/Input/Jpg/baseline/grayscale_sampling22.jpg

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5cc8572082a54944d48b3e4f49e6c441871f6eb2b616fbbbfb025f20e0aeff5
size 45066
Loading…
Cancel
Save