Skip to content

Commit 50013d7

Browse files
Update src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs
Reverse access to dc Co-authored-by: James Jackson-South <james_south@hotmail.com>
1 parent 84732bf commit 50013d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,10 @@ public static void Mean16x4(Span<byte> input, Span<uint> dc)
969969
Vector128<short> hadd = Ssse3.HorizontalAdd(f0.AsInt16(), f0.AsInt16());
970970
Vector64<short> lower = hadd.GetLower();
971971

972-
dc[0] = (uint)lower.GetElement(0);
973-
dc[1] = (uint)lower.GetElement(1);
974-
dc[2] = (uint)lower.GetElement(2);
975972
dc[3] = (uint)lower.GetElement(3);
973+
dc[2] = (uint)lower.GetElement(2);
974+
dc[1] = (uint)lower.GetElement(1);
975+
dc[0] = (uint)lower.GetElement(0);
976976
}
977977
else
978978
#endif

0 commit comments

Comments
 (0)