Browse Source

VerifySpectralCorrectness_PdfJs now passes...

... Maybe the new quantization tables are incorrect?
pull/525/head
James Jackson-South 8 years ago
parent
commit
16e7395e4f
  1. 3
      src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsFrameComponent.cs

3
src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsFrameComponent.cs

@ -136,7 +136,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public int GetBlockBufferOffset(int row, int col)
{
return 64 * (((this.WidthInBlocks + 1) * row) + col);
// return 64 * (((this.WidthInBlocks + 1) * row) + col);
return 64 * ((this.SpectralBlocks.Width * row) + col);
}
}
}
Loading…
Cancel
Save