Merge pull request #627 from Sergio0694/dev/update-imagesharp
Update ImageSharp from 2.1.4 to 3.0.2
このコミットが含まれているのは:
10ファイル変更
+18
-18
検索条件に一致するファイルはありません
@@ -9,9 +9,9 @@
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Primitives\Complex64.cs" Link="Imaging\Primitives\Complex64.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Primitives\ComplexVector4.cs" Link="Imaging\Primitives\ComplexVector4.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor.cs" Link="Imaging\Processors\HlslBokehBlurProcessor.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslBokehBlurProcessor{TPixel}.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor.Implementation.cs" Link="Imaging\Processors\HlslBokehBlurProcessor.Implementation.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor{TPixel}.cs" />
|
||||
<Compile Include="..\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.Implementation.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.Implementation.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -21,7 +21,7 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.6" />
|
||||
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.2.1" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.4" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.2.1" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.4" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
差分なしでファイル名を変更。
差分なしでファイル名を変更。
@@ -11,7 +11,7 @@
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
|
||||
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
|
||||
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.4" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
|
||||
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -999,7 +999,7 @@ public partial class ComputeContextTests
|
||||
string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png");
|
||||
string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080.png");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(originalPath);
|
||||
ImageInfo imageInfo = Image.Identify(originalPath);
|
||||
|
||||
using Image<ImageSharpRgba32> sampled = Image.Load<ImageSharpRgba32>(Path.Combine(assetsPath, sampledPath));
|
||||
|
||||
@@ -1051,7 +1051,7 @@ public partial class ComputeContextTests
|
||||
string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png");
|
||||
string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080.png");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(originalPath);
|
||||
ImageInfo imageInfo = Image.Identify(originalPath);
|
||||
|
||||
using Image<ImageSharpRgba32> sampled = Image.Load<ImageSharpRgba32>(Path.Combine(assetsPath, sampledPath));
|
||||
|
||||
@@ -1130,7 +1130,7 @@ public partial class ComputeContextTests
|
||||
string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png");
|
||||
string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080AndDashing.png");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(originalPath);
|
||||
ImageInfo imageInfo = Image.Identify(originalPath);
|
||||
|
||||
using Image<ImageSharpRgba32> sampled = Image.Load<ImageSharpRgba32>(Path.Combine(assetsPath, sampledPath));
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
|
||||
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
|
||||
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.4" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
|
||||
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Primitives\Complex64.cs" Link="Imaging\Primitives\Complex64.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Primitives\ComplexVector4.cs" Link="Imaging\Primitives\ComplexVector4.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor.cs" Link="Imaging\Processors\HlslBokehBlurProcessor.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslBokehBlurProcessor{TPixel}.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor.Implementation.cs" Link="Imaging\Processors\HlslBokehBlurProcessor.Implementation.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor{TPixel}.cs" />
|
||||
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.Implementation.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.Implementation.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -39,9 +39,9 @@ internal static class TolerantImageComparer
|
||||
public static void AssertEqual<TPixel>(Image<TPixel> expected, Image<TPixel> actual, float threshold)
|
||||
where TPixel : unmanaged, IPixel<TPixel>
|
||||
{
|
||||
if (expected.Size() != actual.Size())
|
||||
if (expected.Size != actual.Size)
|
||||
{
|
||||
Assert.Fail($"The input images have different sizes: {expected.Size()} and {actual.Size()}");
|
||||
Assert.Fail($"The input images have different sizes: {expected.Size} and {actual.Size}");
|
||||
}
|
||||
|
||||
if (expected.Frames.Count != actual.Frames.Count ||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class ImagingTests
|
||||
{
|
||||
string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(path);
|
||||
ImageInfo imageInfo = Image.Identify(path);
|
||||
|
||||
using Texture2D<Rgba32> texture = device.Get().AllocateTexture2D<Rgba32>(textureType, imageInfo.Width, imageInfo.Height);
|
||||
using UploadTexture2D<Rgba32> upload = device.Get().AllocateUploadTexture2D<Rgba32>(imageInfo.Width, imageInfo.Height);
|
||||
@@ -102,7 +102,7 @@ public class ImagingTests
|
||||
{
|
||||
string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(path);
|
||||
ImageInfo imageInfo = Image.Identify(path);
|
||||
|
||||
using Texture2D<Rgba32> texture = device.Get().AllocateTexture2D<Rgba32>(textureType, imageInfo.Width, imageInfo.Height);
|
||||
using UploadTexture2D<Rgba32> upload = device.Get().AllocateUploadTexture2D<Rgba32>(imageInfo.Width, imageInfo.Height);
|
||||
@@ -144,7 +144,7 @@ public class ImagingTests
|
||||
{
|
||||
string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(path);
|
||||
ImageInfo imageInfo = Image.Identify(path);
|
||||
|
||||
using Texture2D<Rgba32> texture = device.Get().AllocateTexture2D<Rgba32>(textureType, imageInfo.Width, imageInfo.Height);
|
||||
using UploadTexture2D<Rgba32> upload = device.Get().AllocateUploadTexture2D<Rgba32>(imageInfo.Width, imageInfo.Height);
|
||||
|
||||
@@ -161,7 +161,7 @@ public class ShadersTests
|
||||
|
||||
string expectedPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Assets", $"{shaderType.Name}.png");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(expectedPath);
|
||||
ImageInfo imageInfo = Image.Identify(expectedPath);
|
||||
|
||||
using Image<ImageSharpRgba32> image = new(imageInfo.Width, imageInfo.Height);
|
||||
|
||||
@@ -237,7 +237,7 @@ public class ShadersTests
|
||||
|
||||
string expectedPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Assets", $"{shaderType.Name}.png");
|
||||
|
||||
IImageInfo imageInfo = Image.Identify(expectedPath);
|
||||
ImageInfo imageInfo = Image.Identify(expectedPath);
|
||||
|
||||
using Image<ImageSharpRgba32> image = new(imageInfo.Width, imageInfo.Height);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする