Home
last modified time | relevance | path

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

/third_party/openh264/codec/processing/src/vaacalc/
Dvaacalcfuncs.cpp370 int32_t abs_diff = WELS_ABS (diff); in VAACalcSadSsdBgd_c() local
373 if (abs_diff > l_mad) { in VAACalcSadSsdBgd_c()
374 l_mad = abs_diff; in VAACalcSadSsdBgd_c()
376 l_sad += abs_diff; in VAACalcSadSsdBgd_c()
377 l_sqdiff += abs_diff * abs_diff; in VAACalcSadSsdBgd_c()
399 int32_t abs_diff = WELS_ABS (diff); in VAACalcSadSsdBgd_c() local
402 if (abs_diff > l_mad) { in VAACalcSadSsdBgd_c()
403 l_mad = abs_diff; in VAACalcSadSsdBgd_c()
405 l_sad += abs_diff; in VAACalcSadSsdBgd_c()
406 l_sqdiff += abs_diff * abs_diff; in VAACalcSadSsdBgd_c()
[all …]
/third_party/openh264/test/processing/
DProcessUT_VaaCalc.cpp341 int32_t abs_diff = WELS_ABS (diff); in VAACalcSadSsdBgd_ref() local
344 if (abs_diff > l_mad) { in VAACalcSadSsdBgd_ref()
345 l_mad = abs_diff; in VAACalcSadSsdBgd_ref()
347 l_sad += abs_diff; in VAACalcSadSsdBgd_ref()
348 l_sqdiff += abs_diff * abs_diff; in VAACalcSadSsdBgd_ref()
370 int32_t abs_diff = WELS_ABS (diff); in VAACalcSadSsdBgd_ref() local
373 if (abs_diff > l_mad) { in VAACalcSadSsdBgd_ref()
374 l_mad = abs_diff; in VAACalcSadSsdBgd_ref()
376 l_sad += abs_diff; in VAACalcSadSsdBgd_ref()
377 l_sqdiff += abs_diff * abs_diff; in VAACalcSadSsdBgd_ref()
[all …]
/third_party/skia/third_party/externals/libwebp/src/dsp/
Denc_neon.c754 const uint8x16_t abs_diff = vabdq_u8(a0, b0); in AccumulateSSE16_NEON() local
755 const uint16x8_t prod1 = vmull_u8(vget_low_u8(abs_diff), in AccumulateSSE16_NEON()
756 vget_low_u8(abs_diff)); in AccumulateSSE16_NEON()
757 const uint16x8_t prod2 = vmull_u8(vget_high_u8(abs_diff), in AccumulateSSE16_NEON()
758 vget_high_u8(abs_diff)); in AccumulateSSE16_NEON()
796 const uint8x8_t abs_diff = vabd_u8(a0, b0); in SSE8x8_NEON() local
797 const uint16x8_t prod = vmull_u8(abs_diff, abs_diff); in SSE8x8_NEON()
806 const uint8x16_t abs_diff = vabdq_u8(a0, b0); in SSE4x4_NEON() local
807 const uint16x8_t prod1 = vmull_u8(vget_low_u8(abs_diff), in SSE4x4_NEON()
808 vget_low_u8(abs_diff)); in SSE4x4_NEON()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_amplify.c118 float diff, abs_diff, avg; \
127 abs_diff = fabsf(diff); \
129 if (abs_diff < threshold && abs_diff > tolerance) { \
130 float amp = copysignf(fminf(abs_diff * factor, limit[diff >= 0]), diff); \
/third_party/openh264/codec/processing/src/loongarch/
Dvaa_lasx.c56 abs_diff = __lasx_xvabsd_hu(in0, in1);\
57 vec_l_sad = __lasx_xvadd_h(vec_l_sad, abs_diff);\
59 vec_l_mad = __lasx_xvmax_hu(abs_diff, vec_l_mad);\
111 __m256i abs_diff, vec_l_sad, vec_l_mad; in VAACalcSadBgd_lasx() local
/third_party/ffmpeg/tests/checkasm/
Dcheckasm.c336 float abs_diff = fabsf(a - b); in float_near_abs_eps() local
337 if (abs_diff < eps) in float_near_abs_eps()
340 …fprintf(stderr, "test failed comparing %g with %g (abs diff=%g with EPS=%g)\n", a, b, abs_diff, ep… in float_near_abs_eps()
376 double abs_diff = fabs(a - b); in double_near_abs_eps() local
378 return abs_diff < eps; in double_near_abs_eps()
/third_party/node/deps/v8/src/execution/arm/
Dsimulator-arm.cc3717 double abs_diff = unsigned_integer in ConvertDoubleToInt() local
3721 inexact_vfp_flag_ = (abs_diff != 0); in ConvertDoubleToInt()
3729 if (abs_diff > 0.5) { in ConvertDoubleToInt()
3731 } else if (abs_diff == 0.5) { in ConvertDoubleToInt()