Browse Source

Add test case for pxr compression with pixel type float

pull/3124/head
Brian Popow 2 weeks ago
parent
commit
efa1f8bbae
  1. 1
      tests/ImageSharp.Tests/Formats/Exr/ExrDecoderTests.cs
  2. 1
      tests/ImageSharp.Tests/TestImages.cs
  3. 3
      tests/Images/Input/Exr/Calliphora_float_pxr24.exr

1
tests/ImageSharp.Tests/Formats/Exr/ExrDecoderTests.cs

@ -121,6 +121,7 @@ public class ExrDecoderTests
[Theory]
[WithFile(TestImages.Exr.Pxr24Half, PixelTypes.Rgba32)]
[WithFile(TestImages.Exr.Pxr24Float, PixelTypes.Rgba32)]
public void ExrDecoder_CanDecode_Pxr24Compressed<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{

1
tests/ImageSharp.Tests/TestImages.cs

@ -1396,6 +1396,7 @@ public static class TestImages
public const string Rle = "Exr/Calliphora_rle.exr";
public const string B44 = "Exr/Calliphora_b44.exr";
public const string Pxr24Half = "Exr/Calliphora_half_pxr24.exr";
public const string Pxr24Float = "Exr/Calliphora_float_pxr24.exr";
public const string Rgb = "Exr/Calliphora_rgb.exr";
public const string Gray = "Exr/Calliphora_gray.exr";
}

3
tests/Images/Input/Exr/Calliphora_float_pxr24.exr

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca6c29eb36395b923298d2bf4ba1f73fd7f081f7b1af2e72b94b92ad2acb638b
size 226997
Loading…
Cancel
Save