/external/libvpx/libvpx/vpx_dsp/ |
intrapred.c | 18 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) 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(left[bs - 3 - i], left[bs - 2 - i], left[bs - 1 - i]) [all...] |
/external/webp/src/dsp/ |
dec.c | 252 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) 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(J, K, L) [all...] |
enc.c | 348 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) 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(J, K, L) [all...] |
enc_msa.c | 259 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) 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(A, B, C) [all...] |
enc_sse2.c | 704 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) 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); 803 const __m128i avg3 = _mm_avg_epu8(avg1, avg2); local 809 const __m128i avg4 = _mm_subs_epu8(avg3, lsb2); [all...] |
dec_sse2.c | 966 const __m128i avg3 = _mm_avg_epu8(avg1, avg2); local [all...] |