Lines Matching refs:spec

679 		$spec = array(0, 0, 0, 0, 0);
685 $spec = $this->getEccSpec($this->version, $this->level, $spec);
686 $this->b1 = $this->rsBlockNum1($spec);
687 $this->dataLength = $this->rsDataLength($spec);
688 $this->eccLength = $this->rsEccLength($spec);
690 $this->blocks = $this->rsBlockNum($spec);
691 $ret = $this->init($spec);
817 protected function init($spec) { argument
818 $dl = $this->rsDataCodes1($spec);
819 $el = $this->rsEccCodes1($spec);
824 $endfor = $this->rsBlockNum1($spec);
838 if ($this->rsBlockNum2($spec) == 0) {
841 $dl = $this->rsDataCodes2($spec);
842 $el = $this->rsEccCodes2($spec);
847 $endfor = $this->rsBlockNum2($spec);
2343 protected function getEccSpec($version, $level, $spec) { argument
2344 if (count($spec) < 5) {
2345 $spec = array(0, 0, 0, 0, 0);
2352 $spec[0] = $b1;
2353 $spec[1] = (int)($data / $b1);
2354 $spec[2] = (int)($ecc / $b1);
2355 $spec[3] = 0;
2356 $spec[4] = 0;
2358 $spec[0] = $b1;
2359 $spec[1] = (int)($data / ($b1 + $b2));
2360 $spec[2] = (int)($ecc / ($b1 + $b2));
2361 $spec[3] = $b2;
2362 $spec[4] = $spec[1] + 1;
2364 return $spec;
2571 protected function rsBlockNum($spec) { argument
2572 return ($spec[0] + $spec[3]);
2580 protected function rsBlockNum1($spec) { argument
2581 return $spec[0];
2589 protected function rsDataCodes1($spec) { argument
2590 return $spec[1];
2598 protected function rsEccCodes1($spec) { argument
2599 return $spec[2];
2607 protected function rsBlockNum2($spec) { argument
2608 return $spec[3];
2616 protected function rsDataCodes2($spec) { argument
2617 return $spec[4];
2625 protected function rsEccCodes2($spec) { argument
2626 return $spec[2];
2634 protected function rsDataLength($spec) { argument
2635 return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]);
2643 protected function rsEccLength($spec) { argument
2644 return ($spec[0] + $spec[3]) * $spec[2];