From 5b03fb78299408eecd46b691ef6ecdf1d0b6c82a Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sun, 27 Aug 2017 01:21:30 +0200 Subject: [PATCH] renaming files --- .../GolangPort/{OldJpegConstants.cs => OrigJpegConstants.cs} | 0 .../GolangPort/{OldJpegDecoder.cs => OrigJpegDecoder.cs} | 0 .../{OldJpegDecoderCore.cs => OrigJpegDecoderCore.cs} | 0 .../ReferenceImplementationsTests.FastFloatingPointDCT.cs | 5 +++-- 4 files changed, 3 insertions(+), 2 deletions(-) rename src/ImageSharp/Formats/Jpeg/GolangPort/{OldJpegConstants.cs => OrigJpegConstants.cs} (100%) rename src/ImageSharp/Formats/Jpeg/GolangPort/{OldJpegDecoder.cs => OrigJpegDecoder.cs} (100%) rename src/ImageSharp/Formats/Jpeg/GolangPort/{OldJpegDecoderCore.cs => OrigJpegDecoderCore.cs} (100%) diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegConstants.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs similarity index 100% rename from src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegConstants.cs rename to src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoder.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoder.cs similarity index 100% rename from src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoder.cs rename to src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoder.cs diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs similarity index 100% rename from src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoderCore.cs rename to src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs diff --git a/tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs b/tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs index d3149d2b5c..1babb4f144 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs @@ -25,6 +25,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg public void LLM_ForwardThenInverse(int seed, int startAt) { int[] data = JpegUtilityTestFixture.Create8x8RandomIntData(-1000, 1000, seed); + float[] original = data.ConvertAllToFloat(); float[] src = data.ConvertAllToFloat(); float[] dest = new float[64]; float[] temp = new float[64]; @@ -32,7 +33,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg ReferenceImplementations.LLM_FloatingPoint_DCT.fDCT2D_llm(src, dest, temp, true); ReferenceImplementations.LLM_FloatingPoint_DCT.iDCT2D_llm(dest, src, temp); - this.CompareBlocks(data.ConvertAllToFloat(), src, 2f); + this.CompareBlocks(original, src, 0.1f); } // [Fact] @@ -58,7 +59,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg Block8x8F actual = ReferenceImplementations.LLM_FloatingPoint_DCT.TransformIDCT(ref source); - this.CompareBlocks(expected, actual, 1f); + this.CompareBlocks(expected, actual, 0.1f); } [Theory]