Home
last modified time | relevance | path

Searched refs:sad (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/webrtc/webrtc/modules/desktop_capture/
Ddiffer_block_sse2.cc30 __m128i sad; in BlockDifference_SSE2_W16() local
36 sad = _mm_sad_epu8(v0, v1); in BlockDifference_SSE2_W16()
37 acc = _mm_adds_epu16(acc, sad); in BlockDifference_SSE2_W16()
40 sad = _mm_sad_epu8(v0, v1); in BlockDifference_SSE2_W16()
41 acc = _mm_adds_epu16(acc, sad); in BlockDifference_SSE2_W16()
44 sad = _mm_sad_epu8(v0, v1); in BlockDifference_SSE2_W16()
45 acc = _mm_adds_epu16(acc, sad); in BlockDifference_SSE2_W16()
48 sad = _mm_sad_epu8(v0, v1); in BlockDifference_SSE2_W16()
49 acc = _mm_adds_epu16(acc, sad); in BlockDifference_SSE2_W16()
53 sad = _mm_shuffle_epi32(acc, 0xEE); in BlockDifference_SSE2_W16()
[all …]
/external/libaom/libaom/aom_dsp/x86/
Djnt_sad_ssse3.c28 __m128i sad = _mm_setzero_si128(); in aom_sad4xh_sse2() local
49 sad = _mm_add_epi32(sad, sad4x4); in aom_sad4xh_sse2()
57 _mm_cvtsi128_si32(sad) + _mm_cvtsi128_si32(_mm_srli_si128(sad, 8)); in aom_sad4xh_sse2()
68 __m128i sad = _mm_setzero_si128(); in aom_sad8xh_sse2() local
81 sad = _mm_add_epi32(sad, sad8x2); in aom_sad8xh_sse2()
88 _mm_cvtsi128_si32(sad) + _mm_cvtsi128_si32(_mm_srli_si128(sad, 8)); in aom_sad8xh_sse2()
99 __m128i sad = _mm_setzero_si128(); in aom_sad16xh_sse2() local
105 sad = _mm_add_epi32(sad, sad16x1); in aom_sad16xh_sse2()
112 _mm_cvtsi128_si32(sad) + _mm_cvtsi128_si32(_mm_srli_si128(sad, 8)); in aom_sad16xh_sse2()
123 __m128i sad = _mm_setzero_si128(); in aom_sad32xh_sse2() local
[all …]
Dmasked_sad_intrin_avx2.c66 int32_t sad = _mm256_extract_epi32(res, 0); in masked_sad32xh_avx2() local
67 return (sad + 31) >> 6; in masked_sad32xh_avx2()
119 int32_t sad = _mm256_extract_epi32(res, 0); in masked_sad16xh_avx2() local
120 return (sad + 31) >> 6; in masked_sad16xh_avx2()
127 unsigned int sad; in aom_masked_sad_avx2() local
131 sad = aom_masked_sad4xh_ssse3(src, src_stride, ref, ref_stride, in aom_masked_sad_avx2()
135 sad = aom_masked_sad8xh_ssse3(src, src_stride, ref, ref_stride, in aom_masked_sad_avx2()
139 sad = masked_sad16xh_avx2(src, src_stride, ref, ref_stride, second_pred, in aom_masked_sad_avx2()
143 sad = masked_sad32xh_avx2(src, src_stride, ref, ref_stride, second_pred, in aom_masked_sad_avx2()
150 sad = aom_masked_sad4xh_ssse3(src, src_stride, second_pred, m, ref, in aom_masked_sad_avx2()
[all …]
Dsad_highbd_avx2.c217 __m256i sad = _mm256_setzero_si256(); in aom_highbd_sad32x16_avx2() local
224 sad32x4(srcp, src_stride, refp, ref_stride, NULL, &sad); in aom_highbd_sad32x16_avx2()
229 return get_sad_from_mm256_epi32(&sad); in aom_highbd_sad32x16_avx2()
340 __m256i sad = _mm256_setzero_si256(); in aom_highbd_sad64x32_avx2() local
347 sad64x2(srcp, src_stride, refp, ref_stride, NULL, &sad); in aom_highbd_sad64x32_avx2()
352 return get_sad_from_mm256_epi32(&sad); in aom_highbd_sad64x32_avx2()
444 __m256i sad = _mm256_setzero_si256(); in aom_highbd_sad128x64_avx2() local
449 sad128x1(srcp, refp, NULL, &sad); in aom_highbd_sad128x64_avx2()
454 return get_sad_from_mm256_epi32(&sad); in aom_highbd_sad128x64_avx2()
526 __m256i sad = _mm256_setzero_si256(); in aom_highbd_sad16x8_avg_avx2() local
[all …]
Dmasked_sad_intrin_ssse3.c135 int32_t sad = in masked_sad_ssse3() local
137 return (sad + 31) >> 6; in masked_sad_ssse3()
180 int32_t sad = in aom_masked_sad8xh_ssse3() local
182 return (sad + 31) >> 6; in aom_masked_sad8xh_ssse3()
225 int32_t sad = _mm_cvtsi128_si32(res); in aom_masked_sad4xh_ssse3() local
226 return (sad + 31) >> 6; in aom_masked_sad4xh_ssse3()
340 int sad = _mm_cvtsi128_si32(res); in highbd_masked_sad_ssse3() local
341 return (sad + 31) >> 6; in highbd_masked_sad_ssse3()
400 int sad = _mm_cvtsi128_si32(res); in aom_highbd_masked_sad4xh_ssse3() local
401 return (sad + 31) >> 6; in aom_highbd_masked_sad4xh_ssse3()
/external/libvpx/libvpx/vpx_dsp/mips/
Dsad_mmi.c363 unsigned int sad; in vpx_sad64x() local
382 [src]"+&r"(src), [ref]"+&r"(ref), [sad]"=&r"(sad) in vpx_sad64x()
387 return sad; in vpx_sad64x()
405 unsigned int sad; in vpx_sad_avg64x() local
428 [sad]"=&r"(sad) in vpx_sad_avg64x()
433 return sad; in vpx_sad_avg64x()
449 unsigned int sad; in vpx_sad32x() local
468 [src]"+&r"(src), [ref]"+&r"(ref), [sad]"=&r"(sad) in vpx_sad32x()
473 return sad; in vpx_sad32x()
493 unsigned int sad; in vpx_sad_avg32x() local
[all …]
Dsad_msa.c31 v8u16 sad = { 0 }; in sad_4width_msa() local
43 sad += __msa_hadd_u_h(diff, diff); in sad_4width_msa()
46 return HADD_UH_U32(sad); in sad_4width_msa()
54 v8u16 sad = { 0 }; in sad_8width_msa() local
64 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_8width_msa()
67 return HADD_UH_U32(sad); in sad_8width_msa()
75 v8u16 sad = { 0 }; in sad_16width_msa() local
82 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
88 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
91 return HADD_UH_U32(sad); in sad_16width_msa()
[all …]
/external/libhevc/encoder/arm/
Dihevce_sad_compute_neon.c78 uint32x2_t sad; in ihevce_8xn_sad_computer_neon() local
94 sad = vadd_u32( in ihevce_8xn_sad_computer_neon()
96 return vget_lane_u32(sad, 0); in ihevce_8xn_sad_computer_neon()
106 uint32x2_t sad; in ihevce_16xn_sad_computer_neon() local
124 sad = vadd_u32( in ihevce_16xn_sad_computer_neon()
126 return vget_lane_u32(sad, 0); in ihevce_16xn_sad_computer_neon()
136 uint32x2_t sad; in ihevce_32xn_sad_computer_neon() local
158 sad = vadd_u32( in ihevce_32xn_sad_computer_neon()
160 return vget_lane_u32(sad, 0); in ihevce_32xn_sad_computer_neon()
170 uint32x2_t sad; in ihevce_64xn_sad_computer_neon() local
[all …]
Dihevce_ssd_and_sad_calculator_neon.c75 uint32x2_t ssd, sad; in ihevce_ssd_and_sad_calculator_neon() local
81 sad = in ihevce_ssd_and_sad_calculator_neon()
83 *pu4_blk_sad = vget_lane_u32(sad, 0); in ihevce_ssd_and_sad_calculator_neon()
97 uint32x2_t sad, ssd; in ihevce_ssd_and_sad_calculator_neon() local
116 sad = vadd_u32( in ihevce_ssd_and_sad_calculator_neon()
118 *pu4_blk_sad = vget_lane_u32(sad, 0); in ihevce_ssd_and_sad_calculator_neon()
133 uint32x2_t sad, ssd; in ihevce_ssd_and_sad_calculator_neon() local
161 sad = vadd_u32( in ihevce_ssd_and_sad_calculator_neon()
163 *pu4_blk_sad = vget_lane_u32(sad, 0); in ihevce_ssd_and_sad_calculator_neon()
180 uint32x2_t sad, ssd; in ihevce_ssd_and_sad_calculator_neon() local
[all …]
/external/libaom/libaom/aom_dsp/
Dsad_av1.c27 unsigned int sad = 0; in masked_sad() local
31 sad += abs(pred - src[x]); in masked_sad()
38 sad = (sad + 31) >> 6; in masked_sad()
39 return sad; in masked_sad()
88 unsigned int sad = 0; in highbd_masked_sad() local
96 sad += abs(pred - src[x]); in highbd_masked_sad()
104 sad = (sad + 31) >> 6; in highbd_masked_sad()
106 return sad; in highbd_masked_sad()
152 unsigned int sad = 0; in obmc_sad() local
156 sad += ROUND_POWER_OF_TWO(abs(wsrc[x] - pre[x] * mask[x]), 12); in obmc_sad()
[all …]
Dsad.c22 static INLINE unsigned int sad(const uint8_t *a, int a_stride, const uint8_t *b, in sad() function
25 unsigned int sad = 0; in sad() local
29 sad += abs(a[x] - b[x]); in sad()
35 return sad; in sad()
42 return sad(a, a_stride, b, b_stride, width, height); \
48 return sad(src, src_stride, ref, ref_stride, m, n); \
55 return sad(src, src_stride, comp_pred, m, m, n); \
63 return sad(src, src_stride, comp_pred, m, m, n); \
166 unsigned int sad = 0; in highbd_sad() local
171 sad += abs(a[x] - b[x]); in highbd_sad()
[all …]
/external/libvpx/libvpx/vpx_dsp/ppc/
Dsad_vsx.c177 unsigned int sad[4]; \
189 vec_vsx_st((uint32x4_t)v_sad, 0, sad); \
190 sad_array[i] += (sad[3] + sad[2] + sad[1] + sad[0]); \
201 unsigned int sad[4]; \
216 vec_vsx_st((uint32x4_t)v_sad, 0, sad); \
217 sad_array[i] += (sad[3] + sad[2] + sad[1] + sad[0]); \
228 unsigned int sad[4]; \
248 vec_vsx_st((uint32x4_t)v_sad, 0, sad); \
249 sad_array[i] += (sad[3] + sad[2] + sad[1] + sad[0]); \
/external/libvpx/libvpx/vpx_dsp/
Dsad.c20 static INLINE unsigned int sad(const uint8_t *src_ptr, int src_stride, in sad() function
24 unsigned int sad = 0; in sad() local
27 for (x = 0; x < width; x++) sad += abs(src_ptr[x] - ref_ptr[x]); in sad()
32 return sad; in sad()
38 return sad(src_ptr, src_stride, ref_ptr, ref_stride, m, n); \
45 return sad(src_ptr, src_stride, comp_pred, m, m, n); \
141 unsigned int sad = 0; in highbd_sad() local
145 for (x = 0; x < width; x++) sad += abs(src[x] - ref_ptr[x]); in highbd_sad()
150 return sad; in highbd_sad()
157 unsigned int sad = 0; in highbd_sadb() local
[all …]
/external/libaom/libaom/aom_dsp/mips/
Dsad_msa.c33 v8u16 sad = { 0 }; in sad_4width_msa() local
45 sad += __msa_hadd_u_h(diff, diff); in sad_4width_msa()
48 return HADD_UH_U32(sad); in sad_4width_msa()
56 v8u16 sad = { 0 }; in sad_8width_msa() local
66 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_8width_msa()
69 return HADD_UH_U32(sad); in sad_8width_msa()
77 v8u16 sad = { 0 }; in sad_16width_msa() local
84 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
90 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
93 return HADD_UH_U32(sad); in sad_16width_msa()
[all …]
/external/libavc/encoder/
Dime_distortion_metrics.c917 UWORD32 sad = 0; in ime_compute_satqd_16x16_lumainter() local
950 if(sad == 0) in ime_compute_satqd_16x16_lumainter()
975 )sad = 1; in ime_compute_satqd_16x16_lumainter()
982 *pu4_is_non_zero = sad; in ime_compute_satqd_16x16_lumainter()
1035 WORD32 sad =0; in ime_compute_satqd_8x16_chroma() local
1110 sad += sad_1; in ime_compute_satqd_8x16_chroma()
1115 if(sad < (thrsh[0]<<1))sad = 0; in ime_compute_satqd_8x16_chroma()
1171 WORD16 s1[4],s2[4],s3[4],s4[4],sad[4]; in ime_compute_satqd_16x16_lumaintra() local
1209 sad[j] = ((s1[j]+s2[j]+s3[j]+s4[j])<<1); in ime_compute_satqd_16x16_lumaintra()
1217 thrsh[1] > (sad[j] -(s2[j] + s3[j])) && in ime_compute_satqd_16x16_lumaintra()
[all …]
Dime_statistics.h76 #define DEBUG_SAD_HISTOGRAM_ADD(sad, level) debug_sad_histogram_add(sad, level) argument
81 #define DEBUG_SAD_HISTOGRAM_ADD(sad, level) argument
/external/libmpeg2/common/
Dicv_sad.c96 WORD32 sad; in icv_sad_8x4() local
105 sad = 0; in icv_sad_8x4()
117 sad += ABS_DIF(src, ref); in icv_sad_8x4()
123 return sad; in icv_sad_8x4()
Dideint.c282 WORD32 cac, sad, vrnc; in ideint_process() local
288 sad = 0; in ideint_process()
324 sad = ps_ctxt->pf_sad_8x4(pu1_prv, pu1_bot, cur_strd, in ideint_process() local
341 if((sad * th_den) <= th_num) in ideint_process()
371 if(disable_cac_sad || cac || (sad * th_den > th_num)) in ideint_process()
/external/libvpx/libvpx/vp8/common/
Dmfqe.c122 unsigned int act, actd, sad, usad, vsad, sse, thr, thrsq, actrisk; in multiframe_quality_enhance_block() local
129 sad = (sse + 128) >> 8; in multiframe_quality_enhance_block()
135 sad = (vpx_sad16x16(y, y_stride, yd, yd_stride) + 128) >> 8; in multiframe_quality_enhance_block()
144 sad = (sse + 32) >> 6; in multiframe_quality_enhance_block()
150 sad = (vpx_sad8x8(y, y_stride, yd, yd_stride) + 32) >> 6; in multiframe_quality_enhance_block()
165 if (sad < thrsq && in multiframe_quality_enhance_block()
170 if (sad < thr && in multiframe_quality_enhance_block()
179 sad = int_sqrt(sad); in multiframe_quality_enhance_block()
181 ifactor = (sad << MFQE_PRECISION) / thr; in multiframe_quality_enhance_block()
/external/libvpx/libvpx/test/
Dbench.cc32 int sad = 0; in PrintMedian() local
34 sad += abs(times_[t] - med); in PrintMedian()
37 sad / (VPX_BENCH_ROBUST_ITER * 1000.0)); in PrintMedian()
/external/libmpeg2/common/x86/
Dicv_sad_ssse3.c97 WORD32 sad; in icv_sad_8x4_ssse3() local
142 sad = _mm_cvtsi128_si32(res_r0); in icv_sad_8x4_ssse3()
144 return sad; in icv_sad_8x4_ssse3()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.sad.u8.ll4 declare i32 @llvm.amdgcn.sad.u8(i32, i32, i32) #0
9 %result= call i32 @llvm.amdgcn.sad.u8(i32 %src, i32 100, i32 100) #0
17 %result= call i32 @llvm.amdgcn.sad.u8(i32 %src, i32 %a, i32 %b) #0
Dllvm.amdgcn.sad.hi.u8.ll4 declare i32 @llvm.amdgcn.sad.hi.u8(i32, i32, i32) #0
9 %result= call i32 @llvm.amdgcn.sad.hi.u8(i32 %src, i32 100, i32 100) #0
17 %result= call i32 @llvm.amdgcn.sad.hi.u8(i32 %src, i32 %a, i32 %b) #0
Dllvm.amdgcn.sad.u16.ll4 declare i32 @llvm.amdgcn.sad.u16(i32, i32, i32) #0
9 %result= call i32 @llvm.amdgcn.sad.u16(i32 %src, i32 100, i32 100) #0
17 %result= call i32 @llvm.amdgcn.sad.u16(i32 %src, i32 %a, i32 %b) #0
/external/libavc/encoder/x86/
Dih264e_intra_modes_eval_ssse3.c486 WORD32 sad[MAX_I4x4] = { INT_MAX, INT_MAX, INT_MAX, INT_MAX, INT_MAX, in ih264e_evaluate_intra_4x4_modes_ssse3() local
532 sad[VERT_I4x4] = _mm_extract_epi16(sad_8x16b, 0) + _mm_extract_epi16(sad_8x16b, 4); in ih264e_evaluate_intra_4x4_modes_ssse3()
533 cost[VERT_I4x4] = sad[VERT_I4x4] + ((u4_predictd_mode == VERT_I4x4) ? u4_lambda: lambda4); in ih264e_evaluate_intra_4x4_modes_ssse3()
543 sad[HORZ_I4x4] = _mm_extract_epi16(sad_8x16b, 0) + _mm_extract_epi16(sad_8x16b, 4); in ih264e_evaluate_intra_4x4_modes_ssse3()
544 cost[HORZ_I4x4] = sad[HORZ_I4x4] + ((u4_predictd_mode == HORZ_I4x4) ? u4_lambda: lambda4); in ih264e_evaluate_intra_4x4_modes_ssse3()
581 sad[DC_I4x4] = _mm_extract_epi16(sad_8x16b, 0) + _mm_extract_epi16(sad_8x16b, 4); in ih264e_evaluate_intra_4x4_modes_ssse3()
582 cost[DC_I4x4] = sad[DC_I4x4] + ((u4_predictd_mode == DC_I4x4) ? u4_lambda: lambda4); in ih264e_evaluate_intra_4x4_modes_ssse3()
636 sad[DIAG_DL_I4x4] = _mm_extract_epi16(sad_8x16b, 0) + _mm_extract_epi16(sad_8x16b, 4); in ih264e_evaluate_intra_4x4_modes_ssse3()
637 …cost[DIAG_DL_I4x4] = sad[DIAG_DL_I4x4] + ((u4_predictd_mode == DIAG_DL_I4x4) ? u4_lambda: lambda4); in ih264e_evaluate_intra_4x4_modes_ssse3()
649 sad[DIAG_DR_I4x4] = _mm_extract_epi16(sad_8x16b, 0) + _mm_extract_epi16(sad_8x16b, 4); in ih264e_evaluate_intra_4x4_modes_ssse3()
[all …]

12345678910