Skip to content

Encode and draw QR modules in one place each - #29

Open
oroderico wants to merge 1 commit into
app-refactorfrom
render-cleanup
Open

oroderico wants to merge 1 commit into
app-refactorfrom
render-cleanup

Conversation

@oroderico

Copy link
Copy Markdown
Owner

The three byte-mode QR renderers each repeated the encode and its wipe, and two repeated the module-drawing loop. Now there is one encode_bytes and one draw_modules. The public API is unchanged.

Verified with: the 5000-script replay (0 runs differ), ctest plain and under ASan/UBSan, Python tests, firmware built twice in espressif/idf:v5.5.4 with audit and cmp.

The three byte-mode renderers repeated the encode and its wipe, and two
repeated the module loop. The 5000-script replay and the render tests
draw the same frames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant