Home
last modified time | relevance | path

Searched refs:abs_diff (Results 1 – 13 of 13) sorted by relevance

/external/libyuv/files/unit_test/
Dscale_test.cc113 int abs_diff = Abs(dst_y_c[(i * dst_stride_y) + j] - in TestFilter() local
115 if (abs_diff > max_diff) { in TestFilter()
116 max_diff = abs_diff; in TestFilter()
123 int abs_diff = Abs(dst_u_c[(i * dst_stride_uv) + j] - in TestFilter() local
125 if (abs_diff > max_diff) { in TestFilter()
126 max_diff = abs_diff; in TestFilter()
128 abs_diff = Abs(dst_v_c[(i * dst_stride_uv) + j] - in TestFilter()
130 if (abs_diff > max_diff) { in TestFilter()
131 max_diff = abs_diff; in TestFilter()
242 int abs_diff = Abs(dst_y_8[(i * dst_stride_y) + j] - in TestFilter_16() local
[all …]
Dconvert_test.cc105 int abs_diff = \
108 if (abs_diff > max_diff) { \
109 max_diff = abs_diff; \
116 int abs_diff = \
121 if (abs_diff > max_diff) { \
122 max_diff = abs_diff; \
129 int abs_diff = \
134 if (abs_diff > max_diff) { \
135 max_diff = abs_diff; \
236 int abs_diff = \
[all …]
Dscale_argb_test.cc101 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - in ARGBTestFilter() local
103 if (abs_diff > max_diff) { in ARGBTestFilter()
104 max_diff = abs_diff; in ARGBTestFilter()
210 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - in ARGBClipTestFilter() local
212 if (abs_diff > max_diff) { in ARGBClipTestFilter()
213 max_diff = abs_diff; in ARGBClipTestFilter()
419 int abs_diff = Abs(dst_argb_c[(i * dst_stride_argb) + j] - in YUVToARGBTestFilter() local
421 if (abs_diff > max_diff) { in YUVToARGBTestFilter()
423 abs_diff, in YUVToARGBTestFilter()
427 EXPECT_LE(abs_diff, 40); in YUVToARGBTestFilter()
[all …]
Dplanar_test.cc135 int abs_diff = in TestAttenuateI() local
138 if (abs_diff > max_diff) { in TestAttenuateI()
139 max_diff = abs_diff; in TestAttenuateI()
212 int abs_diff = in TestUnattenuateI() local
215 if (abs_diff > max_diff) { in TestUnattenuateI()
216 max_diff = abs_diff; in TestUnattenuateI()
1109 int abs_diff = in TestBlend() local
1112 if (abs_diff > max_diff) { in TestBlend()
1113 max_diff = abs_diff; in TestBlend()
1473 int abs_diff = in TestMultiply() local
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
Dgim_box_collision.h543 btVector3 abs_diff = diff.absolute(); in collide_triangle_exact() local
545 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v1,v3,extends); in collide_triangle_exact()
547 TEST_CROSS_EDGE_BOX_Y_AXIS_MCR(diff,abs_diff,v1,v3,extends); in collide_triangle_exact()
549 TEST_CROSS_EDGE_BOX_Z_AXIS_MCR(diff,abs_diff,v1,v3,extends); in collide_triangle_exact()
553 abs_diff = diff.absolute(); in collide_triangle_exact()
555 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v2,v1,extends); in collide_triangle_exact()
557 TEST_CROSS_EDGE_BOX_Y_AXIS_MCR(diff,abs_diff,v2,v1,extends); in collide_triangle_exact()
559 TEST_CROSS_EDGE_BOX_Z_AXIS_MCR(diff,abs_diff,v2,v1,extends); in collide_triangle_exact()
562 abs_diff = diff.absolute(); in collide_triangle_exact()
564 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v3,v2,extends); in collide_triangle_exact()
[all …]
DbtBoxCollision.h600 btVector3 abs_diff = diff.absolute(); in ATTRIBUTE_ALIGNED16() local
602 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v1,v3,extends); in ATTRIBUTE_ALIGNED16()
604 TEST_CROSS_EDGE_BOX_Y_AXIS_MCR(diff,abs_diff,v1,v3,extends); in ATTRIBUTE_ALIGNED16()
606 TEST_CROSS_EDGE_BOX_Z_AXIS_MCR(diff,abs_diff,v1,v3,extends); in ATTRIBUTE_ALIGNED16()
610 abs_diff = diff.absolute(); in ATTRIBUTE_ALIGNED16()
612 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v2,v1,extends); in ATTRIBUTE_ALIGNED16()
614 TEST_CROSS_EDGE_BOX_Y_AXIS_MCR(diff,abs_diff,v2,v1,extends); in ATTRIBUTE_ALIGNED16()
616 TEST_CROSS_EDGE_BOX_Z_AXIS_MCR(diff,abs_diff,v2,v1,extends); in ATTRIBUTE_ALIGNED16()
619 abs_diff = diff.absolute(); in ATTRIBUTE_ALIGNED16()
621 TEST_CROSS_EDGE_BOX_X_AXIS_MCR(diff,abs_diff,v3,v2,extends); in ATTRIBUTE_ALIGNED16()
[all …]
/external/libvpx/libvpx/vpx_dsp/x86/
Dloopfilter_sse2.c17 static INLINE __m128i abs_diff(__m128i a, __m128i b) { in abs_diff() function
55 abs_p1p0 = abs_diff(q1p1, q0p0); in mb_lpf_horizontal_edge_w_sse2_8()
59 abs_p0q0 = abs_diff(q0p0, p0q0); in mb_lpf_horizontal_edge_w_sse2_8()
60 abs_p1q1 = abs_diff(q1p1, p1q1); in mb_lpf_horizontal_edge_w_sse2_8()
74 work = _mm_max_epu8(abs_diff(q2p2, q1p1), in mb_lpf_horizontal_edge_w_sse2_8()
75 abs_diff(q3p3, q2p2)); in mb_lpf_horizontal_edge_w_sse2_8()
129 flat = _mm_max_epu8(abs_diff(q2p2, q0p0), abs_diff(q3p3, q0p0)); in mb_lpf_horizontal_edge_w_sse2_8()
143 flat2 = _mm_max_epu8(abs_diff(q4p4, q0p0), abs_diff(q5p5, q0p0)); in mb_lpf_horizontal_edge_w_sse2_8()
148 work = _mm_max_epu8(abs_diff(q6p6, q0p0), abs_diff(q7p7, q0p0)); in mb_lpf_horizontal_edge_w_sse2_8()
423 const __m128i abs_p1p0 = abs_diff(p1, p0); in mb_lpf_horizontal_edge_w_sse2_16()
[all …]
/external/webp/src/dsp/
Denc_neon.c762 const uint8x16_t abs_diff = vabdq_u8(a0, b0); in AccumulateSSE16() local
763 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u8(abs_diff)); in AccumulateSSE16()
764 prod = vmlal_u8(prod, vget_high_u8(abs_diff), vget_high_u8(abs_diff)); in AccumulateSSE16()
799 const uint8x8_t abs_diff = vabd_u8(a0, b0); in SSE8x8() local
800 const uint16x8_t prod = vmull_u8(abs_diff, abs_diff); in SSE8x8()
809 const uint8x16_t abs_diff = vabdq_u8(a0, b0); in SSE4x4() local
810 uint16x8_t prod = vmull_u8(vget_low_u8(abs_diff), vget_low_u8(abs_diff)); in SSE4x4()
811 prod = vmlal_u8(prod, vget_high_u8(abs_diff), vget_high_u8(abs_diff)); in SSE4x4()
/external/skia/src/utils/
DSkTextureCompressor_LATC.cpp72 template <typename T> inline T abs_diff(const T &a, const T &b) { in abs_diff() function
148 uint8_t bestError = abs_diff(pixels[i], palette[0]); in compress_latc_block_bb()
151 uint8_t error = abs_diff(pixels[i], palette[j]); in compress_latc_block_bb()
204 uint8_t bestError = abs_diff(pixels[i], palette[0]); in compress_latc_block_bb_ignore_extremal()
206 uint8_t error = abs_diff(pixels[i], palette[j]); in compress_latc_block_bb_ignore_extremal()
DSkTextureCompressor_R11EAC.cpp129 abs_diff(pixel, compute_r11eac_pixel(center, palette[0], multiplier)); in compress_heterogeneous_r11eac_block()
133 const uint16_t perror = abs_diff(pixel, p); in compress_heterogeneous_r11eac_block()
/external/opencv/cv/src/
Dcvapprox.cpp65 static const int abs_diff[] = { 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1 }; in icvApproximateChainTC89() local
128 s = abs_diff[reader.code - prev_code + 7]; in icvApproximateChainTC89()
/external/valgrind/coregrind/
Dm_stacktrace.c900 static Addr abs_diff ( Addr a1, Addr a2 ) { function
1070 if (abs_diff(cand, ips[i-1]) > 1) {
1087 if (abs_diff(cand, ips[i-1]) > 1) {
/external/v8/src/arm/
Dsimulator-arm.cc3643 double abs_diff = in DecodeVCVTBetweenFloatingPointAndInteger() local
3647 inexact_vfp_flag_ = (abs_diff != 0); in DecodeVCVTBetweenFloatingPointAndInteger()
3655 if (abs_diff > 0.5) { in DecodeVCVTBetweenFloatingPointAndInteger()
3657 } else if (abs_diff == 0.5) { in DecodeVCVTBetweenFloatingPointAndInteger()