|
|
|
@ -19,17 +19,17 @@ public class ExrEncoderTests |
|
|
|
[Theory] |
|
|
|
[WithFile(TestImages.Exr.Uncompressed, PixelTypes.Rgba32)] |
|
|
|
public void ExrEncoder_WithNoCompression_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "NoCompression", compression: ExrCompression.None, imageDecoder: ExrDecoder.Instance); |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "NoCompression", compression: ExrCompression.None); |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[WithFile(TestImages.Exr.Uncompressed, PixelTypes.Rgba32)] |
|
|
|
public void ExrEncoder_WithZipCompression_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "ZipCompression", compression: ExrCompression.Zip, imageDecoder: ExrDecoder.Instance); |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "ZipCompression", compression: ExrCompression.Zip); |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[WithFile(TestImages.Exr.Uncompressed, PixelTypes.Rgba32)] |
|
|
|
public void ExrEncoder_WithZipsCompression_Works<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "ZipsCompression", compression: ExrCompression.Zips, imageDecoder: ExrDecoder.Instance); |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> => TestExrEncoderCore(provider, "ZipsCompression", compression: ExrCompression.Zips); |
|
|
|
|
|
|
|
protected static void TestExrEncoderCore<TPixel>( |
|
|
|
TestImageProvider<TPixel> provider, |
|
|
|
|