Lines Matching defs:avg4
117 #define avg4(a, b, c, d) ((a + b + c + d + 2) >> 2)
212 s += abs(pix1[0] - avg4(pix2[0], pix2[1], pix3[0], pix3[1]));
213 s += abs(pix1[1] - avg4(pix2[1], pix2[2], pix3[1], pix3[2]));
214 s += abs(pix1[2] - avg4(pix2[2], pix2[3], pix3[2], pix3[3]));
215 s += abs(pix1[3] - avg4(pix2[3], pix2[4], pix3[3], pix3[4]));
216 s += abs(pix1[4] - avg4(pix2[4], pix2[5], pix3[4], pix3[5]));
217 s += abs(pix1[5] - avg4(pix2[5], pix2[6], pix3[5], pix3[6]));
218 s += abs(pix1[6] - avg4(pix2[6], pix2[7], pix3[6], pix3[7]));
219 s += abs(pix1[7] - avg4(pix2[7], pix2[8], pix3[7], pix3[8]));
220 s += abs(pix1[8] - avg4(pix2[8], pix2[9], pix3[8], pix3[9]));
221 s += abs(pix1[9] - avg4(pix2[9], pix2[10], pix3[9], pix3[10]));
222 s += abs(pix1[10] - avg4(pix2[10], pix2[11], pix3[10], pix3[11]));
223 s += abs(pix1[11] - avg4(pix2[11], pix2[12], pix3[11], pix3[12]));
224 s += abs(pix1[12] - avg4(pix2[12], pix2[13], pix3[12], pix3[13]));
225 s += abs(pix1[13] - avg4(pix2[13], pix2[14], pix3[13], pix3[14]));
226 s += abs(pix1[14] - avg4(pix2[14], pix2[15], pix3[14], pix3[15]));
227 s += abs(pix1[15] - avg4(pix2[15], pix2[16], pix3[15], pix3[16]));
304 s += abs(pix1[0] - avg4(pix2[0], pix2[1], pix3[0], pix3[1]));
305 s += abs(pix1[1] - avg4(pix2[1], pix2[2], pix3[1], pix3[2]));
306 s += abs(pix1[2] - avg4(pix2[2], pix2[3], pix3[2], pix3[3]));
307 s += abs(pix1[3] - avg4(pix2[3], pix2[4], pix3[3], pix3[4]));
308 s += abs(pix1[4] - avg4(pix2[4], pix2[5], pix3[4], pix3[5]));
309 s += abs(pix1[5] - avg4(pix2[5], pix2[6], pix3[5], pix3[6]));
310 s += abs(pix1[6] - avg4(pix2[6], pix2[7], pix3[6], pix3[7]));
311 s += abs(pix1[7] - avg4(pix2[7], pix2[8], pix3[7], pix3[8]));