Lines Matching refs:j
33 unsigned i, unsigned j, TYPE *value, unsigned comps) in TAG()
36 const TYPE *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 8 * comps); in TAG()
39 const char bit_pos = ((j&3) * 4 + (i&3)) * 3; in TAG()
82 TYPE i, j, aindex, acutValues[7]; in TAG() local
89 for (j = 0; j < numypixels; j++) { in TAG()
91 if (srccolors[j][i] == T_MIN) in TAG()
93 else if (srccolors[j][i] == T_MAX) in TAG()
96 if (srccolors[j][i] > alphabase[1]) in TAG()
97 alphabase[1] = srccolors[j][i]; in TAG()
98 if (srccolors[j][i] < alphabase[0]) in TAG()
99 alphabase[0] = srccolors[j][i]; in TAG()
139 for (j = 0; j < numypixels; j++) { in TAG()
143 if (srccolors[j][i] > acutValues[0]) { in TAG()
144 alphaenc1[4*j + i] = 0; in TAG()
145 alphadist = srccolors[j][i] - alphause[1]; in TAG()
147 else if (srccolors[j][i] > acutValues[1]) { in TAG()
148 alphaenc1[4*j + i] = 2; in TAG()
149 alphadist = srccolors[j][i] - (alphause[1] * 6 + alphause[0] * 1) / 7; in TAG()
151 else if (srccolors[j][i] > acutValues[2]) { in TAG()
152 alphaenc1[4*j + i] = 3; in TAG()
153 alphadist = srccolors[j][i] - (alphause[1] * 5 + alphause[0] * 2) / 7; in TAG()
155 else if (srccolors[j][i] > acutValues[3]) { in TAG()
156 alphaenc1[4*j + i] = 4; in TAG()
157 alphadist = srccolors[j][i] - (alphause[1] * 4 + alphause[0] * 3) / 7; in TAG()
159 else if (srccolors[j][i] > acutValues[4]) { in TAG()
160 alphaenc1[4*j + i] = 5; in TAG()
161 alphadist = srccolors[j][i] - (alphause[1] * 3 + alphause[0] * 4) / 7; in TAG()
163 else if (srccolors[j][i] > acutValues[5]) { in TAG()
164 alphaenc1[4*j + i] = 6; in TAG()
165 alphadist = srccolors[j][i] - (alphause[1] * 2 + alphause[0] * 5) / 7; in TAG()
167 else if (srccolors[j][i] > acutValues[6]) { in TAG()
168 alphaenc1[4*j + i] = 7; in TAG()
169 alphadist = srccolors[j][i] - (alphause[1] * 1 + alphause[0] * 6) / 7; in TAG()
172 alphaenc1[4*j + i] = 1; in TAG()
173 alphadist = srccolors[j][i] - alphause[0]; in TAG()
188 for (j = 0; j < numypixels; j++) { in TAG()
190 fprintf(stderr, "%d ", srccolors[j][i]); in TAG()
207 for (j = 0; j < numypixels; j++) { in TAG()
211 if (srccolors[j][i] == T_MIN) { in TAG()
212 alphaenc2[4*j + i] = 6; in TAG()
215 else if (srccolors[j][i] == T_MAX) { in TAG()
216 alphaenc2[4*j + i] = 7; in TAG()
219 else if (srccolors[j][i] <= acutValues[0]) { in TAG()
220 alphaenc2[4*j + i] = 0; in TAG()
221 alphadist = srccolors[j][i] - alphabase[0]; in TAG()
223 else if (srccolors[j][i] <= acutValues[1]) { in TAG()
224 alphaenc2[4*j + i] = 2; in TAG()
225 alphadist = srccolors[j][i] - (alphabase[0] * 4 + alphabase[1] * 1) / 5; in TAG()
227 else if (srccolors[j][i] <= acutValues[2]) { in TAG()
228 alphaenc2[4*j + i] = 3; in TAG()
229 alphadist = srccolors[j][i] - (alphabase[0] * 3 + alphabase[1] * 2) / 5; in TAG()
231 else if (srccolors[j][i] <= acutValues[3]) { in TAG()
232 alphaenc2[4*j + i] = 4; in TAG()
233 alphadist = srccolors[j][i] - (alphabase[0] * 2 + alphabase[1] * 3) / 5; in TAG()
235 else if (srccolors[j][i] <= acutValues[4]) { in TAG()
236 alphaenc2[4*j + i] = 5; in TAG()
237 alphadist = srccolors[j][i] - (alphabase[0] * 1 + alphabase[1] * 4) / 5; in TAG()
240 alphaenc2[4*j + i] = 1; in TAG()
241 alphadist = srccolors[j][i] - alphabase[1]; in TAG()
258 for (j = 0; j < numypixels; j++) { in TAG()
260 …if ((srccolors[j][i] > alphatest[1]) && (srccolors[j][i] < (T_MAX -(alphabase[1] - alphabase[0]) /… in TAG()
261 alphatest[1] = srccolors[j][i]; in TAG()
262 … if ((srccolors[j][i] < alphatest[0]) && (srccolors[j][i] > (alphabase[1] - alphabase[0]) / 28)) in TAG()
263 alphatest[0] = srccolors[j][i]; in TAG()
283 for (j = 0; j < numypixels; j++) { in TAG()
285 if (srccolors[j][i] <= alphatest[0] / 2) { in TAG()
287 else if (srccolors[j][i] > ((T_MAX + alphatest[1]) / 2)) { in TAG()
289 else if (srccolors[j][i] <= acutValues[0]) { in TAG()
290 blockerrlin1 += (srccolors[j][i] - alphatest[0]); in TAG()
293 else if (srccolors[j][i] <= acutValues[1]) { in TAG()
294 blockerrlin1 += (srccolors[j][i] - (alphatest[0] * 4 + alphatest[1] * 1) / 5); in TAG()
295 blockerrlin2 += (srccolors[j][i] - (alphatest[0] * 4 + alphatest[1] * 1) / 5); in TAG()
299 else if (srccolors[j][i] <= acutValues[2]) { in TAG()
300 blockerrlin1 += (srccolors[j][i] - (alphatest[0] * 3 + alphatest[1] * 2) / 5); in TAG()
301 blockerrlin2 += (srccolors[j][i] - (alphatest[0] * 3 + alphatest[1] * 2) / 5); in TAG()
305 else if (srccolors[j][i] <= acutValues[3]) { in TAG()
306 blockerrlin1 += (srccolors[j][i] - (alphatest[0] * 2 + alphatest[1] * 3) / 5); in TAG()
307 blockerrlin2 += (srccolors[j][i] - (alphatest[0] * 2 + alphatest[1] * 3) / 5); in TAG()
311 else if (srccolors[j][i] <= acutValues[4]) { in TAG()
312 blockerrlin1 += (srccolors[j][i] - (alphatest[0] * 1 + alphatest[1] * 4) / 5); in TAG()
313 blockerrlin2 += (srccolors[j][i] - (alphatest[0] * 1 + alphatest[1] * 4) / 5); in TAG()
318 blockerrlin2 += (srccolors[j][i] - alphatest[1]); in TAG()
345 for (j = 0; j < numypixels; j++) { in TAG()
349 if (srccolors[j][i] <= alphatest[0] / 2) { in TAG()
350 alphaenc3[4*j + i] = 6; in TAG()
351 alphadist = srccolors[j][i]; in TAG()
353 else if (srccolors[j][i] > ((T_MAX + alphatest[1]) / 2)) { in TAG()
354 alphaenc3[4*j + i] = 7; in TAG()
355 alphadist = T_MAX - srccolors[j][i]; in TAG()
357 else if (srccolors[j][i] <= acutValues[0]) { in TAG()
358 alphaenc3[4*j + i] = 0; in TAG()
359 alphadist = srccolors[j][i] - alphatest[0]; in TAG()
361 else if (srccolors[j][i] <= acutValues[1]) { in TAG()
362 alphaenc3[4*j + i] = 2; in TAG()
363 alphadist = srccolors[j][i] - (alphatest[0] * 4 + alphatest[1] * 1) / 5; in TAG()
365 else if (srccolors[j][i] <= acutValues[2]) { in TAG()
366 alphaenc3[4*j + i] = 3; in TAG()
367 alphadist = srccolors[j][i] - (alphatest[0] * 3 + alphatest[1] * 2) / 5; in TAG()
369 else if (srccolors[j][i] <= acutValues[3]) { in TAG()
370 alphaenc3[4*j + i] = 4; in TAG()
371 alphadist = srccolors[j][i] - (alphatest[0] * 2 + alphatest[1] * 3) / 5; in TAG()
373 else if (srccolors[j][i] <= acutValues[4]) { in TAG()
374 alphaenc3[4*j + i] = 5; in TAG()
375 alphadist = srccolors[j][i] - (alphatest[0] * 1 + alphatest[1] * 4) / 5; in TAG()
378 alphaenc3[4*j + i] = 1; in TAG()
379 alphadist = srccolors[j][i] - alphatest[1]; in TAG()