Browse Source

Fix warnings

pull/1567/head
Brian Popow 4 years ago
parent
commit
67ed4ce614
  1. 13
      src/ImageSharp/ColorSpaces/Conversion/Implementation/Icc/Calculators/ClutCalculator.cs

13
src/ImageSharp/ColorSpaces/Conversion/Implementation/Icc/Calculators/ClutCalculator.cs

@ -22,11 +22,11 @@ internal class ClutCalculator : IVector4Calculator
private readonly int[] dimSize; private readonly int[] dimSize;
private readonly int nodeCount; private readonly int nodeCount;
private readonly float[][] nodes; private readonly float[][] nodes;
float[] g; private readonly float[] g;
uint[] ig; private readonly uint[] ig;
float[] s; private readonly float[] s;
float[] df; private readonly float[] df;
private uint[] nPower; private readonly uint[] nPower;
private int n000; private int n000;
private int n001; private int n001;
private int n010; private int n010;
@ -237,6 +237,7 @@ internal class ClutCalculator : IVector4Calculator
ix--; ix--;
u = 1.0f; u = 1.0f;
} }
if (iy == my) if (iy == my)
{ {
iy--; iy--;
@ -258,7 +259,7 @@ internal class ClutCalculator : IVector4Calculator
int offset = 0; int offset = 0;
for (i = 0; i < this.outputCount; i++) for (i = 0; i < this.outputCount; i++)
{ {
float pv = (p[offset + this.n000] * dF0) + (p[offset + this.n001] * dF1) + (p[ offset + this.n010] * dF2) + (p[offset + this.n011] * dF3); float pv = (p[offset + this.n000] * dF0) + (p[offset + this.n001] * dF1) + (p[offset + this.n010] * dF2) + (p[offset + this.n011] * dF3);
destPixel[i] = pv; destPixel[i] = pv;
offset++; offset++;

Loading…
Cancel
Save