Browse Source
Update src/ImageSharp/Formats/Webp/AlphaDecoder.cs
Co-authored-by: Günther Foidl <gue@korporal.at>
pull/2676/head
James Jackson-South
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Formats/Webp/AlphaDecoder.cs
|
|
|
@ -311,7 +311,7 @@ internal class AlphaDecoder : IDisposable |
|
|
|
|
|
|
|
private static void HorizontalUnfilter(Span<byte> prev, Span<byte> input, Span<byte> dst, int width) |
|
|
|
{ |
|
|
|
// TODO: Investigate AdvSim support for this method.
|
|
|
|
// TODO: Investigate AdvSimd support for this method.
|
|
|
|
if (Sse2.IsSupported && width >= 9) |
|
|
|
{ |
|
|
|
dst[0] = (byte)(input[0] + (prev.IsEmpty ? 0 : prev[0])); |
|
|
|
|