Home
last modified time | relevance | path

Searched refs:runx (Results 1 – 2 of 2) sorted by relevance

/third_party/qrcodegen/python/
Dqrcodegen.py468 runx = 0
472 runx += 1
473 if runx == 5:
475 elif runx > 5:
478 self._finder_penalty_add_history(runx, runhistory)
482 runx = 1
483 …result += self._finder_penalty_terminate_and_count(runcolor, runx, runhistory) * QrCode._PENALTY_N3
/third_party/qrcodegen/rust/src/
Dlib.rs649 let mut runx: i32 = 0; in get_penalty_score() localVariable
653 runx += 1; in get_penalty_score()
654 if runx == 5 { in get_penalty_score()
656 } else if runx > 5 { in get_penalty_score()
660 runhistory.add_history(runx); in get_penalty_score()
665 runx = 1; in get_penalty_score()
668 result += runhistory.terminate_and_count(runcolor, runx) * PENALTY_N3; in get_penalty_score()