Lines Matching defs:modules
205 /** The width and height of this QR Code, measured in modules, between
217 // Private grid of modules of this QR Code, packed tightly into bits.
219 private final int[] modules;
250 modules = tpl.template.clone();
252 // Compute ECC, draw modules, do masking
274 return getBit(modules[i >>> 5], i) != 0;
281 /*---- Private helper methods for constructor: Drawing function modules ----*/
319 modules[i >>> 5] &= ~(1 << i);
320 modules[i >>> 5] |= dark << i;
370 modules[j >>> 5] |= bit << j;
375 // XORs the codeword modules in this QR Code with the given mask pattern.
376 // The function modules must be marked and the codeword bits must be drawn
381 if (msk.length != modules.length)
384 modules[i] ^= msk[i];
412 // Calculates and returns the penalty score based on state of this QR Code's current modules.
427 int c = getBit(modules[index >>> 5], index);
444 nextRow = ((nextRow << 1) | getBit(modules[downIndex >>> 5], downIndex)) & 3;
445 // 2*2 blocks of modules having same color
459 int c = getBit(modules[index >>> 5], index);
477 // Balance of dark and light modules
510 // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().