for(i=0;i<h;i++) {
for(i=0;i<16;i++) {
int pix_abs16x16_xy2_c(UINT8 *pix1, UINT8 *pix2, int line_size, int h){    int s, i;    UINT8 *pix3 = pix2 + line_size;    s = 0;    for(i=0;i<h;i++) {        s += abs(pix1[0] - avg4(pix2[0], pix2[1], pix3[0], pix3[1]));        s += abs(pix1[1] - avg4(pix2[1], pix2[2], pix3[1], pix3[2]));        s += abs(pix1[2] - avg4(pix2[2], pix2[3], pix3[2], pix3[3]));        s += abs(pix1[3] - avg4(pix2[3], pix2[4], pix3[3], pix3[4]));        s += abs(pix1[4] - avg4(pix2[4], pix2[5], pix3[4], pix3[5]));        s += abs(pix1[5] - avg4(pix2[5], pix2[6], pix3[5], pix3[6]));        s += abs(pix1[6] - avg4(pix2[6], pix2[7], pix3[6], pix3[7]));        s += abs(pix1[7] - avg4(pix2[7], pix2[8], pix3[7], pix3[8]));        s += abs(pix1[8] - avg4(pix2[8], pix2[9], pix3[8], pix3[9]));        s += abs(pix1[9] - avg4(pix2[9], pix2[10], pix3[9], pix3[10]));        s += abs(pix1[10] - avg4(pix2[10], pix2[11], pix3[10], pix3[11]));        s += abs(pix1[11] - avg4(pix2[11], pix2[12], pix3[11], pix3[12]));        s += abs(pix1[12] - avg4(pix2[12], pix2[13], pix3[12], pix3[13]));        s += abs(pix1[13] - avg4(pix2[13], pix2[14], pix3[13], pix3[14]));        s += abs(pix1[14] - avg4(pix2[14], pix2[15], pix3[14], pix3[15]));        s += abs(pix1[15] - avg4(pix2[15], pix2[16], pix3[15], pix3[16]));        pix1 += line_size;        pix2 += line_size;        pix3 += line_size;    }    return s;}