-
-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
// ReSharper disable InconsistentNaming | ||
using System.Runtime.InteropServices; | ||
using System.Runtime.Intrinsics.X86; | ||
using SixLabors.ImageSharp.Formats; | ||
using SixLabors.ImageSharp.Formats.Tiff; | ||
using SixLabors.ImageSharp.Metadata; | ||
|
@@ -686,6 +687,33 @@ public void TiffDecoder_ThrowsException_WithTooManyDirectories<TPixel>(TestImage | |
public void TiffDecoder_CanDecode_Fax4CompressedWithStrips<TPixel>(TestImageProvider<TPixel> provider) | ||
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider); | ||
|
||
Check warning on line 689 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, ubuntu-latest, net7.0, 7.0.x, true, -x64, false)
Check warning on line 689 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, ubuntu-latest, net6.0, 6.0.x, -x64, false)
Check warning on line 689 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, windows-latest, net6.0, 6.0.x, -x64, false)
Check warning on line 689 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, windows-latest, net7.0, 7.0.x, true, -x64, false)
|
||
|
||
[Theory] | ||
[WithFile(JpegCompressedGray0000539558, PixelTypes.Rgba32)] | ||
public void TiffDecoder_ThrowsException_WithCircular_IFD_Offsets<TPixel>(TestImageProvider<TPixel> provider) | ||
where TPixel : unmanaged, IPixel<TPixel> | ||
=> Assert.Throws<ImageFormatException>( | ||
() => | ||
{ | ||
using (provider.GetImage(TiffDecoder.Instance)) | ||
{ | ||
} | ||
}); | ||
|
||
[Theory] | ||
[WithFile(Tiled0000023664, PixelTypes.Rgba32)] | ||
public void TiffDecoder_CanDecode_TiledWithBadZlib<TPixel>(TestImageProvider<TPixel> provider) | ||
where TPixel : unmanaged, IPixel<TPixel> | ||
{ | ||
using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance); | ||
|
||
// ImageMagick cannot decode this image. | ||
image.DebugSave(provider); | ||
image.CompareToReferenceOutput( | ||
ImageComparer.Exact, | ||
provider, | ||
appendPixelTypeToFileName: false); | ||
} | ||
Check warning on line 716 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, ubuntu-latest, net6.0, 6.0.x, -x64, false)
Check warning on line 716 in tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs GitHub Actions / Build (false, windows-latest, net6.0, 6.0.x, -x64, false)
|
||
[Theory] | ||
[WithFileCollection(nameof(MultiframeTestImages), PixelTypes.Rgba32)] | ||
public void DecodeMultiframe<TPixel>(TestImageProvider<TPixel> provider) | ||
|