Home
last modified time | relevance | path

Searched refs:numAlign (Results 1 – 5 of 5) sorted by relevance

/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrTemplate.java79 int numAlign = alignPatPos.length; in drawFunctionPatterns() local
80 for (int i = 0; i < numAlign; i++) { in drawFunctionPatterns()
81 for (int j = 0; j < numAlign; j++) { in drawFunctionPatterns()
83 if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0)) in drawFunctionPatterns()
242 int numAlign = version / 7 + 2; in getAlignmentPatternPositions() local
244 (version * 4 + numAlign * 2 + 1) / (numAlign * 2 - 2) * 2; in getAlignmentPatternPositions()
245 int[] result = new int[numAlign]; in getAlignmentPatternPositions()
262 int numAlign = ver / 7 + 2; in getNumRawDataModules() local
263 result -= (25 * numAlign - 10) * numAlign - 55; in getNumRawDataModules()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrCode.java324 int numAlign = alignPatPos.length; in drawFunctionPatterns() local
325 for (int i = 0; i < numAlign; i++) { in drawFunctionPatterns()
326 for (int j = 0; j < numAlign; j++) { in drawFunctionPatterns()
328 if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0)) in drawFunctionPatterns()
614 int numAlign = version / 7 + 2; in getAlignmentPatternPositions() local
619 step = (version * 4 + numAlign * 2 + 1) / (numAlign * 2 - 2) * 2; in getAlignmentPatternPositions()
620 int[] result = new int[numAlign]; in getAlignmentPatternPositions()
643 int numAlign = ver / 7 + 2; in getNumRawDataModules() local
644 …result -= (numAlign - 1) * (numAlign - 1) * 25; // Subtract alignment patterns not overlapping wi… in getNumRawDataModules()
645 …result -= (numAlign - 2) * 2 * 20; // Subtract alignment patterns that overlap with timing patter… in getNumRawDataModules()
/third_party/qrcodegen/c/
Dqrcodegen.c343 int numAlign = ver / 7 + 2; in getNumRawDataModules() local
344 result -= (25 * numAlign - 10) * numAlign - 55; in getNumRawDataModules()
435 int numAlign = getAlignmentPatternPositions(version, alignPatPos); in initializeFunctionModules() local
436 for (int i = 0; i < numAlign; i++) { in initializeFunctionModules()
437 for (int j = 0; j < numAlign; j++) { in initializeFunctionModules()
439 if (!((i == 0 && j == 0) || (i == 0 && j == numAlign - 1) || (i == numAlign - 1 && j == 0))) in initializeFunctionModules()
479 int numAlign = getAlignmentPatternPositions(version, alignPatPos); in drawLightFunctionModules() local
480 for (int i = 0; i < numAlign; i++) { in drawLightFunctionModules()
481 for (int j = 0; j < numAlign; j++) { in drawLightFunctionModules()
482 if ((i == 0 && j == 0) || (i == 0 && j == numAlign - 1) || (i == numAlign - 1 && j == 0)) in drawLightFunctionModules()
[all …]
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp401 size_t numAlign = alignPatPos.size(); in drawFunctionPatterns() local
402 for (size_t i = 0; i < numAlign; i++) { in drawFunctionPatterns()
403 for (size_t j = 0; j < numAlign; j++) { in drawFunctionPatterns()
405 if (!((i == 0 && j == 0) || (i == 0 && j == numAlign - 1) || (i == numAlign - 1 && j == 0))) in drawFunctionPatterns()
668 int numAlign = version / 7 + 2; in getAlignmentPatternPositions() local
670 (version * 4 + numAlign * 2 + 1) / (numAlign * 2 - 2) * 2; in getAlignmentPatternPositions()
672 for (int i = 0, pos = size - 7; i < numAlign - 1; i++, pos -= step) in getAlignmentPatternPositions()
685 int numAlign = ver / 7 + 2; in getNumRawDataModules() local
686 result -= (25 * numAlign - 10) * numAlign - 55; in getNumRawDataModules()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts257 const numAlign: int = alignPatPos.length; constant
258 for (let i = 0; i < numAlign; i++) {
259 for (let j = 0; j < numAlign; j++) {
261 if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0))
542 const numAlign: int = Math.floor(this.version / 7) + 2; constant
544 Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
546 for (let pos = this.size - 7; result.length < numAlign; pos -= step)
561 const numAlign: int = Math.floor(ver / 7) + 2; constant
562 result -= (25 * numAlign - 10) * numAlign - 55;