@@ 1149-1151 (lines=3) @@ | ||
1146 | } |
|
1147 | } else { |
|
1148 | $p = $parities[$code{0}]; |
|
1149 | for ($i = 1; $i < $half_len; ++$i) { |
|
1150 | $seq .= $codes[$p[$i - 1]][$code{$i}]; |
|
1151 | } |
|
1152 | } |
|
1153 | $seq .= '01010'; // center guard bar |
|
1154 | for ($i = $half_len; $i < $len; ++$i) { |
|
@@ 1246-1249 (lines=4) @@ | ||
1243 | $p = $parities[$len][$r]; |
|
1244 | $seq = '1011'; // left guard bar |
|
1245 | $seq .= $codes[$p[0]][$code{0}]; |
|
1246 | for ($i = 1; $i < $len; ++$i) { |
|
1247 | $seq .= '01'; // separator |
|
1248 | $seq .= $codes[$p[$i]][$code{$i}]; |
|
1249 | } |
|
1250 | $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); |
|
1251 | return $this->binseq_to_array($seq, $bararray); |
|
1252 | } |