Skip to content

Commit

Permalink
Add missing premultiply
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnerj committed Nov 17, 2021
1 parent 69c30f8 commit 2019922
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ private void Convolve4(int y, Span<Vector4> span)

PixelOperations<TPixel>.Instance.ToVector4(this.configuration, sourceRow, sourceBuffer);

Numerics.Premultiply(sourceBuffer);

ref Vector4 sourceBase = ref MemoryMarshal.GetReference(sourceBuffer);
ref Vector4 sourceEnd = ref Unsafe.Add(ref sourceBase, sourceBuffer.Length);
ref Vector4 targetStart = ref targetBase;
Expand Down

0 comments on commit 2019922

Please sign in to comment.