Structured Append#132
Open
kousu wants to merge 8 commits intocozmo:masterfrom
kousu:structured-append
Open
Conversation
Author
|
Here's some open questions:
|
…rite "M/N" page numberings. Some of the output.jsons were hand-massaged to be what they should be, rather than what generate-test-data currently would give, because this feature doesn't work yet. amen.mp3 is public domain from https://sampleswap.org//samples-ghost/DRUM%20LOOPS%20and%20BREAKS/161%20to%20180%20bpm/128[kb]161_amenvar3.aif.mp3
It's important that this is done sync, not async, because there's a stateful part that places parts into an array by their page number, and if the separate subparts run async from each other the ordering gets messed up.
- I remembered that the parity byte exists, so I test that too
- bumped the output data down into a sub-member (result.structuredAppend.{M,N,parity}) and gave it a TypeScript type
- bumped M and N up to be 1-based, following the QR spec
The assert line is weird. In structured-append-test.ts I can use
```
import { strict as assert } from 'assert';
```
But here I can't and I have to use
```
import * as assert from 'assert';
```
(ref: https://stackoverflow.com/questions/39883960/what-is-the-typescript-2-0-es2015-way-to-import-assert-from-node-js)
Oh well??
As you can see from the diff, this only adds missing byte chunks and the new structured append chunks, plus 15 newly passing tests :) Previously, in 7d113b2, I had generated the expected output using https://github.com/glassechidna/zxing-cpp/. Now, the expected output was made by jsQR. The fact that the diff shows no change in that part of the output.jsons means this feature branch is correct :)
Author
|
Another issue: if I try to use But this doesn't happen if I just |
This was referenced Apr 3, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #128 .