Home
last modified time | relevance | path

Searched refs:runHistory (Results 1 – 6 of 6) sorted by relevance

/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrCode.java417 int[] runHistory = new int[7]; in getPenaltyScore() local
423 Arrays.fill(runHistory, 0); in getPenaltyScore()
435 finderPenaltyAddHistory(runX, runHistory); in getPenaltyScore()
437 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
450 result += finderPenaltyTerminateAndCount(runColor, runX, runHistory) * PENALTY_N3; in getPenaltyScore()
457 Arrays.fill(runHistory, 0); in getPenaltyScore()
467 finderPenaltyAddHistory(runY, runHistory); in getPenaltyScore()
469 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
474 result += finderPenaltyTerminateAndCount(runColor, runY, runHistory) * PENALTY_N3; in getPenaltyScore()
501 private int finderPenaltyCountPatterns(int[] runHistory) { in finderPenaltyCountPatterns() argument
[all …]
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrCode.java534 int[] runHistory = new int[7]; in getPenaltyScore() local
543 finderPenaltyAddHistory(runX, runHistory); in getPenaltyScore()
545 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
550 result += finderPenaltyTerminateAndCount(runColor, runX, runHistory) * PENALTY_N3; in getPenaltyScore()
556 int[] runHistory = new int[7]; in getPenaltyScore() local
565 finderPenaltyAddHistory(runY, runHistory); in getPenaltyScore()
567 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
572 result += finderPenaltyTerminateAndCount(runColor, runY, runHistory) * PENALTY_N3; in getPenaltyScore()
725 private int finderPenaltyCountPatterns(int[] runHistory) { in finderPenaltyCountPatterns() argument
726 int n = runHistory[1]; in finderPenaltyCountPatterns()
[all …]
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp594 std::array<int,7> runHistory = {}; in getPenaltyScore() local
603 finderPenaltyAddHistory(runX, runHistory); in getPenaltyScore()
605 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
610 result += finderPenaltyTerminateAndCount(runColor, runX, runHistory) * PENALTY_N3; in getPenaltyScore()
616 std::array<int,7> runHistory = {}; in getPenaltyScore() local
625 finderPenaltyAddHistory(runY, runHistory); in getPenaltyScore()
627 result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3; in getPenaltyScore()
632 result += finderPenaltyTerminateAndCount(runColor, runY, runHistory) * PENALTY_N3; in getPenaltyScore()
752 int QrCode::finderPenaltyCountPatterns(const std::array<int,7> &runHistory) const { in finderPenaltyCountPatterns()
753 int n = runHistory.at(1); in finderPenaltyCountPatterns()
[all …]
Dqrcodegen.hpp470 private: int finderPenaltyCountPatterns(const std::array<int,7> &runHistory) const;
474 …TerminateAndCount(bool currentRunColor, int currentRunLength, std::array<int,7> &runHistory) const;
478 private: void finderPenaltyAddHistory(int currentRunLength, std::array<int,7> &runHistory) const;
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts467 let runHistory = [0,0,0,0,0,0,0];
476 this.finderPenaltyAddHistory(runX, runHistory);
478 result += this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3;
483 result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * QrCode.PENALTY_N3;
489 let runHistory = [0,0,0,0,0,0,0];
498 this.finderPenaltyAddHistory(runY, runHistory);
500 result += this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3;
505 result += this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * QrCode.PENALTY_N3;
641 private finderPenaltyCountPatterns(runHistory: Readonly<Array<int>>): int {
642 const n: int = runHistory[1];
[all …]
/third_party/qrcodegen/c/
Dqrcodegen.c75 static int finderPenaltyCountPatterns(const int runHistory[7], int qrsize);
76 …enaltyTerminateAndCount(bool currentRunColor, int currentRunLength, int runHistory[7], int qrsize);
77 static void finderPenaltyAddHistory(int currentRunLength, int runHistory[7], int qrsize);
644 int runHistory[7] = {0}; in getPenaltyScore() local
653 finderPenaltyAddHistory(runX, runHistory, qrsize); in getPenaltyScore()
655 result += finderPenaltyCountPatterns(runHistory, qrsize) * PENALTY_N3; in getPenaltyScore()
660 result += finderPenaltyTerminateAndCount(runColor, runX, runHistory, qrsize) * PENALTY_N3; in getPenaltyScore()
666 int runHistory[7] = {0}; in getPenaltyScore() local
675 finderPenaltyAddHistory(runY, runHistory, qrsize); in getPenaltyScore()
677 result += finderPenaltyCountPatterns(runHistory, qrsize) * PENALTY_N3; in getPenaltyScore()
[all …]