Browse Source

VerifySpectralCorrectness_PdfJs now passes...

... Maybe the new quantization tables are incorrect?
af/merge-core
James Jackson-South 8 years ago
parent
commit
87fb52e5aa
  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