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

Refactor searching for the SOI marker of inline JPEG image streams #5508

Merged
merged 1 commit into from
Dec 15, 2014
Merged

Refactor searching for the SOI marker of inline JPEG image streams #5508

merged 1 commit into from
Dec 15, 2014

Conversation

Snuffleupagus
Copy link
Collaborator

This patch refactors the approach used in PR #5286 to be more generic (and also let us remove one TODO from the codebase).

@CodingFabian
Copy link
Contributor

looks like a great fix if regression tests pass. you have the power to trigger botio?

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/92b0b550592296e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/93fe40c417a2890/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/92b0b550592296e/output.txt

Total script time: 3.26 mins

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

Image differences available at: http://107.22.172.223:8877/92b0b550592296e/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

@yurydelendik Could you kick the Windows bot again?

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/93fe40c417a2890/output.txt

Total script time: 23.93 mins

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

@yurydelendik
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/3fa0e8ff163f33f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/3fa0e8ff163f33f/output.txt

Total script time: 20.27 mins

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

// Some images may contain 'junk' before the SOI (start-of-image) marker.
// Note: this seems to mainly affect inline images.
var ch;
while ((ch = stream.getByte()) !== 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is '1' a typo? looks like it shall be '-1' (EOF). if it's -1, make if ch < 0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that should have been -1. I have no idea how I missed that, thanks for noticing!

@yurydelendik yurydelendik self-assigned this Dec 5, 2014
@yurydelendik
Copy link
Contributor

/botio-linux test

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2014

From: Bot.io (Linux)


Received

Command cmd_test from @yurydelendik received. Current queue size: 5

Live output at: http://107.21.233.14:8877/db726113e2ab2cc/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/db726113e2ab2cc/output.txt

Total script time: 23.92 mins

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

yurydelendik added a commit that referenced this pull request Dec 15, 2014
Refactor searching for the SOI marker of inline JPEG image streams
@yurydelendik yurydelendik merged commit bc27774 into mozilla:master Dec 15, 2014
@yurydelendik
Copy link
Contributor

Thank you

@Snuffleupagus Snuffleupagus deleted the jpeg-stream-find-soi branch December 15, 2014 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants