Browse Source

Update ResizeKernelMap.cs

pull/2793/head
James Jackson-South 2 years ago
parent
commit
8c19a979ea
  1. 3
      src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeKernelMap.cs

3
src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeKernelMap.cs

@ -5,7 +5,6 @@ using System.Buffers;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Processing.Processors.Transforms;
@ -52,7 +51,7 @@ internal partial class ResizeKernelMap : IDisposable
this.DestinationLength = destinationLength;
this.MaxDiameter = (radius * 2) + 1;
if (Vector256.IsHardwareAccelerated)
if (ResizeKernel.SupportsVectorization)
{
this.data = memoryAllocator.Allocate2D<float>(this.MaxDiameter * 4, bufferHeight, preferContiguosImageBuffers: true);
}

Loading…
Cancel
Save