Lines Matching defs:mask
217 * Down point base value for case 1 mask pattern (concatenation of same color in a line or a column)
222 * Down point base value for case 2 mask pattern (module block of same color)
227 * Down point base value for case 3 mask pattern (1:1:3:1:1(dark:bright:dark:bright:dark)pattern in a line or a column)
232 * Down point base value for case 4 mask pattern (ration of dark modules in whole)
237 * if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
242 * if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
675 * Encode mask
676 * @param $mask (int) masking mode
678 protected function encodeMask($mask) {
720 if ($mask < 0) {
722 $masked = $this->mask($this->width, $this->frame, $this->level);
727 $masked = $this->makeMask($this->width, $this->frame, $mask, $this->level);
895 * @param $mask (array) masking mode
899 protected function writeFormatInformation($width, &$frame, $mask, $level) {
901 $format = $this->getFormatInfo($mask, $level);
939 * @return int mask
949 * @return int mask
959 * @return int mask
969 * @return int mask
979 * @return int mask
989 * @return int mask
999 * @return int mask
1009 * @return int mask
1017 * @param $maskNo (int) mask number
1029 $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y);
1071 * @return array mask
1172 * mask
1176 * @return array best mask
1178 protected function mask($width, $frame, $level) {
1193 $mask = array_fill(0, $width, str_repeat("\0", $width));
1196 $blacks = $this->makeMaskNo($i, $width, $frame, $mask);
1197 $blacks += $this->writeFormatInformation($width, $mask, $i, $level);
1200 $demerit += $this->evaluateSymbol($width, $mask);
1203 $bestMask = $mask;
2099 $mask = 1 << ($bits - 1);
2101 if ($num & $mask) {
2106 $mask = $mask >> 1;
2121 $mask = 0x80;
2123 if ($data[$i] & $mask) {
2129 $mask = $mask >> 1;
2446 * @param $mask (array)
2450 protected function getFormatInfo($mask, $level) {
2451 if (($mask < 0) OR ($mask > 7)) {
2457 return $this->formatInfo[$level][$mask];