Browse Source

Explicit in

js/color-alpha-handling
James Jackson-South 5 years ago
parent
commit
25d3d817cd
  1. 2
      src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs
  2. 2
      src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs

2
src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs

@ -144,7 +144,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution
Span<TPixel> targetRowSpan = this.targetPixels.GetRowSpan(y).Slice(this.bounds.X);
PixelOperations<TPixel>.Instance.ToVector4(this.configuration, targetRowSpan.Slice(0, span.Length), span);
var state = new ConvolutionState(this.kernel, this.map);
var state = new ConvolutionState(in this.kernel, this.map);
int row = y - this.bounds.Y;
if (this.preserveAlpha)

2
src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs

@ -111,7 +111,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution
Span<TPixel> targetRowSpan = this.targetPixels.GetRowSpan(y).Slice(this.bounds.X);
PixelOperations<TPixel>.Instance.ToVector4(this.configuration, targetRowSpan.Slice(0, span.Length), span);
var state = new ConvolutionState(this.kernel, this.map);
var state = new ConvolutionState(in this.kernel, this.map);
int row = y - this.bounds.Y;
if (this.preserveAlpha)

Loading…
Cancel
Save