Browse Source

Removed unnecessary comments

pull/2401/head
Günther Foidl 3 years ago
parent
commit
a95ab17680
  1. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor2.cs
  2. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor4.cs
  3. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs
  4. 4
      src/ImageSharp/Formats/Jpeg/Components/ScaledFloatingPointDCT.cs

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor2.cs

@ -25,7 +25,7 @@ internal sealed class DownScalingComponentProcessor2 : ComponentProcessor
Buffer2D<Block8x8> spectralBuffer = this.Component.SpectralBlocks;
float maximumValue = this.Frame.MaxColorChannelValue;
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F); // /2
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F);
int destAreaStride = this.ColorBuffer.Width;

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor4.cs

@ -25,7 +25,7 @@ internal sealed class DownScalingComponentProcessor4 : ComponentProcessor
Buffer2D<Block8x8> spectralBuffer = this.Component.SpectralBlocks;
float maximumValue = this.Frame.MaxColorChannelValue;
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F); // /2
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F);
int destAreaStride = this.ColorBuffer.Width;

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs

@ -22,7 +22,7 @@ internal sealed class DownScalingComponentProcessor8 : ComponentProcessor
Buffer2D<Block8x8> spectralBuffer = this.Component.SpectralBlocks;
float maximumValue = this.Frame.MaxColorChannelValue;
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F); // /2
float normalizationValue = MathF.Ceiling(maximumValue * 0.5F);
int destAreaStride = this.ColorBuffer.Width;

4
src/ImageSharp/Formats/Jpeg/Components/ScaledFloatingPointDCT.cs

@ -183,8 +183,8 @@ internal static class ScaledFloatingPointDCT
// temporal result is saved to +2 shifted indices
// because result is saved into the top left 2x2 region of the
// input block
block[(ctr * 8) + 2] = (tmp10 + tmp0) * 0.25F; // /4
block[(ctr * 8) + 3] = (tmp10 - tmp0) * 0.25F; // /4
block[(ctr * 8) + 2] = (tmp10 + tmp0) * 0.25F;
block[(ctr * 8) + 3] = (tmp10 - tmp0) * 0.25F;
}
for (int ctr = 0; ctr < 2; ctr++)

Loading…
Cancel
Save