From 482ef61b5e5fe05b01ff15f9d82d6f5d0fdda36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Foidl?= Date: Wed, 18 May 2022 15:50:26 +0200 Subject: [PATCH] Fixed single line comment rule violation by inserting a blank line --- src/ImageSharp/Formats/Webp/Lossy/QuantEnc.cs | 1 + src/ImageSharp/Formats/Webp/Lossy/Vp8Encoding.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ImageSharp/Formats/Webp/Lossy/QuantEnc.cs b/src/ImageSharp/Formats/Webp/Lossy/QuantEnc.cs index e1c1ee557..0938ecec3 100644 --- a/src/ImageSharp/Formats/Webp/Lossy/QuantEnc.cs +++ b/src/ImageSharp/Formats/Webp/Lossy/QuantEnc.cs @@ -557,6 +557,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy // if (coeff > 2047) coeff = 2047 out0 = Avx2.Min(out0, Vector256.Create((short)MaxLevel)); + // Put the sign back. out0 = Avx2.Sign(out0, input0); diff --git a/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoding.cs b/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoding.cs index eb2ac3bcb..4e6e8fd8a 100644 --- a/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoding.cs +++ b/src/ImageSharp/Formats/Webp/Lossy/Vp8Encoding.cs @@ -553,6 +553,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy // [ (a0 + a1) << 3, ... ] Vector128 tmp0 = Sse2.MultiplyAddAdjacent(a01, Vector128.Create(8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0).AsInt16()); // K88p + // [ (a0 - a1) << 3, ... ] Vector128 tmp2 = Sse2.MultiplyAddAdjacent(a01, Vector128.Create(8, 0, 248, 255, 8, 0, 248, 255, 8, 0, 248, 255, 8, 0, 248, 255).AsInt16()); // K88m Vector128 tmp11 = Sse2.MultiplyAddAdjacent(a32, Vector128.Create(232, 20, 169, 8, 232, 20, 169, 8, 232, 20, 169, 8, 232, 20, 169, 8).AsInt16()); // K5352_2217p