Browse Source

Add comment about pixel layout

pull/2028/head
Brian Popow 4 years ago
parent
commit
c01001fddb
  1. 3
      src/ImageSharp/Formats/Png/Filters/AverageFilter.cs

3
src/ImageSharp/Formats/Png/Filters/AverageFilter.cs

@ -32,6 +32,9 @@ namespace SixLabors.ImageSharp.Formats.Png.Filters
// The Avg filter predicts each pixel as the (truncated) average of a and b:
// Average(x) + floor((Raw(x-bpp)+Prior(x))/2)
// With pixels positioned like this:
// prev: c b
// row: a d
#if SUPPORTS_RUNTIME_INTRINSICS
if (Sse2.IsSupported && bytesPerPixel is 4)
{

Loading…
Cancel
Save