@@ 2717-2724 (lines=8) @@ | ||
2714 | $this->runLength[0] = -1; |
|
2715 | $head = 1; |
|
2716 | $this->runLength[$head] = 1; |
|
2717 | } else if($x > 0) { |
|
2718 | if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) { |
|
2719 | $head++; |
|
2720 | $this->runLength[$head] = 1; |
|
2721 | } else { |
|
2722 | $this->runLength[$head]++; |
|
2723 | } |
|
2724 | } |
|
2725 | } |
|
2726 | ||
2727 | $demerit += $this->calcN1N3($head+1); |
|
@@ 2739-2746 (lines=8) @@ | ||
2736 | $this->runLength[0] = -1; |
|
2737 | $head = 1; |
|
2738 | $this->runLength[$head] = 1; |
|
2739 | } else if($y > 0) { |
|
2740 | if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) { |
|
2741 | $head++; |
|
2742 | $this->runLength[$head] = 1; |
|
2743 | } else { |
|
2744 | $this->runLength[$head]++; |
|
2745 | } |
|
2746 | } |
|
2747 | } |
|
2748 | ||
2749 | $demerit += $this->calcN1N3($head+1); |