Browse Source

Use better test image for float pixel type created with reference encoder

pull/3124/head
Brian Popow 3 weeks ago
parent
commit
7d38e50d3f
  1. 3
      tests/ImageSharp.Tests/Formats/Exr/ExrDecoderTests.cs
  2. 2
      tests/ImageSharp.Tests/TestImages.cs
  3. 3
      tests/Images/Input/Exr/Calliphora_float_uncompressed.exr
  4. 3
      tests/Images/Input/Exr/rgb_float32_uncompressed.exr

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

@ -36,8 +36,7 @@ public class ExrDecoderTests
ExrMetadata exrMetaData = image.Metadata.GetExrMetadata();
image.DebugSave(provider);
// There is a 0,0059% difference to the Reference decoder.
image.CompareToOriginal(provider, ImageComparer.Tolerant(0.0005f), ReferenceDecoder);
image.CompareToOriginal(provider, ImageComparer.Exact, ReferenceDecoder);
Assert.Equal(ExrPixelType.Float, exrMetaData.PixelType);
}

2
tests/ImageSharp.Tests/TestImages.cs

@ -1388,7 +1388,7 @@ public static class TestImages
public const string Benchmark = "Exr/Calliphora_benchmark.exr";
public const string Uncompressed = "Exr/Calliphora_uncompressed.exr";
public const string UncompressedRgba = "Exr/Calliphora_uncompressed_rgba.exr";
public const string UncompressedFloatRgb = "Exr/rgb_float32_uncompressed.exr";
public const string UncompressedFloatRgb = "Exr/Calliphora_float_uncompressed.exr";
public const string UncompressedUintRgb = "Exr/Calliphora_uint32_uncompressed.exr";
public const string UintRgba = "Exr/rgba_uint_uncompressed.exr";
public const string Zip = "Exr/Calliphora_zip.exr";

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

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:926996c647c1c54921db0a623e58e5edeb92b447cb4eceb53b8c0e86fd24f11e
size 720281

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

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