Home
last modified time | relevance | path

Searched refs:symsize (Results 1 – 2 of 2) sorted by relevance

/plugin/barcodes/vendor/jucksearm/php-barcode/lib/
H A DQRcode.php2653 * @param $symsize (int) symbol size, bits
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);
2694 * @param $symsize (int) symbol size, bits
2702 protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) { argument
2706 if (($symsize < 0) OR ($symsize > 8)) {
2709 if (($fcr < 0) OR ($fcr >= (1<<$symsize))) {
2712 if (($prim <= 0) OR ($prim >= (1<<$symsize))) {
[all...]
/plugin/qrcode2/
H A Dphpqrcode.php2312 public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) argument
2321 if($symsize < 0 || $symsize > 8) return $rs;
2322 if($fcr < 0 || $fcr >= (1<<$symsize)) return $rs;
2323 if($prim <= 0 || $prim >= (1<<$symsize)) return $rs;
2325 if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) return $rs; // Too much padding
2328 $rs->mm = $symsize;
2329 $rs->nn = (1<<$symsize)-1;
2348 if($sr & (1<<$symsize)) {
2447 public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) argument
2452 if($rs->mm != $symsize) continue;
[all …]