Lines Matching refs:spec

237 	 * if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
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);
814 * @param $spec (array) array of ECC specification
817 protected function init($spec) {
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);
2340 * @param $spec (array) an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code}
2341 * @return array spec
2343 protected function getEccSpec($version, $level, $spec) {
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;
2568 * @param $spec (array)
2571 protected function rsBlockNum($spec) {
2572 return ($spec[0] + $spec[3]);
2577 * @param $spec (array)
2580 protected function rsBlockNum1($spec) {
2581 return $spec[0];
2586 * @param $spec (array)
2589 protected function rsDataCodes1($spec) {
2590 return $spec[1];
2595 * @param $spec (array)
2598 protected function rsEccCodes1($spec) {
2599 return $spec[2];
2604 * @param $spec (array)
2607 protected function rsBlockNum2($spec) {
2608 return $spec[3];
2613 * @param $spec (array)
2616 protected function rsDataCodes2($spec) {
2617 return $spec[4];
2622 * @param $spec (array)
2625 protected function rsEccCodes2($spec) {
2626 return $spec[2];
2631 * @param $spec (array)
2634 protected function rsDataLength($spec) {
2635 return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]);
2640 * @param $spec (array)
2643 protected function rsEccLength($spec) {
2644 return ($spec[0] + $spec[3]) * $spec[2];