Browse Source

ref zigzag

af/merge-core
James Jackson-South 8 years ago
parent
commit
1821e69e1b
  1. 4
      src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsScanDecoder.cs

4
src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsScanDecoder.cs

@ -759,7 +759,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
break; break;
} }
byte z = PdfJsQuantizationTables.DctZigZag[k]; ref byte z = ref PdfJsQuantizationTables.DctZigZag[k];
short re = (short)this.ReceiveAndExtend(s, stream); short re = (short)this.ReceiveAndExtend(s, stream);
Unsafe.Add(ref blockDataRef, offset + z) = re; Unsafe.Add(ref blockDataRef, offset + z) = re;
k++; k++;
@ -842,7 +842,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
while (k <= e) while (k <= e)
{ {
byte z = PdfJsQuantizationTables.DctZigZag[k]; ref byte z = ref PdfJsQuantizationTables.DctZigZag[k];
switch (this.successiveACState) switch (this.successiveACState)
{ {
case 0: // Initial state case 0: // Initial state

Loading…
Cancel
Save