Commit Graph

702 Commits

Author SHA1 Message Date
Henry Schimke
5593a8f8f7 move ported cpp_shared resources 2023-03-08 18:51:48 -06:00
Henry Schimke
111baaab81 clippy --fix 2023-03-08 14:37:45 -06:00
Henry Schimke
e1332c8010 port DefaultGridSampler 2023-03-08 14:36:43 -06:00
Henry Schimke
717b74fd99 cleanup point transform code 2023-03-08 12:46:52 -06:00
Henry Schimke
2b7d053646 Promote Quadrilateral to default
The library now uses the `Quadrilateral` struct when handling sets of four points in `GridSampler` and `PerspectiveTransform`
2023-03-08 11:17:43 -06:00
Henry Schimke
d5e6a5d0a7 update eci_string_builder
This change modifies how the ECIStringBuilder works. Perviously it encoded data as it went, whenever the eci state changed. The new method only decodes data when it is requested, simply appending bytes as it goes otherwise.

This should improve performance in a few situations.

This release also uses the ECIStringBuilder in qrcodes, which previously handled their own decoding.
2023-03-07 17:09:42 -06:00
Henry Schimke
19d5b6276c cargo fmt 2023-03-06 12:24:47 -06:00
Henry Schimke
921b51a405 enable all eci charactersets
This is not enabled for the eci encoder set builder, in which the encoding crate results in some encoders being equivelent and thus resulting in odd test cases.
2023-03-06 12:23:53 -06:00
Henry Schimke
284067f582 multi-decode helpers use MultiUseMultiFormatReader 2023-03-06 11:38:06 -06:00
Henry Schimke
bef21af81e clippy --fix && fmt 2023-03-06 11:37:37 -06:00
Henry Schimke
fe8f89cd29 move from AztecPoint to Point 2023-03-06 11:27:24 -06:00
Henry A Schimke
3f723157b6 Merge pull request #22 from rxing-core/decouple-encoding-library
Decouple encoding library
2023-03-05 15:31:14 -08:00
Henry Schimke
a821557209 disable some charactersets to match zxing
We should be able to allow these, research needs to be done into why they do not work.
2023-03-04 14:43:01 -06:00
Henry Schimke
1349152110 Merge branch 'main' into decouple-encoding-library 2023-03-04 14:36:21 -06:00
Henry Schimke
1c286fc6ae add MultiUseMuliFormatReader
This should avoid the issues with frequent reuse of the generic version of the library. It has a much larger upfront cost, so it should only be used if the reader will be used multiple times. The helper functions do not use this reader.

Fixes: #23
2023-03-04 14:34:09 -06:00
Henry Schimke
69c0119c94 clippy --fix && fmt 2023-03-04 14:17:56 -06:00
Henry Schimke
8a0744e534 move to using Eci enum
Decouples the Eci and CharacterSet concepts within the library. Character sets can now exist independently from Eci encodation schemes.
2023-03-04 14:13:50 -06:00
Henry Schimke
15859b9f10 rename character set and rename methods 2023-03-04 11:47:39 -06:00
Henry Schimke
c81c6578d0 Merge branch 'decouple-encoding-library' of github.com:rxing-core/rxing into decouple-encoding-library 2023-03-04 11:21:26 -06:00
Henry Schimke
9431031147 cargo clippy && fmt 2023-03-04 11:17:17 -06:00
Henry Schimke
a0b8b68869 repurpose CharacterSetECI as encoding abstraction 2023-03-04 11:17:17 -06:00
Henry Schimke
c4fec7d2ee add encode / decode methods
This will eventually entirely replace EncoderRef being passed around
2023-03-04 11:17:17 -06:00
Henry Schimke
34720a184b add multi_barcode reader benchmark 2023-03-04 11:15:38 -06:00
Henry A Schimke
406a2fa639 Merge pull request #20 from SteveCookTU/generics
BREAKING CHANGE: Transition from dynamic dispatch to generics

This changes the fundamental interface into this library. Users who are not using the helper methods will need to refactor their code. This is now targeted at the 0.4.0 release.
2023-03-04 09:12:31 -08:00
Steve Cook
3b3d703b4e Add resets for the RSS14 and RSSExpanded reader states 2023-03-04 11:53:32 -05:00
Steve Cook
0993b8b5ad Add benchmarks 2023-03-02 19:30:47 -05:00
Henry Schimke
800efb7984 cargo clippy && fmt 2023-03-02 15:54:40 -06:00
Henry Schimke
5deb1ddbe2 repurpose CharacterSetECI as encoding abstraction 2023-03-02 15:50:56 -06:00
Steve Cook
47e2444b11 Add binary optimizations 2023-03-02 09:10:25 -05:00
Steve Cook
e67c1070c7 Cargo fmt + Cargo clippy 2023-03-02 08:57:30 -05:00
Steve Cook
f25f762564 Conserve state for RSS readers within MultiFormatReader and MultiFormatOneDReader 2023-03-02 08:55:48 -05:00
Steve Cook
37789a9395 Remove unused imports and fix file naming 2023-03-02 00:10:39 -05:00
Steve Cook
d2ab7de5dd Add error reporting to tests 2023-03-02 00:06:30 -05:00
Steve Cook
70b1ef270f Update tests 2023-03-01 22:49:07 -05:00
Steve Cook
c5460debe1 Cargo clippy --all-features 2023-03-01 22:33:56 -05:00
Steve Cook
daa1d86358 Fixes for all features 2023-03-01 22:19:37 -05:00
Steve Cook
a9bc58108c Initial generics 2023-03-01 22:08:12 -05:00
Henry Schimke
37dc1be041 add encode / decode methods
This will eventually entirely replace EncoderRef being passed around
2023-03-01 20:53:51 -06:00
Henry A Schimke
26325928e7 Merge pull request #18 from SteveCookTU/thiserror
Use thiserror for error handling with less boilerplate
2023-03-01 16:23:32 -06:00
Steve Cook
b561bd77c3 Update macro and cargo fmt 2023-03-01 13:43:21 -05:00
Steve Cook
51fcc98b34 Merge branch 'main' into thiserror
# Conflicts:
#	src/aztec/decoder.rs
#	src/datamatrix/decoder/decoded_bit_stream_parser.rs
2023-03-01 13:39:30 -05:00
Henry Schimke
f450c6e0f7 cargo clippy --fix 2023-03-01 10:50:52 -06:00
Henry Schimke
42efbb397d move maxicode detector to Point 2023-03-01 10:47:31 -06:00
Henry Schimke
24e35f4226 update versions 2023-03-01 09:23:14 -06:00
Henry A Schimke
da91cab6ef Merge pull request #19 from rxing-core/re-organize-repository
Repository Reorganization Work
2023-03-01 09:11:39 -06:00
Henry Schimke
edc8e67685 move cli utility into repository
This commit also adds the `--workspace`` flag to the automated build and test scripts
2023-03-01 08:46:49 -06:00
Henry Schimke
8fc0e1029c initial move of one-d-proc-macros 2023-02-26 12:22:52 -06:00
Henry A Schimke
2c7a18c842 Merge pull request #17 from Asha20/pr/remove_number_suffixes
Remove unnecessary number suffixes
2023-02-24 11:15:37 +09:00
SteveCookTU
35eb716813 Remove #[allow(non_upper_case_globals)] 2023-02-22 00:56:04 -05:00
Steve Cook
f8b29f37db Use thiserror for error handling with less boilerplate 2023-02-20 09:41:28 -05:00