Searched refs:nroots (Results 1 – 2 of 2) sorted by relevance
/plugin/qrcode2/ |
H A D | phpqrcode.php | 2293 public $nroots; // Number of generator roots = number of parity symbols variable in QRrsItem 2312 public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) argument 2324 …if($nroots < 0 || $nroots >= (1<<$symsize)) return $rs; // Can't have more roots than sym… 2361 $rs->genpoly = array_fill(0, $nroots+1, 0); 2365 $rs->nroots = $nroots; 2375 for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) { 2391 for ($i = 0; $i <= $nroots; $i++) 2405 $NROOTS =& $this->nroots; 2447 public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) argument 2451 if($rs->nroots != $nroots) continue; [all …]
|
/plugin/barcodes/vendor/jucksearm/php-barcode/lib/ |
H A D | QRcode.php | 2657 * @param $nroots (int) RS code generator polynomial degree (number of roots) 2659 * @return array Array of RS values:<ul><li>mm = Bits per symbol;</li><li>nn = Symbols per block;</li><li>alpha_to = log lookup table array;</li><li>index_of = Antilog lookup table array;</li><li>genpoly = Generator polynomial array;</li><li>nroots = Number of generator;</li><li>roots = number of parity symbols;</li><li>fcr = First consecutive root, index form;</li><li>prim = Primitive element, index form;</li><li>iprim = prim-th root of 1, index form;</li><li>pad = Padding bytes in shortened block;</li><li>gfpoly</ul>. 2661 protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) { argument 2663 if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize) 2669 $rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad); 2698 * @param $nroots (int) RS code generator polynomial degree (number of roots) 2700 * @return array Array of RS values:<ul><li>mm = Bits per symbol;</li><li>nn = Symbols per block;</li><li>alpha_to = log lookup table array;</li><li>index_of = Antilog lookup table array;</li><li>genpoly = Generator polynomial array;</li><li>nroots = Number of generator;</li><li>roots = number of parity symbols;</li><li>fcr = First consecutive root, index form;</li><li>prim = Primitive element, index form;</li><li>iprim = prim-th root of 1, index form;</li><li>pad = Padding bytes in shortened block;</li><li>gfpoly</ul>. 2702 protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) { argument 2715 if (($nroots < [all...] |