Lines Matching defs:col
119 * <li>region data col (with finder pattern)</li>
121 * <li>region data col (without finder pattern)</li>
292 $col = (($hr * $params[5]) + $c);
297 $grid[$row][$col] = 0;
299 $grid[$row][$col] = 1;
303 $grid[$row][$col] = 1;
306 $grid[$row][$col] = 1;
310 $grid[$row][$col] = 1;
312 $grid[$row][$col] = 0;
316 $grid[$row][$col] = $places[$i];
322 $grid[$row][$col] = (($cw[$cw_id] & $cw_bit) == 0) ? 0 : 1;
965 * @param $col (int) Column number.
971 protected function placeModule($marr, $nrow, $ncol, $row, $col, $chr, $bit) {
974 $col += (4 - (($nrow + 4) % 8));
976 if ($col < 0) {
977 $col += $ncol;
980 $marr[(($row * $ncol) + $col)] = ((10 * $chr) + $bit);
991 * @param $col (int) Column number.
996 protected function placeUtah($marr, $nrow, $ncol, $row, $col, $chr) {
997 $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-2, $chr, 1);
998 $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-1, $chr, 2);
999 $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-2, $chr, 3);
1000 $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-1, $chr, 4);
1001 $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col, $chr, 5);
1002 $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-2, $chr, 6);
1003 $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-1, $chr, 7);
1004 $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col, $chr, 8);
1110 $col = 0;
1113 if (($row == $nrow) AND ($col == 0)) {
1117 if (($row == ($nrow - 2)) AND ($col == 0) AND ($ncol % 4)) {
1121 if (($row == ($nrow - 2)) AND ($col == 0) AND (($ncol % 8) == 4)) {
1125 if (($row == ($nrow + 4)) AND ($col == 2) AND (!($ncol % 8))) {
1131 if (($row < $nrow) AND ($col >= 0) AND (!$marr[(($row * $ncol) + $col)])) {
1132 $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr);
1136 $col += 2;
1137 } while (($row >= 0) AND ($col < $ncol));
1139 $col += 3;
1142 if (($row >= 0) AND ($col < $ncol) AND (!$marr[(($row * $ncol) + $col)])) {
1143 $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr);
1147 $col -= 2;
1148 } while (($row < $nrow) AND ($col >= 0));
1150 ++$col;
1152 } while (($row < $nrow) OR ($col < $ncol));