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

fix handling of flags 1-3 in tensor shading #6310

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

THausherr
Copy link
Contributor

pi is an index in the stream and is explained on page 201 of the 32000-spec (however 1-based there), and ps is an index to something in PDF.js. I used the code from flag 0 (which works) to understand which is which. It is also important to understand that for flags 1,2 and 3, the stream is always assigned to the same coordinates and colors. What changes is which "old" coordinates and colors are assigned to what is "missing" in the stream. This is why for these flags, the code is identical except for the assignments in the first "row". (Same principle as in #6304). Note that this change will not improve the lamp_cairo.pdf file, only the two files mentioned in #6305.

pi is an index in the stream and is explained on page 201 of the 32000-spec (however 1-based there), and ps is an index to something in PDF.js. I used the code from flag 0 (which works) to understand which is which. It is also important to understand that for flags 1,2 and 3, the stream is always assigned to the same coordinates and colors. What changes is which "old" coordinates and colors are assigned to what is "missing" in the stream. This is why for these flags, the code is identical except for the assignments in the first "row". (Same principle as in mozilla#6304). Note that this change will not improve the lamp_cairo.pdf file, only the two files mentioned in mozilla#6305.
@yurydelendik yurydelendik self-assigned this Aug 4, 2015
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2015

From: Bot.io (Linux)


Received

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

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

@timvandermeij
Copy link
Contributor

To be clear, this fixes two bottom two files from #6305 (comment). It the tests pass and @yurydelendik is also happy with this, I can follow this up with the tensor-allflags-withfunction.pdf file to add that as a test case.

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/1881a8be5bda655/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/8aa83228f84122b/output.txt

@THausherr
Copy link
Contributor Author

Indeed, and of course you have my permission to use these files.

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/1881a8be5bda655/output.txt

Total script time: 18.62 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Aug 4, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/8aa83228f84122b/output.txt

Total script time: 18.88 mins

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

@CodingFabian
Copy link
Contributor

great. and i see you have switched to using branches for PRs, that will make stuff easier for you. Thanks @THausherr

@yurydelendik
Copy link
Contributor

Perfect. Thank you for the patch.

yurydelendik added a commit that referenced this pull request Aug 4, 2015
fix handling of flags 1-3 in tensor shading
@yurydelendik yurydelendik merged commit f1e35fc into mozilla:master Aug 4, 2015
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