Repository navigation
chore: apply the fixes and cleanup - #514
Open
guitarrapc wants to merge 1 commit into
Open
guitarrapc wants to merge 1 commit into
guitarrapc wants to merge 1 commit into
Conversation
- LuminanceConverter and AlignmentPatternFinder lose the forceScalar switch. The test entry calls validation and the scalar tier directly, and the alignment row scan is a struct type parameter. - Premultiplied input with a channel above its alpha saturates at 255 on every tier instead of wrapping. The spec and XML docs say so. - LuminanceSampler.Bilinear clamps in float, so huge or infinite coordinates take the edge pixel. - Synchronous SVG output checks the icon and gradient before it writes, so a refused render writes nothing. - Remove unreachable code: the Micro QR format-word search, RowsGeneral and the ARGB parity case, and redundant Min, modulo and stride checks. - Remove Clear calls that follow a zeroed stackalloc. - FNC1 reconstruction drops the alphanumeric rescan, and the FNC1 ECI header uses WriteEci. - Fix doc mismatches in DecodeStatus, QRCodeDecodeInfo, RmQRSegmentation and the GS1 exceptions. - Add the audit report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Applies the fixes and the cleanup. Most changes remove dead code and redundant work. Three change behavior at edge cases, and test-only switches leave production paths.
Intent
Before / After
Bilinearwith huge or infinite coordinatesforceScalarinLuminanceConverter/AlignmentPatternFinderBenchmarks (in-process, ABBA against main):
LuminanceConversion,QRCodeImageDecodeEndToEndandQRCodeEncodeEndToEndare within ±10% on Mean and Allocated for all 47 rows. The one row past +10% was a single outlier, and a re-run showed no difference.Changes
forceScalarparameters.AlignmentPatternFinderselects its row scan through a struct type parameter.LuminanceSampler.Bilinearcoordinates in float.RowsGeneraland its ARGB parity case, and redundantMath.Min,% 255andstride > 1checks.Clear()calls that follow a stackalloc the runtime already zeroed.WriteEcifor the FNC1 ECI header (same output).DecodeStatus,QRCodeDecodeInfo,RmQRSegmentationand the GS1 exceptions.Bilinearcoordinates and a refused SVG render. Update the parity references to match.Not verified
The NEON saturating narrow and the portable Vector128 fallback (ARM64 without Dp) have not run on ARM64 hardware.
🤖 Generated with Claude Code