From b576f15b13fe1c57f5a7aed1f1e45025cc4f8b1b Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Mon, 9 Aug 2021 15:02:30 +0200 Subject: [PATCH] Additional test images --- tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs | 3 +++ tests/ImageSharp.Tests/TestImages.cs | 7 +++++-- ...bcr-contig-08.tiff => flower-ycbcr-contig-08_h1v1.tiff} | 0 tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v1.tiff | 3 +++ tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v2.tiff | 3 +++ tests/Images/Input/Tiff/flower-ycbcr-contig-08_h4v4.tiff | 3 +++ ...bcr-planar-08.tiff => flower-ycbcr-planar-08_h1v1.tiff} | 0 7 files changed, 17 insertions(+), 2 deletions(-) rename tests/Images/Input/Tiff/{flower-ycbcr-contig-08.tiff => flower-ycbcr-contig-08_h1v1.tiff} (100%) create mode 100644 tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v1.tiff create mode 100644 tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v2.tiff create mode 100644 tests/Images/Input/Tiff/flower-ycbcr-contig-08_h4v4.tiff rename tests/Images/Input/Tiff/{flower-ycbcr-planar-08.tiff => flower-ycbcr-planar-08_h1v1.tiff} (100%) diff --git a/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs index d0fed1e208..b52c02d26c 100644 --- a/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs @@ -179,6 +179,9 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tiff [WithFile(RgbYCbCr888Contiguoush2v1, PixelTypes.Rgba32)] [WithFile(RgbYCbCr888Contiguoush2v2, PixelTypes.Rgba32)] [WithFile(RgbYCbCr888Contiguoush4v4, PixelTypes.Rgba32)] + [WithFile(FlowerYCbCr888Contiguoush2v1, PixelTypes.Rgba32)] + [WithFile(FlowerYCbCr888Contiguoush2v2, PixelTypes.Rgba32)] + [WithFile(FlowerYCbCr888Contiguoush4v4, PixelTypes.Rgba32)] public void TiffDecoder_CanDecode_YCbCr_24Bit(TestImageProvider provider) where TPixel : unmanaged, IPixel { diff --git a/tests/ImageSharp.Tests/TestImages.cs b/tests/ImageSharp.Tests/TestImages.cs index 65b9bfe440..db258683cc 100644 --- a/tests/ImageSharp.Tests/TestImages.cs +++ b/tests/ImageSharp.Tests/TestImages.cs @@ -585,8 +585,11 @@ namespace SixLabors.ImageSharp.Tests public const string FlowerRgb888Contiguous = "Tiff/flower-rgb-contig-08.tiff"; public const string FlowerRgb888Planar6Strips = "Tiff/flower-rgb-planar-08-6strips.tiff"; public const string FlowerRgb888Planar15Strips = "Tiff/flower-rgb-planar-08-15strips.tiff"; - public const string FlowerYCbCr888Contiguous = "Tiff/flower-ycbcr-contig-08.tiff"; - public const string FlowerYCbCr888Planar = "Tiff/flower-ycbcr-planar-08.tiff"; + public const string FlowerYCbCr888Contiguous = "Tiff/flower-ycbcr-contig-08_h1v1.tiff"; + public const string FlowerYCbCr888Planar = "Tiff/flower-ycbcr-planar-08_h1v1.tiff"; + public const string FlowerYCbCr888Contiguoush2v1 = "Tiff/flower-ycbcr-contig-08_h2v1.tiff"; + public const string FlowerYCbCr888Contiguoush2v2 = "Tiff/flower-ycbcr-contig-08_h2v2.tiff"; + public const string FlowerYCbCr888Contiguoush4v4 = "Tiff/flower-ycbcr-contig-08_h4v4.tiff"; public const string RgbYCbCr888Contiguoush1v1 = "Tiff/rgb-ycbcr-contig-08_h1v1.tiff"; public const string RgbYCbCr888Contiguoush2v1 = "Tiff/rgb-ycbcr-contig-08_h2v1.tiff"; public const string RgbYCbCr888Contiguoush2v2 = "Tiff/rgb-ycbcr-contig-08_h2v2.tiff"; diff --git a/tests/Images/Input/Tiff/flower-ycbcr-contig-08.tiff b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h1v1.tiff similarity index 100% rename from tests/Images/Input/Tiff/flower-ycbcr-contig-08.tiff rename to tests/Images/Input/Tiff/flower-ycbcr-contig-08_h1v1.tiff diff --git a/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v1.tiff b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v1.tiff new file mode 100644 index 0000000000..f5133b9f3c --- /dev/null +++ b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v1.tiff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:270e0331818a755f5fac600172eacbcbebda86f93f521bfc8d75f4b8bc530177 +size 6944 diff --git a/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v2.tiff b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v2.tiff new file mode 100644 index 0000000000..98fb13d66a --- /dev/null +++ b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h2v2.tiff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ef6ebc9dfe72fbe6ed65ebfc2465ebb18f326119a640faf3301aa4cfa31990f +size 5464 diff --git a/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h4v4.tiff b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h4v4.tiff new file mode 100644 index 0000000000..79aace2a32 --- /dev/null +++ b/tests/Images/Input/Tiff/flower-ycbcr-contig-08_h4v4.tiff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5ea966cc7b823a5d228b49cdc55a261353f73b1eb94a218f1c68321d757e25f +size 4342 diff --git a/tests/Images/Input/Tiff/flower-ycbcr-planar-08.tiff b/tests/Images/Input/Tiff/flower-ycbcr-planar-08_h1v1.tiff similarity index 100% rename from tests/Images/Input/Tiff/flower-ycbcr-planar-08.tiff rename to tests/Images/Input/Tiff/flower-ycbcr-planar-08_h1v1.tiff