Lines Matching refs:wp
114 horizontalAccumulateF(uint16 *wp, int n, int stride, float *op, in horizontalAccumulateF() argument
123 t0 = ToLinearF[cr = (wp[0] & mask)]; in horizontalAccumulateF()
124 t1 = ToLinearF[cg = (wp[1] & mask)]; in horizontalAccumulateF()
125 t2 = ToLinearF[cb = (wp[2] & mask)]; in horizontalAccumulateF()
131 wp += 3; in horizontalAccumulateF()
134 t0 = ToLinearF[(cr += wp[0]) & mask]; in horizontalAccumulateF()
135 t1 = ToLinearF[(cg += wp[1]) & mask]; in horizontalAccumulateF()
136 t2 = ToLinearF[(cb += wp[2]) & mask]; in horizontalAccumulateF()
142 t0 = ToLinearF[cr = (wp[0] & mask)]; in horizontalAccumulateF()
143 t1 = ToLinearF[cg = (wp[1] & mask)]; in horizontalAccumulateF()
144 t2 = ToLinearF[cb = (wp[2] & mask)]; in horizontalAccumulateF()
145 t3 = ToLinearF[ca = (wp[3] & mask)]; in horizontalAccumulateF()
152 wp += 4; in horizontalAccumulateF()
155 t0 = ToLinearF[(cr += wp[0]) & mask]; in horizontalAccumulateF()
156 t1 = ToLinearF[(cg += wp[1]) & mask]; in horizontalAccumulateF()
157 t2 = ToLinearF[(cb += wp[2]) & mask]; in horizontalAccumulateF()
158 t3 = ToLinearF[(ca += wp[3]) & mask]; in horizontalAccumulateF()
165 REPEAT(stride, *op = ToLinearF[*wp&mask]; wp++; op++) in horizontalAccumulateF()
169 wp[stride] += *wp; *op = ToLinearF[*wp&mask]; wp++; op++) in horizontalAccumulateF()
177 horizontalAccumulate12(uint16 *wp, int n, int stride, int16 *op, in horizontalAccumulate12() argument
189 t0 = ToLinearF[cr = (wp[0] & mask)] * SCALE12; in horizontalAccumulate12()
190 t1 = ToLinearF[cg = (wp[1] & mask)] * SCALE12; in horizontalAccumulate12()
191 t2 = ToLinearF[cb = (wp[2] & mask)] * SCALE12; in horizontalAccumulate12()
197 wp += 3; in horizontalAccumulate12()
200 t0 = ToLinearF[(cr += wp[0]) & mask] * SCALE12; in horizontalAccumulate12()
201 t1 = ToLinearF[(cg += wp[1]) & mask] * SCALE12; in horizontalAccumulate12()
202 t2 = ToLinearF[(cb += wp[2]) & mask] * SCALE12; in horizontalAccumulate12()
208 t0 = ToLinearF[cr = (wp[0] & mask)] * SCALE12; in horizontalAccumulate12()
209 t1 = ToLinearF[cg = (wp[1] & mask)] * SCALE12; in horizontalAccumulate12()
210 t2 = ToLinearF[cb = (wp[2] & mask)] * SCALE12; in horizontalAccumulate12()
211 t3 = ToLinearF[ca = (wp[3] & mask)] * SCALE12; in horizontalAccumulate12()
218 wp += 4; in horizontalAccumulate12()
221 t0 = ToLinearF[(cr += wp[0]) & mask] * SCALE12; in horizontalAccumulate12()
222 t1 = ToLinearF[(cg += wp[1]) & mask] * SCALE12; in horizontalAccumulate12()
223 t2 = ToLinearF[(cb += wp[2]) & mask] * SCALE12; in horizontalAccumulate12()
224 t3 = ToLinearF[(ca += wp[3]) & mask] * SCALE12; in horizontalAccumulate12()
231 REPEAT(stride, t0 = ToLinearF[*wp&mask] * SCALE12; in horizontalAccumulate12()
232 *op = CLAMP12(t0); wp++; op++) in horizontalAccumulate12()
236 wp[stride] += *wp; t0 = ToLinearF[wp[stride]&mask]*SCALE12; in horizontalAccumulate12()
237 *op = CLAMP12(t0); wp++; op++) in horizontalAccumulate12()
245 horizontalAccumulate16(uint16 *wp, int n, int stride, uint16 *op, in horizontalAccumulate16() argument
253 op[0] = ToLinear16[cr = (wp[0] & mask)]; in horizontalAccumulate16()
254 op[1] = ToLinear16[cg = (wp[1] & mask)]; in horizontalAccumulate16()
255 op[2] = ToLinear16[cb = (wp[2] & mask)]; in horizontalAccumulate16()
258 wp += 3; in horizontalAccumulate16()
261 op[0] = ToLinear16[(cr += wp[0]) & mask]; in horizontalAccumulate16()
262 op[1] = ToLinear16[(cg += wp[1]) & mask]; in horizontalAccumulate16()
263 op[2] = ToLinear16[(cb += wp[2]) & mask]; in horizontalAccumulate16()
266 op[0] = ToLinear16[cr = (wp[0] & mask)]; in horizontalAccumulate16()
267 op[1] = ToLinear16[cg = (wp[1] & mask)]; in horizontalAccumulate16()
268 op[2] = ToLinear16[cb = (wp[2] & mask)]; in horizontalAccumulate16()
269 op[3] = ToLinear16[ca = (wp[3] & mask)]; in horizontalAccumulate16()
272 wp += 4; in horizontalAccumulate16()
275 op[0] = ToLinear16[(cr += wp[0]) & mask]; in horizontalAccumulate16()
276 op[1] = ToLinear16[(cg += wp[1]) & mask]; in horizontalAccumulate16()
277 op[2] = ToLinear16[(cb += wp[2]) & mask]; in horizontalAccumulate16()
278 op[3] = ToLinear16[(ca += wp[3]) & mask]; in horizontalAccumulate16()
281 REPEAT(stride, *op = ToLinear16[*wp&mask]; wp++; op++) in horizontalAccumulate16()
285 wp[stride] += *wp; *op = ToLinear16[*wp&mask]; wp++; op++) in horizontalAccumulate16()
297 horizontalAccumulate11(uint16 *wp, int n, int stride, uint16 *op) in horizontalAccumulate11() argument
304 op[0] = wp[0]; op[1] = wp[1]; op[2] = wp[2]; in horizontalAccumulate11()
305 cr = wp[0]; cg = wp[1]; cb = wp[2]; in horizontalAccumulate11()
308 wp += 3; in horizontalAccumulate11()
311 op[0] = (uint16)((cr += wp[0]) & mask); in horizontalAccumulate11()
312 op[1] = (uint16)((cg += wp[1]) & mask); in horizontalAccumulate11()
313 op[2] = (uint16)((cb += wp[2]) & mask); in horizontalAccumulate11()
316 op[0] = wp[0]; op[1] = wp[1]; in horizontalAccumulate11()
317 op[2] = wp[2]; op[3] = wp[3]; in horizontalAccumulate11()
318 cr = wp[0]; cg = wp[1]; cb = wp[2]; ca = wp[3]; in horizontalAccumulate11()
321 wp += 4; in horizontalAccumulate11()
324 op[0] = (uint16)((cr += wp[0]) & mask); in horizontalAccumulate11()
325 op[1] = (uint16)((cg += wp[1]) & mask); in horizontalAccumulate11()
326 op[2] = (uint16)((cb += wp[2]) & mask); in horizontalAccumulate11()
327 op[3] = (uint16)((ca += wp[3]) & mask); in horizontalAccumulate11()
330 REPEAT(stride, *op = *wp&mask; wp++; op++) in horizontalAccumulate11()
334 wp[stride] += *wp; *op = *wp&mask; wp++; op++) in horizontalAccumulate11()
342 horizontalAccumulate8(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8() argument
350 op[0] = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8()
351 op[1] = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8()
352 op[2] = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8()
356 wp += 3; in horizontalAccumulate8()
358 op[0] = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8()
359 op[1] = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8()
360 op[2] = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8()
363 op[0] = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8()
364 op[1] = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8()
365 op[2] = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8()
366 op[3] = ToLinear8[ca = (wp[3] & mask)]; in horizontalAccumulate8()
370 wp += 4; in horizontalAccumulate8()
372 op[0] = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8()
373 op[1] = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8()
374 op[2] = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8()
375 op[3] = ToLinear8[(ca += wp[3]) & mask]; in horizontalAccumulate8()
378 REPEAT(stride, *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8()
382 wp[stride] += *wp; *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8()
391 horizontalAccumulate8abgr(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8abgr() argument
401 t1 = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8abgr()
402 t2 = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8abgr()
403 t3 = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8abgr()
410 wp += 3; in horizontalAccumulate8abgr()
413 t1 = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8abgr()
414 t2 = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8abgr()
415 t3 = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8abgr()
421 t0 = ToLinear8[ca = (wp[3] & mask)]; in horizontalAccumulate8abgr()
422 t1 = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8abgr()
423 t2 = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8abgr()
424 t3 = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8abgr()
432 wp += 4; in horizontalAccumulate8abgr()
434 t0 = ToLinear8[(ca += wp[3]) & mask]; in horizontalAccumulate8abgr()
435 t1 = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8abgr()
436 t2 = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8abgr()
437 t3 = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8abgr()
444 REPEAT(stride, *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8abgr()
448 wp[stride] += *wp; *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8abgr()
962 horizontalDifferenceF(float *ip, int n, int stride, uint16 *wp, uint16 *FromLT2) in horizontalDifferenceF() argument
975 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
976 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
977 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
981 wp += 3; in horizontalDifferenceF()
983 r1 = (int32) CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifferenceF()
984 g1 = (int32) CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifferenceF()
985 b1 = (int32) CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifferenceF()
988 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
989 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
990 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
991 a2 = wp[3] = (uint16) CLAMP(ip[3]); in horizontalDifferenceF()
995 wp += 4; in horizontalDifferenceF()
997 r1 = (int32) CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifferenceF()
998 g1 = (int32) CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifferenceF()
999 b1 = (int32) CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifferenceF()
1000 a1 = (int32) CLAMP(ip[3]); wp[3] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifferenceF()
1003 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp++; ip++) in horizontalDifferenceF()
1007 wp[0] = (uint16)(((int32)CLAMP(ip[0])-(int32)CLAMP(ip[-stride])) & mask); in horizontalDifferenceF()
1008 wp++; ip++) in horizontalDifferenceF()
1017 unsigned short *wp, uint16 *From14) in horizontalDifference16() argument
1028 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1029 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference16()
1033 wp += 3; in horizontalDifference16()
1035 r1 = CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference16()
1036 g1 = CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference16()
1037 b1 = CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference16()
1040 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1041 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16()
1045 wp += 4; in horizontalDifference16()
1047 r1 = CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference16()
1048 g1 = CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference16()
1049 b1 = CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference16()
1050 a1 = CLAMP(ip[3]); wp[3] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifference16()
1053 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp++; ip++) in horizontalDifference16()
1057 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference16()
1058 wp++; ip++) in horizontalDifference16()
1068 unsigned short *wp, uint16 *From8) in horizontalDifference8() argument
1078 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1079 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference8()
1083 r1 = CLAMP(ip[3]); wp[3] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference8()
1084 g1 = CLAMP(ip[4]); wp[4] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference8()
1085 b1 = CLAMP(ip[5]); wp[5] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference8()
1086 wp += 3; in horizontalDifference8()
1090 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1091 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8()
1095 r1 = CLAMP(ip[4]); wp[4] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference8()
1096 g1 = CLAMP(ip[5]); wp[5] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference8()
1097 b1 = CLAMP(ip[6]); wp[6] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference8()
1098 a1 = CLAMP(ip[7]); wp[7] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifference8()
1099 wp += 4; in horizontalDifference8()
1103 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp++; ip++) in horizontalDifference8()
1107 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference8()
1108 wp++; ip++) in horizontalDifference8()