Browse Source

Fixed xml docs

pull/1632/head
Dmitry Pentin 5 years ago
parent
commit
7fb8feef50
  1. 2
      shared-infrastructure
  2. 7
      src/ImageSharp/Formats/Jpeg/Components/Encoder/HuffmanScanEncoder.cs

2
shared-infrastructure

@ -1 +1 @@
Subproject commit 25f56531057293e9f1fa8e070b2f780a0c3d7e0c
Subproject commit 1f7ee702812f3a1713ab7f749c0faae0ef139ed7

7
src/ImageSharp/Formats/Jpeg/Components/Encoder/HuffmanScanEncoder.cs

@ -18,7 +18,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
/// </summary>
/// <remarks>
/// This is subject to change, 1024 seems to be the best value in terms of performance.
/// <see cref="Emit(uint, uint)"/> expects it to be at least 8 (see comments in method body).
/// <see cref="Emit(int, int)"/> expects it to be at least 8 (see comments in method body).
/// </remarks>
private const int EmitBufferSizeInBytes = 1024;
@ -374,10 +374,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
int bt = Numerics.MinimumBitsToStore16((uint)a);
this.EmitHuff(index, (runLength << 4) | bt);
if (bt > 0)
{
this.Emit(b & ((1 << bt) - 1), bt);
}
this.Emit(b & ((1 << bt) - 1), bt);
}
}
}

Loading…
Cancel
Save