/external/chromium_org/third_party/libyuv/unit_test/ |
H A D | scale_test.cc | 98 int abs_diff = Abs(dst_y_c[(i * dst_stride_y) + j] - local 100 if (abs_diff > max_diff) { 101 max_diff = abs_diff; 108 int abs_diff = Abs(dst_u_c[(i * dst_stride_uv) + j] - local 110 if (abs_diff > max_diff) { 111 max_diff = abs_diff; 113 abs_diff = Abs(dst_v_c[(i * dst_stride_uv) + j] - 115 if (abs_diff > max_diff) { 116 max_diff = abs_diff; 223 int abs_diff local 233 int abs_diff = Abs(dst_u_8[(i * dst_stride_uv) + j] - local [all...] |
H A D | convert_test.cc | 113 int abs_diff = \ 116 if (abs_diff > max_diff) { \ 117 max_diff = abs_diff; \ 124 int abs_diff = \ 129 if (abs_diff > max_diff) { \ 130 max_diff = abs_diff; \ 137 int abs_diff = \ 142 if (abs_diff > max_diff) { \ 143 max_diff = abs_diff; \ 245 int abs_diff [all...] |
H A D | scale_argb_test.cc | 85 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - local 87 if (abs_diff > max_diff) { 88 max_diff = abs_diff; 184 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - local 186 if (abs_diff > max_diff) { 187 max_diff = abs_diff;
|
H A D | planar_test.cc | 143 int abs_diff = local 146 if (abs_diff > max_diff) { 147 max_diff = abs_diff; 212 int abs_diff = local 215 if (abs_diff > max_diff) { 216 max_diff = abs_diff; 965 int abs_diff = \ 968 if (abs_diff > max_diff) { \ 969 max_diff = abs_diff; \ 1034 int abs_diff local 1403 int abs_diff = local 1474 int abs_diff = local 1545 int abs_diff = local 1613 int abs_diff = local 1682 int abs_diff = local 1749 int abs_diff = local 1819 int abs_diff = local [all...] |
/external/chromium_org/third_party/skia/dm/ |
H A D | DMUtil.cpp | 74 static unsigned abs_diff(unsigned a, unsigned b) { function in namespace:DM 95 max = SkTMax(max, abs_diff(ar, br)); 96 max = SkTMax(max, abs_diff(ag, bg)); 97 max = SkTMax(max, abs_diff(ab, bb)); 104 max = SkTMax(max, abs_diff(aBytes[i], bBytes[i]));
|
/external/skia/dm/ |
H A D | DMUtil.cpp | 57 static unsigned abs_diff(unsigned a, unsigned b) { function in namespace:DM 78 max = SkTMax(max, abs_diff(ar, br)); 79 max = SkTMax(max, abs_diff(ag, bg)); 80 max = SkTMax(max, abs_diff(ab, bb)); 87 max = SkTMax(max, abs_diff(aBytes[i], bBytes[i]));
|
/external/libyuv/files/unit_test/ |
H A D | scale_test.cc | 128 int abs_diff = abs(dst_y_c[(i * dst_stride_y) + j] - local 130 if (abs_diff > max_diff) { 131 max_diff = abs_diff; 138 int abs_diff = abs(dst_u_c[(i * dst_stride_uv) + j] - local 140 if (abs_diff > max_diff) { 141 max_diff = abs_diff; 143 abs_diff = abs(dst_v_c[(i * dst_stride_uv) + j] - 145 if (abs_diff > max_diff) { 146 max_diff = abs_diff;
|
H A D | planar_test.cc | 67 int abs_diff = \ 70 if (abs_diff > max_diff) { \ 71 max_diff = abs_diff; \ 144 int abs_diff = \ 147 if (abs_diff > max_diff) { \ 148 max_diff = abs_diff; \ 201 int abs_diff = \ 204 if (abs_diff > max_diff) { \ 205 max_diff = abs_diff; \ 212 int abs_diff [all...] |
H A D | rotate_argb_test.cc | 86 int abs_diff = abs(dst_argb_c[(i * dst_stride_argb) + j] - local 88 if (abs_diff > max_diff) 89 max_diff = abs_diff;
|
H A D | scale_argb_test.cc | 90 int abs_diff = abs(dst_argb_c[(i * dst_stride_argb) + j] - local 92 if (abs_diff > max_diff) { 93 max_diff = abs_diff;
|
/external/skia/src/utils/ |
H A D | SkTextureCompressor.cpp | 22 template <typename T> inline T abs_diff(const T &a, const T &b) { function 99 uint8_t bestError = abs_diff(pixels[i], palette[0]); 102 uint8_t error = abs_diff(pixels[i], palette[j]); 155 uint8_t bestError = abs_diff(pixels[i], palette[0]); 157 uint8_t error = abs_diff(pixels[i], palette[j]);
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/x86/ |
H A D | vp9_loopfilter_intrin_sse2.c | 15 static INLINE __m128i abs_diff(__m128i a, __m128i b) { function 53 abs_p1p0 = abs_diff(q1p1, q0p0); 57 abs_p0q0 = abs_diff(q0p0, p0q0); 58 abs_p1q1 = abs_diff(q1p1, p1q1); 72 work = _mm_max_epu8(abs_diff(q2p2, q1p1), 73 abs_diff(q3p3, q2p2)); 127 flat = _mm_max_epu8(abs_diff(q2p2, q0p0), abs_diff(q3p3, q0p0)); 141 flat2 = _mm_max_epu8(abs_diff(q4p4, q0p0), abs_diff(q5p [all...] |
/external/chromium_org/third_party/libwebp/dsp/ |
H A D | enc_neon.c | 918 const uint8x16_t abs_diff = vabdq_u8(a0, b0); local 919 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u8(abs_diff)); 920 prod = vmlal_u8(prod, vget_high_u8(abs_diff), vget_high_u8(abs_diff)); 955 const uint8x8_t abs_diff = vabd_u8(a0, b0); local 956 const uint16x8_t prod = vmull_u8(abs_diff, abs_diff); 965 const uint8x16_t abs_diff = vabdq_u8(a0, b0); local 966 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u [all...] |
/external/webp/src/dsp/ |
H A D | enc_neon.c | 918 const uint8x16_t abs_diff = vabdq_u8(a0, b0); local 919 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u8(abs_diff)); 920 prod = vmlal_u8(prod, vget_high_u8(abs_diff), vget_high_u8(abs_diff)); 955 const uint8x8_t abs_diff = vabd_u8(a0, b0); local 956 const uint16x8_t prod = vmull_u8(abs_diff, abs_diff); 965 const uint8x16_t abs_diff = vabdq_u8(a0, b0); local 966 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u [all...] |
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkTextureCompressor_LATC.cpp | 71 template <typename T> inline T abs_diff(const T &a, const T &b) { function 147 uint8_t bestError = abs_diff(pixels[i], palette[0]); 150 uint8_t error = abs_diff(pixels[i], palette[j]); 203 uint8_t bestError = abs_diff(pixels[i], palette[0]); 205 uint8_t error = abs_diff(pixels[i], palette[j]);
|
H A D | SkTextureCompressor_R11EAC.cpp | 128 abs_diff(pixel, compute_r11eac_pixel(center, palette[0], multiplier)); 132 const uint16_t perror = abs_diff(pixel, p);
|
/external/chromium_org/third_party/skia/tests/ |
H A D | BlendTest.cpp | 22 static uint8_t abs_diff(uint8_t a, uint8_t b) { 31 if (abs_diff(blend, golden) > maxDiff) { 34 ASSERT(abs_diff(blend, golden) <= maxDiff); 8 SkASSERT(d < 256); return uint8_t(d); } typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { SkASSERT(src <= srcAlpha); return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); } static uint8_t abs_diff(uint8_t a, uint8_t b) { const int diff = a - b; return diff > 0 ? diff : -diff; } static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, uint8_t dst, uint8_t src, uint8_t alpha) { const uint8_t golden = blend_double_round(dst, src, alpha); const uint8_t blend = algorithm(dst, src, alpha); if (abs_diff(blend, golden) > maxDiff) argument
|
/external/skia/tests/ |
H A D | BlendTest.cpp | 22 static uint8_t abs_diff(uint8_t a, uint8_t b) { 31 if (abs_diff(blend, golden) > maxDiff) { 34 ASSERT(abs_diff(blend, golden) <= maxDiff); 8 SkASSERT(d < 256); return uint8_t(d); } typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { SkASSERT(src <= srcAlpha); return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); } static uint8_t abs_diff(uint8_t a, uint8_t b) { const int diff = a - b; return diff > 0 ? diff : -diff; } static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, uint8_t dst, uint8_t src, uint8_t alpha) { const uint8_t golden = blend_double_round(dst, src, alpha); const uint8_t blend = algorithm(dst, src, alpha); if (abs_diff(blend, golden) > maxDiff) argument
|
/external/valgrind/main/coregrind/ |
H A D | m_stacktrace.c | 832 static Addr abs_diff ( Addr a1, Addr a2 ) { function 1002 if (abs_diff(cand, ips[i-1]) > 1) { 1019 if (abs_diff(cand, ips[i-1]) > 1) {
|
/external/opencv/cv/src/ |
H A D | cvapprox.cpp | 65 static const int abs_diff[] = { 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1 }; local 128 s = abs_diff[reader.code - prev_code + 7];
|
/external/chromium_org/v8/src/arm/ |
H A D | simulator-arm.cc | 3267 double abs_diff = local 3271 inexact_vfp_flag_ = (abs_diff != 0); 3279 if (abs_diff > 0.5) { 3281 } else if (abs_diff == 0.5) {
|