Lines Matching defs:ecl
516 * @param $ecl (int) error correction level (0-8); default -1 = automatic correction level
521 public function __construct($code, $ecl=-1, $aspectratio=2, $macro=array()) {
578 $ecl = $this->getErrorCorrectionLevel($ecl, $numcw);
580 $errsize = (2 << $ecl);
633 $ecw = $this->getErrorCorrection($codewords, $ecl);
662 $L = ((30 * intval($r / 3)) + ($ecl * 3) + (($rows - 1) % 3));
687 $L = ((30 * intval($r / 3)) + ($ecl * 3) + (($rows - 1) % 3));
726 * @param $ecl (int) error correction level
731 protected function getErrorCorrectionLevel($ecl, $numcw) {
736 // $errsize = (2 << $ecl);
744 if (($ecl < 0) OR ($ecl > 8)) {
746 $ecl = 2;
748 $ecl = 3;
750 $ecl = 4;
752 $ecl = 5;
754 $ecl = $maxecl;
757 if ($ecl > $maxecl) {
758 $ecl = $maxecl;
761 return $ecl;
767 * @param $ecl (int) error correction level 0-8
771 protected function getErrorCorrection($cw, $ecl) {
773 $ecc = $this->rsfactors[$ecl];
775 $eclsize = (2 << $ecl);
776 // maximum index for $rsfactors[$ecl]