Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly improve the isSourcePDF parameter handling in JpegImage (PR 10031 follow-up) #10063

Merged
merged 1 commit into from
Sep 12, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

Currently there's only a single spot in the code-base where JpegImage.getData is called, however it nonetheless seem like a good idea to ensure during tests that the isSourcePDF parameter is correctly set. (Especially considering that the PDF use-cases will break without it.)

Additionally, in JpegImage._getLinearizedBlockData, the code can be made a tiny bit more efficient by checking the value of isSourcePDF first to avoid useless checks (for the default PDF use-cases).

…(PR 10031 follow-up)

Currently there's only a single spot in the code-base where `JpegImage.getData` is called, however it nonetheless seem like a good idea to ensure during tests that the `isSourcePDF` parameter is correctly set. (Especially considering that the PDF use-cases will break without it.)

Additionally, in `JpegImage._getLinearizedBlockData`, the code can be made a tiny bit more efficient by checking the value of `isSourcePDF` *first* to avoid useless checks (for the default PDF use-cases).
@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/370f320dc82dd44/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/59afe19429e45b5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/59afe19429e45b5/output.txt

Total script time: 24.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/59afe19429e45b5/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/370f320dc82dd44/output.txt

Total script time: 36.04 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit 29683d4 into mozilla:master Sep 12, 2018
@timvandermeij
Copy link
Contributor

Looks good to me. Thank you!

@Snuffleupagus Snuffleupagus deleted the JPEG-isSourcePDF-assert branch September 12, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants