/external/libvpx/libvpx/vpx_dsp/ |
H A D | intrapred.c | 18 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro 32 dst[r * stride] = AVG3(left[r], left[r + 1], left[r + 2]); 33 dst[(bs - 2) * stride] = AVG3(left[bs - 2], left[bs - 1], left[bs - 1]); 52 dst[stride + c] = AVG3(above[c], above[c + 1], above[c + 2]); 70 dst[x] = AVG3(above[x], above[x + 1], above[x + 2]); 90 dst[0] = AVG3(left[0], above[-1], above[0]); 91 for (c = 1; c < bs; c++) dst[c] = AVG3(above[c - 2], above[c - 1], above[c]); 95 dst[0] = AVG3(above[-1], left[0], left[1]); 97 dst[(r - 2) * stride] = AVG3(left[r - 3], left[r - 2], left[r - 1]); 119 border[i] = AVG3(lef [all...] |
/external/webp/src/dsp/ |
H A D | dec.c | 252 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) macro 259 AVG3(top[-1], top[0], top[1]), 260 AVG3(top[ 0], top[1], top[2]), 261 AVG3(top[ 1], top[2], top[3]), 262 AVG3(top[ 2], top[3], top[4]) 277 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(A, B, C)); 278 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(B, C, D)); 279 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(C, D, E)); 280 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(D, E, E)); 302 DST(0, 3) = AVG3( 413 #undef AVG3 macro [all...] |
H A D | enc.c | 348 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) macro 353 AVG3(top[-1], top[0], top[1]), 354 AVG3(top[ 0], top[1], top[2]), 355 AVG3(top[ 1], top[2], top[3]), 356 AVG3(top[ 2], top[3], top[4]) 370 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); 371 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); 372 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); 373 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); 393 DST(0, 3) = AVG3( 515 #undef AVG3 macro [all...] |
H A D | enc_msa.c | 259 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro 281 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); 282 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); 283 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); 284 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); 349 DST(0, 3) = AVG3(K, J, I); 350 DST(0, 2) = AVG3(J, I, X); 351 DST(0, 1) = DST(1, 3) = AVG3(I, X, A); 352 DST(1, 1) = DST(2, 3) = AVG3(X, A, B); 353 DST(2, 1) = DST(3, 3) = AVG3( 431 #undef AVG3 macro [all...] |
H A D | dec_sse2.c | 892 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro 955 DST(0, 2) = AVG3(J, I, X); 956 DST(0, 3) = AVG3(K, J, I); 1008 #undef AVG3 macro
|
H A D | enc_sse2.c | 704 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro 739 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); 740 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); 741 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); 742 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); 791 DST(0, 2) = AVG3(J, I, X); 792 DST(0, 3) = AVG3(K, J, I); 846 DST(1, 0) = AVG3(I, J, K); 847 DST(3, 0) = DST(1, 1) = AVG3(J, K, L); 848 DST(3, 1) = DST(1, 2) = AVG3( 890 #undef AVG3 macro [all...] |