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] = cr = wp[0]; op[1] = cg = wp[1]; op[2] = cb = wp[2]; in horizontalAccumulate11()
307 wp += 3; in horizontalAccumulate11()
310 op[0] = (cr += wp[0]) & mask; in horizontalAccumulate11()
311 op[1] = (cg += wp[1]) & mask; in horizontalAccumulate11()
312 op[2] = (cb += wp[2]) & mask; in horizontalAccumulate11()
315 op[0] = cr = wp[0]; op[1] = cg = wp[1]; in horizontalAccumulate11()
316 op[2] = cb = wp[2]; op[3] = ca = wp[3]; in horizontalAccumulate11()
319 wp += 4; in horizontalAccumulate11()
322 op[0] = (cr += wp[0]) & mask; in horizontalAccumulate11()
323 op[1] = (cg += wp[1]) & mask; in horizontalAccumulate11()
324 op[2] = (cb += wp[2]) & mask; in horizontalAccumulate11()
325 op[3] = (ca += wp[3]) & mask; in horizontalAccumulate11()
328 REPEAT(stride, *op = *wp&mask; wp++; op++) in horizontalAccumulate11()
332 wp[stride] += *wp; *op = *wp&mask; wp++; op++) in horizontalAccumulate11()
340 horizontalAccumulate8(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8() argument
348 op[0] = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8()
349 op[1] = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8()
350 op[2] = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8()
354 wp += 3; in horizontalAccumulate8()
356 op[0] = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8()
357 op[1] = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8()
358 op[2] = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8()
361 op[0] = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8()
362 op[1] = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8()
363 op[2] = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8()
364 op[3] = ToLinear8[ca = (wp[3] & mask)]; in horizontalAccumulate8()
368 wp += 4; in horizontalAccumulate8()
370 op[0] = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8()
371 op[1] = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8()
372 op[2] = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8()
373 op[3] = ToLinear8[(ca += wp[3]) & mask]; in horizontalAccumulate8()
376 REPEAT(stride, *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8()
380 wp[stride] += *wp; *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8()
389 horizontalAccumulate8abgr(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8abgr() argument
399 t1 = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8abgr()
400 t2 = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8abgr()
401 t3 = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8abgr()
408 wp += 3; in horizontalAccumulate8abgr()
411 t1 = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8abgr()
412 t2 = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8abgr()
413 t3 = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8abgr()
419 t0 = ToLinear8[ca = (wp[3] & mask)]; in horizontalAccumulate8abgr()
420 t1 = ToLinear8[cb = (wp[2] & mask)]; in horizontalAccumulate8abgr()
421 t2 = ToLinear8[cg = (wp[1] & mask)]; in horizontalAccumulate8abgr()
422 t3 = ToLinear8[cr = (wp[0] & mask)]; in horizontalAccumulate8abgr()
430 wp += 4; in horizontalAccumulate8abgr()
432 t0 = ToLinear8[(ca += wp[3]) & mask]; in horizontalAccumulate8abgr()
433 t1 = ToLinear8[(cb += wp[2]) & mask]; in horizontalAccumulate8abgr()
434 t2 = ToLinear8[(cg += wp[1]) & mask]; in horizontalAccumulate8abgr()
435 t3 = ToLinear8[(cr += wp[0]) & mask]; in horizontalAccumulate8abgr()
442 REPEAT(stride, *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8abgr()
446 wp[stride] += *wp; *op = ToLinear8[*wp&mask]; wp++; op++) in horizontalAccumulate8abgr()
919 horizontalDifferenceF(float *ip, int n, int stride, uint16 *wp, uint16 *FromLT2) in horizontalDifferenceF() argument
932 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
933 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
934 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
938 wp += 3; in horizontalDifferenceF()
940 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
941 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
942 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
945 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
946 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
947 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
948 a2 = wp[3] = (uint16) CLAMP(ip[3]); in horizontalDifferenceF()
952 wp += 4; in horizontalDifferenceF()
954 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
955 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
956 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
957 a1 = (int32) CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifferenceF()
961 wp += n - 1; /* point to last one */ in horizontalDifferenceF()
964 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
965 wp[stride] -= wp[0]; in horizontalDifferenceF()
966 wp[stride] &= mask; in horizontalDifferenceF()
967 wp--; ip--) in horizontalDifferenceF()
970 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp--; ip--) in horizontalDifferenceF()
977 unsigned short *wp, uint16 *From14) in horizontalDifference16() argument
988 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
989 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference16()
993 wp += 3; in horizontalDifference16()
995 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
996 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
997 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1000 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1001 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16()
1005 wp += 4; in horizontalDifference16()
1007 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
1008 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
1009 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1010 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifference16()
1014 wp += n - 1; /* point to last one */ in horizontalDifference16()
1017 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference16()
1018 wp[stride] -= wp[0]; in horizontalDifference16()
1019 wp[stride] &= mask; in horizontalDifference16()
1020 wp--; ip--) in horizontalDifference16()
1023 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference16()
1031 unsigned short *wp, uint16 *From8) in horizontalDifference8() argument
1041 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1042 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference8()
1046 r1 = CLAMP(ip[3]); wp[3] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1047 g1 = CLAMP(ip[4]); wp[4] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1048 b1 = CLAMP(ip[5]); wp[5] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1049 wp += 3; in horizontalDifference8()
1053 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1054 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8()
1058 r1 = CLAMP(ip[4]); wp[4] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1059 g1 = CLAMP(ip[5]); wp[5] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1060 b1 = CLAMP(ip[6]); wp[6] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1061 a1 = CLAMP(ip[7]); wp[7] = (a1-a2) & mask; a2 = a1; in horizontalDifference8()
1062 wp += 4; in horizontalDifference8()
1066 wp += n + stride - 1; /* point to last one */ in horizontalDifference8()
1070 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference8()
1071 wp[stride] -= wp[0]; in horizontalDifference8()
1072 wp[stride] &= mask; in horizontalDifference8()
1073 wp--; ip--) in horizontalDifference8()
1076 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference8()