|
|
|
@ -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)] |
|
|
|
|