Browse Source

Reduce number of errors

pull/3153/head
winscripter 4 weeks ago
parent
commit
048945c5d8
  1. 4
      src/ImageSharp/Formats/Jxl/Processing/Butteraugli/Butteraugli.cs
  2. 4
      src/ImageSharp/Formats/Jxl/Processing/JxlColorCorrelationMap.cs

4
src/ImageSharp/Formats/Jxl/Processing/Butteraugli/Butteraugli.cs

@ -2069,7 +2069,7 @@ internal static class Butteraugli
}
using JxlPlane<float> blockDiffDc = JxlImageF.Create(configuration, xSize, ySize);
blockDiffDc.ZeroFill();
blockDiffDc.Clear();
// LF/DC
using (JxlImage3F lf0 = new(configuration, xSize, ySize))
@ -2109,7 +2109,7 @@ internal static class Butteraugli
}
using JxlImageF blockDiffAc = new(configuration, xSize, ySize);
blockDiffAc.ZeroFill();
blockDiffAc.Clear();
using (JxlImageF diffs = new(configuration, xSize, ySize))
{

4
src/ImageSharp/Formats/Jxl/Processing/JxlColorCorrelationMap.cs

@ -28,8 +28,8 @@ internal sealed class JxlColorCorrelationMap
map.YToXMap = new JxlImageSB(configuration, xBlocks, yBlocks);
map.YToBMap = new JxlImageSB(configuration, xBlocks, yBlocks);
ZeroFillImage(map.YToXMap);
ZeroFillImage(map.YToBMap);
map.YToXMap.Clear();
map.YToBMap.Clear();
if (!xyb)
{

Loading…
Cancel
Save