Home
last modified time | relevance | path

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

/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrCode.java511 …private int finderPenaltyTerminateAndCount(int currentRunColor, int currentRunLength, int[] runHis… in finderPenaltyTerminateAndCount() argument
513 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
514 currentRunLength = 0; in finderPenaltyTerminateAndCount()
516 currentRunLength += size; // Add light border to final run in finderPenaltyTerminateAndCount()
517 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
523 private void finderPenaltyAddHistory(int currentRunLength, int[] runHistory) { in finderPenaltyAddHistory() argument
525 currentRunLength += size; // Add light border to initial run in finderPenaltyAddHistory()
527 runHistory[0] = currentRunLength; in finderPenaltyAddHistory()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrCode.java735 …private int finderPenaltyTerminateAndCount(boolean currentRunColor, int currentRunLength, int[] ru… in finderPenaltyTerminateAndCount() argument
737 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
738 currentRunLength = 0; in finderPenaltyTerminateAndCount()
740 currentRunLength += size; // Add light border to final run in finderPenaltyTerminateAndCount()
741 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
747 private void finderPenaltyAddHistory(int currentRunLength, int[] runHistory) { in finderPenaltyAddHistory() argument
749 currentRunLength += size; // Add light border to initial run in finderPenaltyAddHistory()
751 runHistory[0] = currentRunLength; in finderPenaltyAddHistory()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts651 …private finderPenaltyTerminateAndCount(currentRunColor: boolean, currentRunLength: int, runHistory…
653 this.finderPenaltyAddHistory(currentRunLength, runHistory);
654 currentRunLength = 0;
656 currentRunLength += this.size; // Add light border to final run
657 this.finderPenaltyAddHistory(currentRunLength, runHistory);
663 private finderPenaltyAddHistory(currentRunLength: int, runHistory: Array<int>): void {
665 currentRunLength += this.size; // Add light border to initial run
667 runHistory.unshift(currentRunLength);
/third_party/qrcodegen/c/
Dqrcodegen.c76 static int finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, int runHistor…
77 static void finderPenaltyAddHistory(int currentRunLength, int runHistory[7], int qrsize);
728 static int finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, int runHistor… in finderPenaltyTerminateAndCount() argument
730 finderPenaltyAddHistory(currentRunLength, runHistory, qrsize); in finderPenaltyTerminateAndCount()
731 currentRunLength = 0; in finderPenaltyTerminateAndCount()
733 currentRunLength += qrsize; // Add light border to final run in finderPenaltyTerminateAndCount()
734 finderPenaltyAddHistory(currentRunLength, runHistory, qrsize); in finderPenaltyTerminateAndCount()
740 static void finderPenaltyAddHistory(int currentRunLength, int runHistory[7], int qrsize) { in finderPenaltyAddHistory() argument
742 currentRunLength += qrsize; // Add light border to initial run in finderPenaltyAddHistory()
744 runHistory[0] = currentRunLength; in finderPenaltyAddHistory()
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp761 int QrCode::finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, std::array<i… in finderPenaltyTerminateAndCount() argument
763 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
764 currentRunLength = 0; in finderPenaltyTerminateAndCount()
766 currentRunLength += size; // Add light border to final run in finderPenaltyTerminateAndCount()
767 finderPenaltyAddHistory(currentRunLength, runHistory); in finderPenaltyTerminateAndCount()
772 void QrCode::finderPenaltyAddHistory(int currentRunLength, std::array<int,7> &runHistory) const { in finderPenaltyAddHistory() argument
774 currentRunLength += size; // Add light border to initial run in finderPenaltyAddHistory()
776 runHistory.at(0) = currentRunLength; in finderPenaltyAddHistory()
Dqrcodegen.hpp474 …private: int finderPenaltyTerminateAndCount(bool currentRunColor, int currentRunLength, std::array…
478 private: void finderPenaltyAddHistory(int currentRunLength, std::array<int,7> &runHistory) const;