Lines Matching refs:y
43 for (int32_t y = 0; y < height - 1; y++) { in ApplyMaskPenaltyRule2() local
45 int32_t value = array[y * width + x]; in ApplyMaskPenaltyRule2()
46 if (value == array[y * width + x + 1] && in ApplyMaskPenaltyRule2()
47 value == array[(y + 1) * width + x] && in ApplyMaskPenaltyRule2()
48 value == array[(y + 1) * width + x + 1]) { in ApplyMaskPenaltyRule2()
62 for (int32_t y = 0; y < height; ++y) { in ApplyMaskPenaltyRule3() local
65 ((y >= 0 && y <= 6) || (y >= height - 7 && y <= height - 1))) { in ApplyMaskPenaltyRule3()
68 if (x == width - 7 && (y >= 0 && y <= 6)) { in ApplyMaskPenaltyRule3()
71 if (y == 0 && in ApplyMaskPenaltyRule3()
75 if (y == height - 7 && (x >= 0 && x <= 6)) { in ApplyMaskPenaltyRule3()
78 if (x + 6 < width && array[y * width + x] == 1 && in ApplyMaskPenaltyRule3()
79 array[y * width + x + 1] == 0 && array[y * width + x + 2] == 1 && in ApplyMaskPenaltyRule3()
80 array[y * width + x + 3] == 1 && array[y * width + x + 4] == 1 && in ApplyMaskPenaltyRule3()
81 array[y * width + x + 5] == 0 && array[y * width + x + 6] == 1 && in ApplyMaskPenaltyRule3()
82 ((x + 10 < width && array[y * width + x + 7] == 0 && in ApplyMaskPenaltyRule3()
83 array[y * width + x + 8] == 0 && array[y * width + x + 9] == 0 && in ApplyMaskPenaltyRule3()
84 array[y * width + x + 10] == 0) || in ApplyMaskPenaltyRule3()
85 (x - 4 >= 0 && array[y * width + x - 1] == 0 && in ApplyMaskPenaltyRule3()
86 array[y * width + x - 2] == 0 && array[y * width + x - 3] == 0 && in ApplyMaskPenaltyRule3()
87 array[y * width + x - 4] == 0))) { in ApplyMaskPenaltyRule3()
90 if (y + 6 < height && array[y * width + x] == 1 && in ApplyMaskPenaltyRule3()
91 array[(y + 1) * width + x] == 0 && array[(y + 2) * width + x] == 1 && in ApplyMaskPenaltyRule3()
92 array[(y + 3) * width + x] == 1 && array[(y + 4) * width + x] == 1 && in ApplyMaskPenaltyRule3()
93 array[(y + 5) * width + x] == 0 && array[(y + 6) * width + x] == 1 && in ApplyMaskPenaltyRule3()
94 ((y + 10 < height && array[(y + 7) * width + x] == 0 && in ApplyMaskPenaltyRule3()
95 array[(y + 8) * width + x] == 0 && in ApplyMaskPenaltyRule3()
96 array[(y + 9) * width + x] == 0 && in ApplyMaskPenaltyRule3()
97 array[(y + 10) * width + x] == 0) || in ApplyMaskPenaltyRule3()
98 (y - 4 >= 0 && array[(y - 1) * width + x] == 0 && in ApplyMaskPenaltyRule3()
99 array[(y - 2) * width + x] == 0 && in ApplyMaskPenaltyRule3()
100 array[(y - 3) * width + x] == 0 && in ApplyMaskPenaltyRule3()
101 array[(y - 4) * width + x] == 0))) { in ApplyMaskPenaltyRule3()
114 for (int32_t y = 0; y < height; ++y) { in ApplyMaskPenaltyRule4() local
116 if (array[y * width + x] == 1) { in ApplyMaskPenaltyRule4()
127 int32_t y, in GetDataMaskBit() argument
136 intermediate = (y + x) & 0x1; in GetDataMaskBit()
139 intermediate = y & 0x1; in GetDataMaskBit()
145 intermediate = (y + x) % 3; in GetDataMaskBit()
148 intermediate = ((y >> 1) + (x / 3)) & 0x1; in GetDataMaskBit()
151 temp = y * x; in GetDataMaskBit()
155 temp = y * x; in GetDataMaskBit()
159 temp = y * x; in GetDataMaskBit()
160 intermediate = (((temp % 3) + ((y + x) & 0x1)) & 0x1); in GetDataMaskBit()