|
|
|
@ -34,26 +34,13 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
|
|
|
|
this.CompareBlocks(data.ConvertAllToFloat(), src, 2f); |
|
|
|
} |
|
|
|
|
|
|
|
//[Theory(Skip = "Sandboxing only! (Incorrect reference implementation)")]
|
|
|
|
//[InlineData(42)]
|
|
|
|
//[InlineData(1)]
|
|
|
|
//[InlineData(2)]
|
|
|
|
//public void IDCT_IsEquivalentTo_StandardIntegerImplementation(int seed)
|
|
|
|
//{
|
|
|
|
// int[] intData = JpegUtilityTestFixture.Create8x8RandomIntData(-1000, 1000, seed);
|
|
|
|
// Span<float> floatSrc = intData.ConvertAllToFloat();
|
|
|
|
|
|
|
|
// ReferenceImplementations.StandardIntegerDCT.TransformIDCTInplace(intData);
|
|
|
|
|
|
|
|
// float[] dest = new float[64];
|
|
|
|
// float[] temp = new float[64];
|
|
|
|
|
|
|
|
// ReferenceImplementations.FastFloatingPointDCT.iDCT2D_llm(floatSrc, dest, temp);
|
|
|
|
|
|
|
|
// this.CompareBlocks(intData.ConvertAllToFloat(), dest, 1f);
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
// [Fact]
|
|
|
|
public void CalcConstants() |
|
|
|
{ |
|
|
|
ReferenceImplementations.FastFloatingPointDCT.PrintConstants(this.Output); |
|
|
|
} |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[InlineData(42, 1000)] |
|
|
|
[InlineData(1, 1000)] |
|
|
|
@ -76,25 +63,6 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
this.CompareBlocks(intData.ConvertAllToFloat(), dest, 1f); |
|
|
|
} |
|
|
|
|
|
|
|
//[Theory]
|
|
|
|
//[InlineData(42)]
|
|
|
|
//[InlineData(1)]
|
|
|
|
//[InlineData(2)]
|
|
|
|
//public void FDCT_IsEquivalentTo_StandardIntegerImplementation(int seed)
|
|
|
|
//{
|
|
|
|
// int[] intData = JpegUtilityTestFixture.Create8x8RandomIntData(-1000, 1000, seed);
|
|
|
|
// float[] floatSrc = intData.ConvertAllToFloat();
|
|
|
|
|
|
|
|
// ReferenceImplementations.StandardIntegerDCT.Subtract128_TransformFDCT_Upscale8_Inplace(intData);
|
|
|
|
|
|
|
|
// float[] dest = new float[64];
|
|
|
|
// float[] temp = new float[64];
|
|
|
|
|
|
|
|
// ReferenceImplementations.FastFloatingPointDCT.fDCT2D_llm(floatSrc, dest, temp, subtract128FromSource: true);
|
|
|
|
|
|
|
|
// this.CompareBlocks(intData.ConvertAllToFloat(), dest, 2f);
|
|
|
|
//}
|
|
|
|
|
|
|
|
[Theory] |
|
|
|
[InlineData(42)] |
|
|
|
[InlineData(1)] |
|
|
|
|