Lines Matching refs:frame
161 public static function binarize($frame) argument
163 $len = count($frame);
164 foreach ($frame as &$frameLine) {
171 return $frame;
218 $frame = QRspec::newFrame($a);
221 QRimage::png(self::binarize($frame), $fileName, 1, 0);
224 $width = count($frame);
227 $mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true);
248 public static function dumpMask($frame) argument
250 $width = count($frame);
253 echo ord($frame[$y][$x]).',';
588 * @param frame
592 public static function putAlignmentMarker(array &$frame, $ox, $oy) argument
606 QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]);
611 public static function putAlignmentPattern($version, &$frame, $width) argument
626 self::putAlignmentMarker($frame, $x, $y);
632 self::putAlignmentMarker($frame, 6, $cx);
633 self::putAlignmentMarker($frame, $cx, 6);
641 self::putAlignmentMarker($frame, $cx, $cy);
700 * @param frame
704 public static function putFinderPattern(&$frame, $ox, $oy) argument
717 QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
726 $frame = array_fill(0, $width, $frameLine);
729 self::putFinderPattern($frame, 0, 0);
730 self::putFinderPattern($frame, $width - 7, 0);
731 self::putFinderPattern($frame, 0, $width - 7);
737 $frame[$y][7] = "\xc0";
738 $frame[$y][$width - 8] = "\xc0";
739 $frame[$yOffset][7] = "\xc0";
745 QRstr::set($frame, 0, 7, $setPattern);
746 QRstr::set($frame, $width-8, 7, $setPattern);
747 QRstr::set($frame, 0, $width - 8, $setPattern);
751 QRstr::set($frame, 0, 8, $setPattern);
752 QRstr::set($frame, $width - 8, 8, $setPattern, 8);
757 $frame[$y][8] = "\x84";
758 $frame[$yOffset][8] = "\x84";
764 $frame[6][7+$i] = chr(0x90 | ($i & 1));
765 $frame[7+$i][6] = chr(0x90 | ($i & 1));
769 self::putAlignmentPattern($version, $frame, $width);
779 $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1));
787 $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
794 $frame[$width - 8][8] = "\x81";
796 return $frame;
800 public static function debug($frame, $binary_mode = false) argument
804 foreach ($frame as &$frameLine) {
815 echo join("<br/ > ", $frame);
820 foreach ($frame as &$frameLine) {
847 echo join("<br/ >", $frame);
854 public static function serial($frame) argument
856 return gzcompress(join("\n", $frame), 9);
941 …public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveand… argument
943 $image = self::image($frame, $pixelPerPoint, $outerFrame);
962 …public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85… argument
964 $image = self::image($frame, $pixelPerPoint, $outerFrame);
977 private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4) argument
979 $h = count($frame);
980 $w = strlen($frame[0]);
994 if ($frame[$y][$x] == '1') {
2516 public function writeFormatInformation($width, &$frame, $mask, $level) argument
2529 $frame[8][$width - 1 - $i] = chr($v);
2531 $frame[$i][8] = chr($v);
2533 $frame[$i + 1][8] = chr($v);
2546 $frame[$width - 7 + $i][8] = chr($v);
2548 $frame[8][7] = chr($v);
2550 $frame[8][6 - $i] = chr($v);
2570 private function generateMaskNo($maskNo, $width, $frame) argument
2576 if(ord($frame[$y][$x]) & 0x80) {
2651 public function makeMask($width, $frame, $maskNo, $level) argument
2654 $this->makeMaskNo($maskNo, $width, $frame, $masked);
2690 public function evaluateSymbol($width, $frame) argument
2699 $frameY = $frame[$y];
2702 $frameYM = $frame[$y-1];
2735 if($y == 0 && (ord($frame[$y][$x]) & 1)) {
2740 if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) {
2757 public function mask($width, $frame, $level) argument
2776 $bestMask = $frame;
2783 $blacks = $this->makeMaskNo($i, $width, $frame, $mask);
2986 $frame = QRspec::newFrame($version);
2988 $filler = new FrameFiller($width, $frame);
3015 $frame = $filler->frame;
3024 $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel());
3026 …$masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8), $input->getErrorCorrec…
3029 … $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel());
3117 public $frame; variable in FrameFiller
3124 public function __construct($width, &$frame) argument
3127 $this->frame = $frame;
3137 $this->frame[$at['y']][$at['x']] = chr($val);
3143 return ord($this->frame[$at['y']][$at['x']]);
3195 } while(ord($this->frame[$y][$x]) & 0x80);