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 59903aa commit 56890ba
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 56890ba

Please sign in to comment.