/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/ |
H A D | QrCode.java | 417 int[] runHistory = new int[7]; in getPenaltyScore() 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 511 finderPenaltyTerminateAndCount(int currentRunColor, int currentRunLength, int[] runHistory) finderPenaltyTerminateAndCount() argument 523 finderPenaltyAddHistory(int currentRunLength, int[] runHistory) finderPenaltyAddHistory() argument [all...] |
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/ |
H A D | QrCode.java | 534 int[] runHistory = new int[7]; in getPenaltyScore() 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() 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[ in finderPenaltyCountPatterns() 735 finderPenaltyTerminateAndCount(boolean currentRunColor, int currentRunLength, int[] runHistory) finderPenaltyTerminateAndCount() argument 747 finderPenaltyAddHistory(int currentRunLength, int[] runHistory) finderPenaltyAddHistory() argument [all...] |
/third_party/qrcodegen/cpp/ |
H A D | qrcodegen.cpp | 594 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 in finderPenaltyCountPatterns() [all...] |
H A D | qrcodegen.hpp | 470 private: int finderPenaltyCountPatterns(const std::array<int,7> &runHistory) const; 474 private: int finderPenaltyTerminateAndCount(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/c/ |
H A D | qrcodegen.c | 75 static int finderPenaltyCountPatterns(const int runHistory[7], int qrsize); 76 static int finderPenaltyTerminateAndCount(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, qrsiz in getPenaltyScore() 716 finderPenaltyCountPatterns(const int runHistory[7], int qrsize) finderPenaltyCountPatterns() argument 728 finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, int runHistory[7], int qrsize) finderPenaltyTerminateAndCount() argument 740 finderPenaltyAddHistory(int currentRunLength, int runHistory[7], int qrsize) finderPenaltyAddHistory() argument [all...] |