mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
using System.Numerics;
|
|
using ImageSharp.Formats;
|
|
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace ImageSharp.Tests.Formats.Jpg
|
|
{
|
|
public class DctTests : UtilityTestClassBase
|
|
{
|
|
public DctTests(ITestOutputHelper output)
|
|
: base(output)
|
|
{
|
|
}
|
|
|
|
[Fact]
|
|
public void Mennyi()
|
|
{
|
|
Output.WriteLine(Vector.IsHardwareAccelerated.ToString());
|
|
Output.WriteLine(Vector<float>.Count.ToString());
|
|
}
|
|
|
|
[Fact]
|
|
public void CheckTestData()
|
|
{
|
|
var data = Create8x8FloatData();
|
|
|
|
Print8x8Data(data);
|
|
}
|
|
|
|
[Fact]
|
|
public void Transpose8x8()
|
|
{
|
|
var data = Create8x8FloatData();
|
|
|
|
MutableSpan<float> result = new MutableSpan<float>(64);
|
|
|
|
ReferenceImplementations.Transpose8x8(data, result);
|
|
|
|
Print8x8Data(result.Data);
|
|
}
|
|
|
|
[Fact]
|
|
public void Transpose8x8_Inplace()
|
|
{
|
|
var data = Create8x8FloatData();
|
|
|
|
ReferenceImplementations.Transpose8x8(data);
|
|
|
|
Print8x8Data(data);
|
|
}
|
|
|
|
|
|
}
|
|
}
|