Browse Source

Only DebugSave testimages with bit depth >= 24

pull/1724/head
Brian Popow 5 years ago
parent
commit
f20a16593c
  1. 28
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs

28
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs

@ -159,7 +159,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tiff
[WithFile(Flower24BitGray, PixelTypes.Rgba32)]
[WithFile(Flower24BitGrayLittleEndian, PixelTypes.Rgba32)]
public void TiffDecoder_CanDecode_24Bit_Gray<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
where TPixel : unmanaged, IPixel<TPixel>
{
// Note: because the MagickReferenceDecoder fails to load the image, we only debug save them.
using Image<TPixel> image = provider.GetImage();
image.DebugSave(provider);
}
[Theory]
[WithFile(FlowerRgb101010Contiguous, PixelTypes.Rgba32)]
@ -171,7 +176,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tiff
[WithFile(Flower32BitGray, PixelTypes.Rgba32)]
[WithFile(Flower32BitGrayLittleEndian, PixelTypes.Rgba32)]
public void TiffDecoder_CanDecode_32Bit_Gray<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
where TPixel : unmanaged, IPixel<TPixel>
{
// Note: because the MagickReferenceDecoder fails to load the image, we only debug save them.
using Image<TPixel> image = provider.GetImage();
image.DebugSave(provider);
}
[Theory]
[WithFile(FlowerRgb121212Contiguous, PixelTypes.Rgba32)]
@ -199,7 +209,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tiff
[WithFile(FlowerRgb242424Planar, PixelTypes.Rgba32)]
[WithFile(FlowerRgb242424PlanarLittleEndian, PixelTypes.Rgba32)]
public void TiffDecoder_CanDecode_72Bit<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
where TPixel : unmanaged, IPixel<TPixel>
{
// Note: because the MagickReferenceDecoder fails to load the image, we only debug save them.
using Image<TPixel> image = provider.GetImage();
image.DebugSave(provider);
}
[Theory]
[WithFile(FlowerRgb323232Contiguous, PixelTypes.Rgba32)]
@ -207,7 +222,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tiff
[WithFile(FlowerRgb323232Planar, PixelTypes.Rgba32)]
[WithFile(FlowerRgb323232PlanarLittleEndian, PixelTypes.Rgba32)]
public void TiffDecoder_CanDecode_96Bit<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
where TPixel : unmanaged, IPixel<TPixel>
{
// Note: because the MagickReferenceDecoder fails to load the image, we only debug save them.
using Image<TPixel> image = provider.GetImage();
image.DebugSave(provider);
}
[Theory]
[WithFile(GrayscaleDeflateMultistrip, PixelTypes.Rgba32)]

Loading…
Cancel
Save