Commit Graph

155 Commits

Author SHA1 Message Date
Henry Schimke
af626afc15 removed todo!() from qrcode_version.rs 2023-03-29 14:30:19 -05:00
Henry Schimke
6a1c5c568a continued removal of todo!() 2023-03-29 12:10:58 -05:00
Henry Schimke
517b23b481 more todo!() removal 2023-03-28 16:46:36 -05:00
Henry Schimke
74a459f65a continue removing todo!()s 2023-03-28 16:31:41 -05:00
Henry Schimke
607bb28101 micro versions 2023-03-28 11:16:05 -05:00
Henry Schimke
0636a63291 partial stub out of decoder 2023-03-27 11:45:26 -05:00
Henry Schimke
d2316408b5 stage for port 2023-03-21 15:26:45 -05:00
Henry Schimke
5450f05d1b Merge branch 'main' into port_cpp_qrcode 2023-03-21 11:57:03 -05:00
Henry Schimke
8a77e7b7ab convert to using point...
instead of vectors for finding corners in bitmatrix
2023-03-21 11:56:53 -05:00
Henry Schimke
8486cba277 port bitmatrix_curosor readpattern 2023-03-21 11:22:31 -05:00
Henry Schimke
f852e14331 move some functions around 2023-03-20 16:39:19 -05:00
Henry Schimke
372bb454c0 reorganize some impl blocks 2023-03-20 15:33:01 -05:00
Henry Schimke
0df86d4fd4 detector builds but does not work 2023-03-20 12:12:25 -05:00
Henry Schimke
3d75de7183 DetectPureQR ported 2023-03-20 11:09:06 -05:00
Henry Schimke
f3af7d72a9 checking, midwork 2023-03-19 15:03:46 -05:00
Henry Schimke
4c8db1f73f in_progress port from cpp 2023-03-18 15:48:47 -05:00
Henry Schimke
07b934283b incomplete port of detector 2023-03-16 14:47:37 -05:00
Henry Schimke
e49f873bc9 incomplete port of detector 2023-03-13 12:35:58 -05:00
Henry Schimke
bd2189cf08 ported pattern.h, no tests pass 2023-03-10 13:36:05 -06:00
Henry Schimke
5593a8f8f7 move ported cpp_shared resources 2023-03-08 18:51:48 -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
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
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
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
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
Steve Cook
f8b29f37db Use thiserror for error handling with less boilerplate 2023-02-20 09:41:28 -05:00
Vukašin Stepanović
c77f0af6f6 remove unnecessary number suffixes 2023-02-17 16:12:23 +00:00
Vukašin Stepanović
4c9987425d Merge branch 'main' into pr/point_refactor 2023-02-16 16:43:24 +00:00
Vukašin Stepanović
1322f7defa remove impl ResultPoint for FinderPattern & AlignmentPattern 2023-02-16 16:33:22 +00:00
Vukašin Stepanović
072d3d0ec7 change PointCallback to accept Point instead of ResultPoint 2023-02-16 16:20:58 +00:00
Vukašin Stepanović
0992e85e6c remove ResultPoint trait uses of Point
Point already has `x` and `y` properties, so accessing
them with `getX()` and `getY()` is needlessly verbose.
These calls have been removed, though the trait impl is
still presen for the time being, since the OneDReader
proc macro requires it.
2023-02-16 15:54:07 +00:00
Vukašin Stepanović
9889555b02 refactor ResultPoint trait bounds into Into<Point> bounds 2023-02-16 15:19:35 +00:00
Vukašin Stepanović
00f007f14c refactor orderBestPatterns to not use ResultPoint 2023-02-16 15:10:33 +00:00
Vukašin Stepanović
3881df6672 Remove result_point_utils::distance() 2023-02-16 12:50:24 +00:00
Vukašin Stepanović
39b4866e47 add point(x: f32, y: f32) function
Shorter than writing `Point::new`
2023-02-16 11:20:03 +00:00
Vukašin Stepanović
71128a81bc remove MathUtils::round() 2023-02-16 09:37:21 +00:00
Vukašin Stepanović
79d9b28d19 remove MathUtils::distance() 2023-02-16 09:28:22 +00:00
Vukašin Stepanović
844ffc3b81 cargo fmt 2023-02-16 08:40:57 +00:00
Vukašin Stepanović
dbc6ca4e55 wip: Search & replace RXingResultPoint with Point
Build fails because the OneDReader proc macro expects
that a RXingResultPoint type exists.
2023-02-16 08:25:32 +00:00
Vukašin Stepanović
41c5615ee3 Merge branch 'main' into pr/exception_helpers 2023-02-16 07:15:51 +00:00
Vukašin Stepanović
935519ced5 rename helper methods 2023-02-15 12:52:59 +00:00
Vukašin Stepanović
528ddea41c remove .to_owned() calls on &str in exceptions 2023-02-15 11:12:28 +00:00