Browse Source

void methods

af/merge-core
James Jackson-South 8 years ago
parent
commit
09d29f59ef
  1. 14
      src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/ScanDecoder.cs

14
src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/ScanDecoder.cs

@ -362,7 +362,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
} }
} }
private int DecodeBlock( private void DecodeBlock(
PdfJsFrameComponent component, PdfJsFrameComponent component,
ref short blockDataRef, ref short blockDataRef,
ref PdfJsHuffmanTable dcTable, ref PdfJsHuffmanTable dcTable,
@ -436,11 +436,9 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
} }
} }
} while (k < 64); } while (k < 64);
return 1;
} }
private int DecodeBlockProgressiveDC( private void DecodeBlockProgressiveDC(
PdfJsFrameComponent component, PdfJsFrameComponent component,
ref short blockDataRef, ref short blockDataRef,
ref PdfJsHuffmanTable dcTable) ref PdfJsHuffmanTable dcTable)
@ -471,11 +469,9 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
blockDataRef += (short)(1 << this.successiveLow); blockDataRef += (short)(1 << this.successiveLow);
} }
} }
return 1;
} }
private int DecodeBlockProgressiveAC( private void DecodeBlockProgressiveAC(
ref short blockDataRef, ref short blockDataRef,
ref PdfJsHuffmanTable acTable, ref PdfJsHuffmanTable acTable,
ReadOnlySpan<short> fastAc) ReadOnlySpan<short> fastAc)
@ -494,7 +490,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
if (this.eobrun != 0) if (this.eobrun != 0)
{ {
this.eobrun--; this.eobrun--;
return 1; return;
} }
k = this.spectralStart; k = this.spectralStart;
@ -672,8 +668,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
while (k <= this.spectralEnd); while (k <= this.spectralEnd);
} }
} }
return 1;
} }
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]

Loading…
Cancel
Save