Home
last modified time | relevance | path

Searched refs:AVG3 (Results 1 – 6 of 6) sorted by relevance

/external/libvpx/libvpx/vpx_dsp/
Dintrapred.c18 #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]); in d207_predictor()
33 dst[(bs - 2) * stride] = AVG3(left[bs - 2], left[bs - 1], left[bs - 1]); in d207_predictor()
52 dst[stride + c] = AVG3(above[c], above[c + 1], above[c + 2]); in d63_predictor()
70 dst[x] = AVG3(above[x], above[x + 1], above[x + 2]); in d45_predictor()
90 dst[0] = AVG3(left[0], above[-1], above[0]); in d117_predictor()
91 for (c = 1; c < bs; c++) dst[c] = AVG3(above[c - 2], above[c - 1], above[c]); in d117_predictor()
95 dst[0] = AVG3(above[-1], left[0], left[1]); in d117_predictor()
97 dst[(r - 2) * stride] = AVG3(left[r - 3], left[r - 2], left[r - 1]); in d117_predictor()
119 border[i] = AVG3(left[bs - 3 - i], left[bs - 2 - i], left[bs - 1 - i]); in d135_predictor()
[all …]
/external/webp/src/dsp/
Denc.c348 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) macro
353 AVG3(top[-1], top[0], top[1]), in VE4()
354 AVG3(top[ 0], top[1], top[2]), in VE4()
355 AVG3(top[ 1], top[2], top[3]), in VE4()
356 AVG3(top[ 2], top[3], top[4]) in VE4()
370 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); in HE4()
371 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); in HE4()
372 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); in HE4()
373 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); in HE4()
393 DST(0, 3) = AVG3(J, K, L); in RD4()
[all …]
Ddec.c252 #define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) macro
259 AVG3(top[-1], top[0], top[1]), in VE4_C()
260 AVG3(top[ 0], top[1], top[2]), in VE4_C()
261 AVG3(top[ 1], top[2], top[3]), in VE4_C()
262 AVG3(top[ 2], top[3], top[4]) in VE4_C()
277 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(A, B, C)); in HE4_C()
278 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(B, C, D)); in HE4_C()
279 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(C, D, E)); in HE4_C()
280 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(D, E, E)); in HE4_C()
302 DST(0, 3) = AVG3(J, K, L); in RD4_C()
[all …]
Denc_msa.c259 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro
281 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); in HE4()
282 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); in HE4()
283 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); in HE4()
284 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); in HE4()
349 DST(0, 3) = AVG3(K, J, I); in VR4()
350 DST(0, 2) = AVG3(J, I, X); in VR4()
351 DST(0, 1) = DST(1, 3) = AVG3(I, X, A); in VR4()
352 DST(1, 1) = DST(2, 3) = AVG3(X, A, B); in VR4()
353 DST(2, 1) = DST(3, 3) = AVG3(A, B, C); in VR4()
[all …]
Denc_sse2.c704 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro
739 WebPUint32ToMem(dst + 0 * BPS, 0x01010101U * AVG3(X, I, J)); in HE4_SSE2()
740 WebPUint32ToMem(dst + 1 * BPS, 0x01010101U * AVG3(I, J, K)); in HE4_SSE2()
741 WebPUint32ToMem(dst + 2 * BPS, 0x01010101U * AVG3(J, K, L)); in HE4_SSE2()
742 WebPUint32ToMem(dst + 3 * BPS, 0x01010101U * AVG3(K, L, L)); in HE4_SSE2()
791 DST(0, 2) = AVG3(J, I, X); in VR4_SSE2()
792 DST(0, 3) = AVG3(K, J, I); in VR4_SSE2()
846 DST(1, 0) = AVG3(I, J, K); in HU4_SSE2()
847 DST(3, 0) = DST(1, 1) = AVG3(J, K, L); in HU4_SSE2()
848 DST(3, 1) = DST(1, 2) = AVG3(K, L, L); in HU4_SSE2()
[all …]
Ddec_sse2.c892 #define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) macro
955 DST(0, 2) = AVG3(J, I, X); in VR4_SSE2()
956 DST(0, 3) = AVG3(K, J, I); in VR4_SSE2()
1008 #undef AVG3