diff --git a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs index bc17378c88..63fbca98a9 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs @@ -140,7 +140,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution [MethodImpl(InliningOptions.ShortMethod)] public void Invoke(int y, Span span) { - ref Vector4 spanRef = ref MemoryMarshal.GetReference(span); + ref Vector4 targetRef = ref MemoryMarshal.GetReference(span); Span targetRowSpan = this.targetPixels.GetRowSpan(y).Slice(this.bounds.X); PixelOperations.Instance.ToVector4(this.configuration, targetRowSpan.Slice(0, span.Length), span); Span yOffsets = this.map.GetYOffsetSpan(); @@ -156,7 +156,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution yOffsets, xOffsets, this.sourcePixels, - ref spanRef, + ref targetRef, row, column); } @@ -170,7 +170,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution yOffsets, xOffsets, this.sourcePixels, - ref spanRef, + ref targetRef, row, column); } diff --git a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs index b2c5de396f..ae2e8893f7 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs @@ -107,11 +107,11 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution [MethodImpl(InliningOptions.ShortMethod)] public void Invoke(int y, Span span) { - ref Vector4 spanRef = ref MemoryMarshal.GetReference(span); + ref Vector4 targetRef = ref MemoryMarshal.GetReference(span); Span targetRowSpan = this.targetPixels.GetRowSpan(y).Slice(this.bounds.X); PixelOperations.Instance.ToVector4(this.configuration, targetRowSpan.Slice(0, span.Length), span); - Span yOffsetSpan = this.map.GetYOffsetSpan(); - Span xOffsetSpan = this.map.GetXOffsetSpan(); + Span yOffsets = this.map.GetYOffsetSpan(); + Span xOffsets = this.map.GetXOffsetSpan(); int row = y - this.bounds.Y; if (this.preserveAlpha) @@ -120,10 +120,10 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution { DenseMatrixUtils.Convolve3( in this.kernel, - yOffsetSpan, - xOffsetSpan, + yOffsets, + xOffsets, this.sourcePixels, - ref spanRef, + ref targetRef, row, column); } @@ -134,10 +134,10 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution { DenseMatrixUtils.Convolve4( in this.kernel, - yOffsetSpan, - xOffsetSpan, + yOffsets, + xOffsets, this.sourcePixels, - ref spanRef, + ref targetRef, row, column); }