Lines Matching refs:x

99 		public static function set(&$srctab, $x, $y, $repl, $replLen = false) {  argument
100 …_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false…
252 for($x=0;$x<$width;$x++) {
253 echo ord($frame[$y][$x]).',';
624 $x = self::$alignmentPattern[$version][0];
626 self::putAlignmentMarker($frame, $x, $y);
631 for($x=1; $x<$w - 1; $x++) {
640 for($x=0; $x<$w-1; $x++) {
777 for($x=0; $x<6; $x++) {
779 $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1));
786 for($x=0; $x<3; $x++) {
787 $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
993 for($x=0; $x<$w; $x++) {
994 if ($frame[$y][$x] == '1') {
995 ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]);
2301 public function modnn($x) argument
2303 while ($x >= $this->nn) {
2304 $x -= $this->nn;
2305 $x = ($x >> $this->mm) + ($x & $this->nn);
2308 return $x;
2560 public function mask0($x, $y) { return ($x+$y)&1; } argument
2561 public function mask1($x, $y) { return ($y&1); } argument
2562 public function mask2($x, $y) { return ($x%3); } argument
2563 public function mask3($x, $y) { return ($x+$y)%3; } argument
2564 public function mask4($x, $y) { return (((int)($y/2))+((int)($x/3)))&1; } argument
2565 public function mask5($x, $y) { return (($x*$y)&1)+($x*$y)%3; } argument
2566 public function mask6($x, $y) { return ((($x*$y)&1)+($x*$y)%3)&1; } argument
2567 public function mask7($x, $y) { return ((($x*$y)%3)+(($x+$y)&1))&1; } argument
2575 for($x=0; $x<$width; $x++) {
2576 if(ord($frame[$y][$x]) & 0x80) {
2577 $bitMask[$y][$x] = 0;
2579 $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y);
2580 $bitMask[$y][$x] = ($maskFunc == 0)?1:0;
2639 for($x=0; $x<$width; $x++) {
2640 if($bitMask[$y][$x] == 1) {
2641 $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]);
2643 $b += (int)(ord($d[$y][$x]) & 1);
2704 for($x=0; $x<$width; $x++) {
2705 if(($x > 0) && ($y > 0)) {
2706 … $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
2707 … $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
2713 if(($x == 0) && (ord($frameY[$x]) & 1)) {
2717 } else if($x > 0) {
2718 if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) {
2730 for($x=0; $x<$width; $x++) {
2735 if($y == 0 && (ord($frame[$y][$x]) & 1)) {
2740 if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) {
3118 public $x; variable in FrameFiller
3128 $this->x = $width - 1;
3153 return array('x'=>$this->x, 'y'=>$this->y);
3156 $x = $this->x;
3161 $x--;
3164 $x++;
3172 $x -= 2;
3174 if($x == 6) {
3175 $x--;
3182 $x -= 2;
3184 if($x == 6) {
3185 $x--;
3190 if($x < 0 || $y < 0) return null;
3192 $this->x = $x;
3195 } while(ord($this->frame[$y][$x]) & 0x80);
3197 return array('x'=>$x, 'y'=>$y);