From 0709489e011053d9573c4464dc19bde55e8f9e79 Mon Sep 17 00:00:00 2001 From: Ze-Zheng Wu Date: Wed, 6 Nov 2024 01:16:51 +0800 Subject: [PATCH] fix: bump `zxing-cpp` to `cd9bba3` to fix an ITF detection regression --- .changeset/dry-berries-applaud.md | 5 ++ package.json | 6 +- pnpm-lock.yaml | 64 +++++++++---------- .../__snapshots__/itf-1/1-slanted/fast-0.json | 39 +++++++++++ .../itf-1/1-slanted/fast-180.json | 39 +++++++++++ .../__snapshots__/itf-1/1-slanted/slow-0.json | 39 +++++++++++ .../itf-1/1-slanted/slow-180.json | 39 +++++++++++ tests/__snapshots__/itf-1/13/fast-180.json | 14 ++-- tests/__snapshots__/itf-1/13/slow-0.json | 10 +-- tests/__snapshots__/itf-1/13/slow-180.json | 6 +- tests/__snapshots__/itf-1/6/fast-0.json | 8 +-- tests/__snapshots__/itf-1/6/fast-180.json | 8 +-- tests/__snapshots__/itf-1/6/slow-0.json | 8 +-- tests/__snapshots__/itf-1/6/slow-180.json | 8 +-- tests/__snapshots__/itf-1/summary.json | 6 +- .../__snapshots__/itf-1/with-tail/fast-0.json | 39 +++++++++++ .../itf-1/with-tail/fast-180.json | 39 +++++++++++ .../__snapshots__/itf-1/with-tail/slow-0.json | 39 +++++++++++ .../itf-1/with-tail/slow-180.json | 39 +++++++++++ tests/__snapshots__/itf-2/07/fast-0.json | 8 +-- tests/__snapshots__/itf-2/13/fast-0.json | 8 +-- tests/__snapshots__/itf-2/13/fast-180.json | 8 +-- tests/__snapshots__/itf-2/13/slow-0.json | 8 +-- tests/__snapshots__/itf-2/13/slow-180.json | 8 +-- zxing-cpp | 2 +- 25 files changed, 407 insertions(+), 90 deletions(-) create mode 100644 .changeset/dry-berries-applaud.md create mode 100644 tests/__snapshots__/itf-1/1-slanted/fast-0.json create mode 100644 tests/__snapshots__/itf-1/1-slanted/fast-180.json create mode 100644 tests/__snapshots__/itf-1/1-slanted/slow-0.json create mode 100644 tests/__snapshots__/itf-1/1-slanted/slow-180.json create mode 100644 tests/__snapshots__/itf-1/with-tail/fast-0.json create mode 100644 tests/__snapshots__/itf-1/with-tail/fast-180.json create mode 100644 tests/__snapshots__/itf-1/with-tail/slow-0.json create mode 100644 tests/__snapshots__/itf-1/with-tail/slow-180.json diff --git a/.changeset/dry-berries-applaud.md b/.changeset/dry-berries-applaud.md new file mode 100644 index 00000000..23980da3 --- /dev/null +++ b/.changeset/dry-berries-applaud.md @@ -0,0 +1,5 @@ +--- +"zxing-wasm": patch +--- + +Bump `zxing-cpp` to `cd9bba3` to fix an ITF detection regression. diff --git a/package.json b/package.json index 9a6a816c..2f60e446 100644 --- a/package.json +++ b/package.json @@ -101,9 +101,9 @@ "@biomejs/biome": "1.9.4", "@changesets/cli": "^2.27.9", "@types/babel__core": "^7.20.5", - "@types/node": "^22.8.1", + "@types/node": "^22.9.0", "@vitest/ui": "^2.1.4", - "concurrently": "^9.0.1", + "concurrently": "^9.1.0", "copy-files-from-to": "^3.11.0", "jimp": "^1.6.0", "lint-staged": "^15.2.10", @@ -114,7 +114,7 @@ "simple-git-hooks": "^2.11.1", "tinyglobby": "^0.2.10", "tsx": "^4.19.2", - "typedoc": "^0.26.10", + "typedoc": "^0.26.11", "typescript": "^5.6.3", "vite": "^5.4.10", "vite-plugin-babel": "^1.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2547b36c..1957aa3c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,14 +28,14 @@ importers: specifier: ^7.20.5 version: 7.20.5 '@types/node': - specifier: ^22.8.1 - version: 22.8.1 + specifier: ^22.9.0 + version: 22.9.0 '@vitest/ui': specifier: ^2.1.4 version: 2.1.4(vitest@2.1.4) concurrently: - specifier: ^9.0.1 - version: 9.0.1 + specifier: ^9.1.0 + version: 9.1.0 copy-files-from-to: specifier: ^3.11.0 version: 3.11.0 @@ -67,20 +67,20 @@ importers: specifier: ^4.19.2 version: 4.19.2 typedoc: - specifier: ^0.26.10 - version: 0.26.10(typescript@5.6.3) + specifier: ^0.26.11 + version: 0.26.11(typescript@5.6.3) typescript: specifier: ^5.6.3 version: 5.6.3 vite: specifier: ^5.4.10 - version: 5.4.10(@types/node@22.8.1)(terser@5.31.6) + version: 5.4.10(@types/node@22.9.0)(terser@5.31.6) vite-plugin-babel: specifier: ^1.2.0 - version: 1.2.0(@babel/core@7.26.0)(vite@5.4.10(@types/node@22.8.1)(terser@5.31.6)) + version: 1.2.0(@babel/core@7.26.0)(vite@5.4.10(@types/node@22.9.0)(terser@5.31.6)) vitest: specifier: ^2.1.4 - version: 2.1.4(@types/node@22.8.1)(@vitest/ui@2.1.4)(terser@5.31.6) + version: 2.1.4(@types/node@22.9.0)(@vitest/ui@2.1.4)(terser@5.31.6) packages: @@ -840,8 +840,8 @@ packages: '@types/node@16.9.1': resolution: {integrity: sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==} - '@types/node@22.8.1': - resolution: {integrity: sha512-k6Gi8Yyo8EtrNtkHXutUu2corfDf9su95VYVP10aGYMMROM6SAItZi0w1XszA6RtWTHSVp5OeFof37w0IEqCQg==} + '@types/node@22.9.0': + resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} @@ -1049,8 +1049,8 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - concurrently@9.0.1: - resolution: {integrity: sha512-wYKvCd/f54sTXJMSfV6Ln/B8UrfLBKOYa+lzc6CHay3Qek+LorVSBdMVfyewFhRbH0Rbabsk4D+3PL/VjQ5gzg==} + concurrently@9.1.0: + resolution: {integrity: sha512-VxkzwMAn4LP7WyMnJNbHN5mKV9L2IbyDjpzemKr99sXNR3GqRNMMHdm7prV1ws9wg7ETj6WUkNOigZVsptwbgg==} engines: {node: '>=18'} hasBin: true @@ -2062,8 +2062,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - typedoc@0.26.10: - resolution: {integrity: sha512-xLmVKJ8S21t+JeuQLNueebEuTVphx6IrP06CdV7+0WVflUSW3SPmR+h1fnWVdAR/FQePEgsSWCUHXqKKjzuUAw==} + typedoc@0.26.11: + resolution: {integrity: sha512-sFEgRRtrcDl2FxVP58Ze++ZK2UQAEvtvvH8rRlig1Ja3o7dDaMHmaBfvJmdGnNEFaLTpQsN8dpvZaTqJSu/Ugw==} engines: {node: '>= 18'} hasBin: true peerDependencies: @@ -3061,7 +3061,7 @@ snapshots: '@types/node@16.9.1': {} - '@types/node@22.8.1': + '@types/node@22.9.0': dependencies: undici-types: 6.19.8 @@ -3076,13 +3076,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.4(vite@5.4.10(@types/node@22.8.1)(terser@5.31.6))': + '@vitest/mocker@2.1.4(vite@5.4.10(@types/node@22.9.0)(terser@5.31.6))': dependencies: '@vitest/spy': 2.1.4 estree-walker: 3.0.3 magic-string: 0.30.12 optionalDependencies: - vite: 5.4.10(@types/node@22.8.1)(terser@5.31.6) + vite: 5.4.10(@types/node@22.9.0)(terser@5.31.6) '@vitest/pretty-format@2.1.4': dependencies: @@ -3112,7 +3112,7 @@ snapshots: sirv: 3.0.0 tinyglobby: 0.2.10 tinyrainbow: 1.2.0 - vitest: 2.1.4(@types/node@22.8.1)(@vitest/ui@2.1.4)(terser@5.31.6) + vitest: 2.1.4(@types/node@22.9.0)(@vitest/ui@2.1.4)(terser@5.31.6) '@vitest/utils@2.1.4': dependencies: @@ -3259,7 +3259,7 @@ snapshots: commander@2.20.3: {} - concurrently@9.0.1: + concurrently@9.1.0: dependencies: chalk: 4.1.2 lodash: 4.17.21 @@ -4276,7 +4276,7 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - typedoc@0.26.10(typescript@5.6.3): + typedoc@0.26.11(typescript@5.6.3): dependencies: lunr: 2.3.9 markdown-it: 14.1.0 @@ -4342,12 +4342,12 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-node@2.1.4(@types/node@22.8.1)(terser@5.31.6): + vite-node@2.1.4(@types/node@22.9.0)(terser@5.31.6): dependencies: cac: 6.7.14 debug: 4.3.7 pathe: 1.1.2 - vite: 5.4.10(@types/node@22.8.1)(terser@5.31.6) + vite: 5.4.10(@types/node@22.9.0)(terser@5.31.6) transitivePeerDependencies: - '@types/node' - less @@ -4359,25 +4359,25 @@ snapshots: - supports-color - terser - vite-plugin-babel@1.2.0(@babel/core@7.26.0)(vite@5.4.10(@types/node@22.8.1)(terser@5.31.6)): + vite-plugin-babel@1.2.0(@babel/core@7.26.0)(vite@5.4.10(@types/node@22.9.0)(terser@5.31.6)): dependencies: '@babel/core': 7.26.0 - vite: 5.4.10(@types/node@22.8.1)(terser@5.31.6) + vite: 5.4.10(@types/node@22.9.0)(terser@5.31.6) - vite@5.4.10(@types/node@22.8.1)(terser@5.31.6): + vite@5.4.10(@types/node@22.9.0)(terser@5.31.6): dependencies: esbuild: 0.21.5 postcss: 8.4.47 rollup: 4.24.0 optionalDependencies: - '@types/node': 22.8.1 + '@types/node': 22.9.0 fsevents: 2.3.3 terser: 5.31.6 - vitest@2.1.4(@types/node@22.8.1)(@vitest/ui@2.1.4)(terser@5.31.6): + vitest@2.1.4(@types/node@22.9.0)(@vitest/ui@2.1.4)(terser@5.31.6): dependencies: '@vitest/expect': 2.1.4 - '@vitest/mocker': 2.1.4(vite@5.4.10(@types/node@22.8.1)(terser@5.31.6)) + '@vitest/mocker': 2.1.4(vite@5.4.10(@types/node@22.9.0)(terser@5.31.6)) '@vitest/pretty-format': 2.1.4 '@vitest/runner': 2.1.4 '@vitest/snapshot': 2.1.4 @@ -4393,11 +4393,11 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.1 tinyrainbow: 1.2.0 - vite: 5.4.10(@types/node@22.8.1)(terser@5.31.6) - vite-node: 2.1.4(@types/node@22.8.1)(terser@5.31.6) + vite: 5.4.10(@types/node@22.9.0)(terser@5.31.6) + vite-node: 2.1.4(@types/node@22.9.0)(terser@5.31.6) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 22.8.1 + '@types/node': 22.9.0 '@vitest/ui': 2.1.4(vitest@2.1.4) transitivePeerDependencies: - less diff --git a/tests/__snapshots__/itf-1/1-slanted/fast-0.json b/tests/__snapshots__/itf-1/1-slanted/fast-0.json new file mode 100644 index 00000000..19032a13 --- /dev/null +++ b/tests/__snapshots__/itf-1/1-slanted/fast-0.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "4f50564", + "bytesECI": "d464871", + "text": "30712345000010", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 14, + "y": 5 + }, + "topRight": { + "x": 315, + "y": 5 + }, + "bottomRight": { + "x": 315, + "y": 6 + }, + "bottomLeft": { + "x": 14, + "y": 6 + } + }, + "orientation": 0, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I1", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/1-slanted/fast-180.json b/tests/__snapshots__/itf-1/1-slanted/fast-180.json new file mode 100644 index 00000000..28293a7a --- /dev/null +++ b/tests/__snapshots__/itf-1/1-slanted/fast-180.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "4f50564", + "bytesECI": "d464871", + "text": "30712345000010", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 315, + "y": 5 + }, + "topRight": { + "x": 14, + "y": 5 + }, + "bottomRight": { + "x": 14, + "y": 6 + }, + "bottomLeft": { + "x": 315, + "y": 6 + } + }, + "orientation": 180, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I1", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/1-slanted/slow-0.json b/tests/__snapshots__/itf-1/1-slanted/slow-0.json new file mode 100644 index 00000000..19032a13 --- /dev/null +++ b/tests/__snapshots__/itf-1/1-slanted/slow-0.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "4f50564", + "bytesECI": "d464871", + "text": "30712345000010", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 14, + "y": 5 + }, + "topRight": { + "x": 315, + "y": 5 + }, + "bottomRight": { + "x": 315, + "y": 6 + }, + "bottomLeft": { + "x": 14, + "y": 6 + } + }, + "orientation": 0, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I1", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/1-slanted/slow-180.json b/tests/__snapshots__/itf-1/1-slanted/slow-180.json new file mode 100644 index 00000000..28293a7a --- /dev/null +++ b/tests/__snapshots__/itf-1/1-slanted/slow-180.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "4f50564", + "bytesECI": "d464871", + "text": "30712345000010", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 315, + "y": 5 + }, + "topRight": { + "x": 14, + "y": 5 + }, + "bottomRight": { + "x": 14, + "y": 6 + }, + "bottomLeft": { + "x": 315, + "y": 6 + } + }, + "orientation": 180, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I1", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/13/fast-180.json b/tests/__snapshots__/itf-1/13/fast-180.json index 4c7694f7..3b7b1aa0 100644 --- a/tests/__snapshots__/itf-1/13/fast-180.json +++ b/tests/__snapshots__/itf-1/13/fast-180.json @@ -10,20 +10,20 @@ "hasECI": false, "position": { "topLeft": { - "x": 202, - "y": 63 + "x": 203, + "y": 54 }, "topRight": { "x": 43, - "y": 63 + "y": 54 }, "bottomRight": { - "x": 42, - "y": 65 + "x": 43, + "y": 56 }, "bottomLeft": { - "x": 202, - "y": 65 + "x": 203, + "y": 56 } }, "orientation": 180, diff --git a/tests/__snapshots__/itf-1/13/slow-0.json b/tests/__snapshots__/itf-1/13/slow-0.json index ec8eb2cb..13316ef8 100644 --- a/tests/__snapshots__/itf-1/13/slow-0.json +++ b/tests/__snapshots__/itf-1/13/slow-0.json @@ -10,20 +10,20 @@ "hasECI": false, "position": { "topLeft": { - "x": 35, - "y": 56 + "x": 34, + "y": 63 }, "topRight": { "x": 194, - "y": 56 + "y": 63 }, "bottomRight": { "x": 194, - "y": 63 + "y": 64 }, "bottomLeft": { "x": 34, - "y": 63 + "y": 64 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-1/13/slow-180.json b/tests/__snapshots__/itf-1/13/slow-180.json index 6083e130..b126daa6 100644 --- a/tests/__snapshots__/itf-1/13/slow-180.json +++ b/tests/__snapshots__/itf-1/13/slow-180.json @@ -18,12 +18,12 @@ "y": 56 }, "bottomRight": { - "x": 43, - "y": 63 + "x": 42, + "y": 64 }, "bottomLeft": { "x": 202, - "y": 63 + "y": 64 } }, "orientation": 180, diff --git a/tests/__snapshots__/itf-1/6/fast-0.json b/tests/__snapshots__/itf-1/6/fast-0.json index 28e5783e..b3168736 100644 --- a/tests/__snapshots__/itf-1/6/fast-0.json +++ b/tests/__snapshots__/itf-1/6/fast-0.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 20, - "y": 33 + "y": 37 }, "topRight": { "x": 224, - "y": 33 + "y": 37 }, "bottomRight": { "x": 224, - "y": 34 + "y": 38 }, "bottomLeft": { "x": 20, - "y": 34 + "y": 38 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-1/6/fast-180.json b/tests/__snapshots__/itf-1/6/fast-180.json index 8a6ff5a8..5b920f18 100644 --- a/tests/__snapshots__/itf-1/6/fast-180.json +++ b/tests/__snapshots__/itf-1/6/fast-180.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 229, - "y": 33 + "y": 27 }, "topRight": { "x": 25, - "y": 33 + "y": 27 }, "bottomRight": { "x": 25, - "y": 34 + "y": 37 }, "bottomLeft": { "x": 229, - "y": 34 + "y": 37 } }, "orientation": 180, diff --git a/tests/__snapshots__/itf-1/6/slow-0.json b/tests/__snapshots__/itf-1/6/slow-0.json index e85f9ccf..5e3aca54 100644 --- a/tests/__snapshots__/itf-1/6/slow-0.json +++ b/tests/__snapshots__/itf-1/6/slow-0.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 20, - "y": 32 + "y": 28 }, "topRight": { "x": 224, - "y": 32 + "y": 28 }, "bottomRight": { "x": 224, - "y": 33 + "y": 37 }, "bottomLeft": { "x": 20, - "y": 33 + "y": 37 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-1/6/slow-180.json b/tests/__snapshots__/itf-1/6/slow-180.json index f8c3c84f..fa2880c9 100644 --- a/tests/__snapshots__/itf-1/6/slow-180.json +++ b/tests/__snapshots__/itf-1/6/slow-180.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 229, - "y": 32 + "y": 28 }, "topRight": { "x": 25, - "y": 32 + "y": 28 }, "bottomRight": { "x": 25, - "y": 33 + "y": 37 }, "bottomLeft": { "x": 229, - "y": 33 + "y": 37 } }, "orientation": 180, diff --git a/tests/__snapshots__/itf-1/summary.json b/tests/__snapshots__/itf-1/summary.json index 44cf54ce..2724ee6a 100644 --- a/tests/__snapshots__/itf-1/summary.json +++ b/tests/__snapshots__/itf-1/summary.json @@ -1,7 +1,7 @@ { - "total": 12, - "passAll": 11, - "passSome": 12, + "total": 14, + "passAll": 13, + "passSome": 14, "fast": { "0": { "failures": 1, diff --git a/tests/__snapshots__/itf-1/with-tail/fast-0.json b/tests/__snapshots__/itf-1/with-tail/fast-0.json new file mode 100644 index 00000000..9ef74e73 --- /dev/null +++ b/tests/__snapshots__/itf-1/with-tail/fast-0.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "70d5240", + "bytesECI": "527ce69", + "text": "00123456", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 10, + "y": 1 + }, + "topRight": { + "x": 158, + "y": 1 + }, + "bottomRight": { + "x": 158, + "y": 2 + }, + "bottomLeft": { + "x": 10, + "y": 2 + } + }, + "orientation": 0, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I0", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/with-tail/fast-180.json b/tests/__snapshots__/itf-1/with-tail/fast-180.json new file mode 100644 index 00000000..0f7580cc --- /dev/null +++ b/tests/__snapshots__/itf-1/with-tail/fast-180.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "70d5240", + "bytesECI": "527ce69", + "text": "00123456", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 240, + "y": 1 + }, + "topRight": { + "x": 92, + "y": 1 + }, + "bottomRight": { + "x": 92, + "y": 2 + }, + "bottomLeft": { + "x": 240, + "y": 2 + } + }, + "orientation": 180, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I0", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/with-tail/slow-0.json b/tests/__snapshots__/itf-1/with-tail/slow-0.json new file mode 100644 index 00000000..9ef74e73 --- /dev/null +++ b/tests/__snapshots__/itf-1/with-tail/slow-0.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "70d5240", + "bytesECI": "527ce69", + "text": "00123456", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 10, + "y": 1 + }, + "topRight": { + "x": 158, + "y": 1 + }, + "bottomRight": { + "x": 158, + "y": 2 + }, + "bottomLeft": { + "x": 10, + "y": 2 + } + }, + "orientation": 0, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I0", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-1/with-tail/slow-180.json b/tests/__snapshots__/itf-1/with-tail/slow-180.json new file mode 100644 index 00000000..0f7580cc --- /dev/null +++ b/tests/__snapshots__/itf-1/with-tail/slow-180.json @@ -0,0 +1,39 @@ +{ + "isValid": true, + "error": "", + "format": "ITF", + "bytes": "70d5240", + "bytesECI": "527ce69", + "text": "00123456", + "eccLevel": "", + "contentType": "Text", + "hasECI": false, + "position": { + "topLeft": { + "x": 240, + "y": 1 + }, + "topRight": { + "x": 92, + "y": 1 + }, + "bottomRight": { + "x": 92, + "y": 2 + }, + "bottomLeft": { + "x": 240, + "y": 2 + } + }, + "orientation": 180, + "isMirrored": false, + "isInverted": false, + "symbologyIdentifier": "]I0", + "sequenceSize": -1, + "sequenceIndex": -1, + "sequenceId": "", + "readerInit": false, + "lineCount": 2, + "version": "" +} diff --git a/tests/__snapshots__/itf-2/07/fast-0.json b/tests/__snapshots__/itf-2/07/fast-0.json index 5ea3e9d8..e62aaa7e 100644 --- a/tests/__snapshots__/itf-2/07/fast-0.json +++ b/tests/__snapshots__/itf-2/07/fast-0.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 58, - "y": 118 + "y": 120 }, "topRight": { "x": 168, - "y": 118 + "y": 120 }, "bottomRight": { "x": 168, - "y": 120 + "y": 122 }, "bottomLeft": { "x": 58, - "y": 120 + "y": 122 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-2/13/fast-0.json b/tests/__snapshots__/itf-2/13/fast-0.json index 7ce56035..c6948115 100644 --- a/tests/__snapshots__/itf-2/13/fast-0.json +++ b/tests/__snapshots__/itf-2/13/fast-0.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 56, - "y": 134 + "y": 120 }, "topRight": { "x": 208, - "y": 134 + "y": 120 }, "bottomRight": { "x": 208, - "y": 136 + "y": 122 }, "bottomLeft": { "x": 56, - "y": 136 + "y": 122 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-2/13/fast-180.json b/tests/__snapshots__/itf-2/13/fast-180.json index b6d4b640..3e84f1df 100644 --- a/tests/__snapshots__/itf-2/13/fast-180.json +++ b/tests/__snapshots__/itf-2/13/fast-180.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 183, - "y": 111 + "y": 120 }, "topRight": { "x": 31, - "y": 111 + "y": 120 }, "bottomRight": { "x": 31, - "y": 113 + "y": 122 }, "bottomLeft": { "x": 183, - "y": 113 + "y": 122 } }, "orientation": 180, diff --git a/tests/__snapshots__/itf-2/13/slow-0.json b/tests/__snapshots__/itf-2/13/slow-0.json index 7fcf579a..75bea642 100644 --- a/tests/__snapshots__/itf-2/13/slow-0.json +++ b/tests/__snapshots__/itf-2/13/slow-0.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 56, - "y": 115 + "y": 119 }, "topRight": { "x": 208, - "y": 115 + "y": 119 }, "bottomRight": { "x": 208, - "y": 116 + "y": 120 }, "bottomLeft": { "x": 56, - "y": 116 + "y": 120 } }, "orientation": 0, diff --git a/tests/__snapshots__/itf-2/13/slow-180.json b/tests/__snapshots__/itf-2/13/slow-180.json index bc1e42ca..49ef262e 100644 --- a/tests/__snapshots__/itf-2/13/slow-180.json +++ b/tests/__snapshots__/itf-2/13/slow-180.json @@ -11,19 +11,19 @@ "position": { "topLeft": { "x": 183, - "y": 123 + "y": 119 }, "topRight": { "x": 31, - "y": 123 + "y": 119 }, "bottomRight": { "x": 31, - "y": 124 + "y": 120 }, "bottomLeft": { "x": 183, - "y": 124 + "y": 120 } }, "orientation": 180, diff --git a/zxing-cpp b/zxing-cpp index 308f8207..cd9bba33 160000 --- a/zxing-cpp +++ b/zxing-cpp @@ -1 +1 @@ -Subproject commit 308f82077dd82979c9df1f82a8ff264dcf0d6371 +Subproject commit cd9bba33ef9cc175120f6e9ba49cc08b1f27a338