Lines Matching refs:sad
22 static INLINE unsigned int sad(const uint8_t *a, int a_stride, const uint8_t *b,
25 unsigned int sad = 0;
29 sad += abs(a[x] - b[x]);
35 return sad;
42 return sad(a, a_stride, b, b_stride, width, height); \
48 return sad(src, src_stride, ref, ref_stride, m, n); \
55 return sad(src, src_stride, comp_pred, m, m, n); \
63 return sad(src, src_stride, comp_pred, m, m, n); \
66 // Calculate sad against 4 reference locations and store each in sad_array
166 unsigned int sad = 0;
171 sad += abs(a[x] - b[x]);
177 return sad;
184 unsigned int sad = 0;
188 sad += abs(a[x] - b[x]);
194 return sad;