Lines Matching refs:runLength
387 protected $runLength = array();
719 $this->runLength = array_fill(0, self::QRSPEC_WIDTH_MAX + 1, 0);
1088 if ($this->runLength[$i] >= 5) {
1089 $demerit += (self::N1 + ($this->runLength[$i] - 5));
1092 if (($i >= 3) AND ($i < ($length-2)) AND ($this->runLength[$i] % 3 == 0)) {
1093 $fact = (int)($this->runLength[$i] / 3);
1094 if (($this->runLength[$i-2] == $fact)
1095 AND ($this->runLength[$i-1] == $fact)
1096 AND ($this->runLength[$i+1] == $fact)
1097 AND ($this->runLength[$i+2] == $fact)) {
1098 if (($this->runLength[$i-3] < 0) OR ($this->runLength[$i-3] >= (4 * $fact))) {
1100 } elseif ((($i+3) >= $length) OR ($this->runLength[$i+3] >= (4 * $fact))) {
1121 $this->runLength[0] = 1;
1135 $this->runLength[0] = -1;
1137 $this->runLength[$head] = 1;
1141 $this->runLength[$head] = 1;
1143 $this->runLength[$head]++;
1151 $this->runLength[0] = 1;
1154 $this->runLength[0] = -1;
1156 $this->runLength[$head] = 1;
1160 $this->runLength[$head] = 1;
1162 $this->runLength[$head]++;