Home
last modified time | relevance | path

Searched refs:abs0 (Results 1 – 3 of 3) sorted by relevance

/external/webp/src/enc/
Dfilter.c19 static uint8_t abs0[255 + 255 + 1]; // abs(i) variable
31 abs0[255 + i] = (i < 0) ? -i : i; in InitTables()
32 abs1[255 + i] = abs0[255 + i] >> 1; in InitTables()
76 return (abs0[255 + p1 - p0] > thresh) || (abs0[255 + q1 - q0] > thresh); in hev()
81 return (2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) <= thresh; in needs_filter()
88 if ((2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) > t) in needs_filter2()
90 return abs0[255 + p3 - p2] <= it && abs0[255 + p2 - p1] <= it && in needs_filter2()
91 abs0[255 + p1 - p0] <= it && abs0[255 + q3 - q2] <= it && in needs_filter2()
92 abs0[255 + q2 - q1] <= it && abs0[255 + q1 - q0] <= it; in needs_filter2()
/external/webp/src/dsp/
Ddec.c22 static uint8_t abs0[255 + 255 + 1]; // abs(i) variable
36 abs0[255 + i] = (i < 0) ? -i : i; in DspInitTables()
37 abs1[255 + i] = abs0[255 + i] >> 1; in DspInitTables()
528 return (abs0[255 + p1 - p0] > thresh) || (abs0[255 + q1 - q0] > thresh); in hev()
533 return (2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) <= thresh; in needs_filter()
540 if ((2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) > t) in needs_filter2()
542 return abs0[255 + p3 - p2] <= it && abs0[255 + p2 - p1] <= it && in needs_filter2()
543 abs0[255 + p1 - p0] <= it && abs0[255 + q3 - q2] <= it && in needs_filter2()
544 abs0[255 + q2 - q1] <= it && abs0[255 + q1 - q0] <= it; in needs_filter2()
Denc_sse2.c48 const __m128i abs0 = _mm_sub_epi16(xor0, sign0); in CollectHistogramSSE2() local
51 const __m128i v0 = _mm_srai_epi16(abs0, 2); in CollectHistogramSSE2()