MCPcopy Create free account
hub / github.com/MoeMod/CSMoE / getPenaltyScore

Function getPenaltyScore

3rdparty/QRCode/QRCode.cpp:427–514  ·  view source on GitHub ↗

Calculates and returns the penalty score based on state of this QR Code's current modules. This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score. @TODO: This can be optimized by working with the bytes instead of bits.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

initBytesFunction · 0.85

Calls 1

bb_getBitFunction · 0.85

Tested by

no test coverage detected