QRgen/private/DrawedQRCode/calcPenalty

  Source   Edit

Procs

func evaluateCondition1(self: DrawedQRCode): uint16 {....raises: [], tags: [].}
Evaluates the penalty of the applied mask using the condition1 algorithm.   Source   Edit
func evaluateCondition2(self: DrawedQRCode): uint16 {....raises: [], tags: [].}
Evaluates the penalty of the applied mask using the condition2 algorithm.   Source   Edit
func evaluateCondition3(self: DrawedQRCode): uint16 {....raises: [], tags: [].}
Evaluates the penalty of the applied mask using the condition3 algorithm.   Source   Edit
func evaluateCondition4(self: DrawedQRCode): uint16 {....raises: [], tags: [].}
Evaluates the penalty of the applied mask using the condition4 algorithm.   Source   Edit

Templates

template calcPenalty(self: DrawedQRCode): uint16
Helper template to sum the result of the 4 condition algorithms.   Source   Edit