Lines Matching refs:runLength
2507 public $runLength = array(); variable in QRmask
2512 $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
2667 if($this->runLength[$i] >= 5) {
2668 $demerit += (N1 + ($this->runLength[$i] - 5));
2671 if(($i >= 3) && ($i < ($length-2)) && ($this->runLength[$i] % 3 == 0)) {
2672 $fact = (int)($this->runLength[$i] / 3);
2673 if(($this->runLength[$i-2] == $fact) &&
2674 ($this->runLength[$i-1] == $fact) &&
2675 ($this->runLength[$i+1] == $fact) &&
2676 ($this->runLength[$i+2] == $fact)) {
2677 … if(($this->runLength[$i-3] < 0) || ($this->runLength[$i-3] >= (4 * $fact))) {
2679 … } else if((($i+3) >= $length) || ($this->runLength[$i+3] >= (4 * $fact))) {
2697 $this->runLength[0] = 1;
2714 $this->runLength[0] = -1;
2716 $this->runLength[$head] = 1;
2720 $this->runLength[$head] = 1;
2722 $this->runLength[$head]++;
2732 $this->runLength[0] = 1;
2736 $this->runLength[0] = -1;
2738 $this->runLength[$head] = 1;
2742 $this->runLength[$head] = 1;
2744 $this->runLength[$head]++;