Skip to content

Split alphanumeric encoding from QRCodeGenerator, split encoding tables#590

Merged
codebude merged 13 commits into
masterfrom
split
Jun 2, 2025
Merged

Split alphanumeric encoding from QRCodeGenerator, split encoding tables#590
codebude merged 13 commits into
masterfrom
split

Conversation

@Shane32

@Shane32 Shane32 commented Apr 6, 2025

Copy link
Copy Markdown
Owner

Refactoring for readability, maybe as prep to add Micro QR code support; no functional changes; no public API changes. Also made a few other inconsequential changes; see notes below.

Note that tests are not all passing locally for me anymore, probably due to PNG encoding not being stable across .NET versions/frameworks

@Shane32 Shane32 changed the title Split QRCodeGenerator further Splits QR table constants into a separate file Apr 6, 2025
@Shane32
Shane32 marked this pull request as ready for review April 6, 2025 16:19
@Shane32
Shane32 marked this pull request as draft April 6, 2025 16:19
@Shane32
Shane32 marked this pull request as ready for review April 6, 2025 18:24
@Shane32 Shane32 changed the title Splits QR table constants into a separate file Split alphanumeric encoding from QRCodeGenerator, split encoding tables Apr 7, 2025
Comment thread QRCoder/QRCodeGenerator/AlphanumericEncoder.cs
Comment thread QRCoder/QRCodeGenerator/AlphanumericEncoder.cs
Comment thread QRCoder/QRCodeGenerator/AlignmentPatterns.cs
Comment thread global.json Outdated
Comment thread QRCoderTests/PngByteQRCodeRendererTests.cs
@Shane32

Shane32 commented Apr 12, 2025

Copy link
Copy Markdown
Owner Author

@codebude Ready for review please. This is pretty basic refactoring, further code-splitting QRCodeGenerator.cs and improving readability. The goal is to be able to cleanly add the Micro QR code tables into CapacityTables.cs in a future PR without affecting any existing functionality.

@Shane32
Shane32 requested a review from gfoidl April 12, 2025 04:30

@gfoidl gfoidl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a little calc-simplification, otherwise LGTM (codewise, I don't know these constants good enough to judge about them).

Comment thread QRCoder/QRCodeGenerator/GaloisField.cs Outdated
Co-authored-by: Günther Foidl <gue@korporal.at>
Comment thread QRCoder/QRCodeGenerator/GaloisField.cs
@codebude
codebude merged commit 04cb78b into Shane32:master Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring of code without changes to functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants