Home
last modified time | relevance | path

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

12345678910>>...13

/third_party/ffmpeg/libavfilter/
Dscene_sad.c28 uint64_t sad = 0; in ff_scene_sad16_c() local
38 sad += FFABS(src1w[x] - src2w[x]); in ff_scene_sad16_c()
42 *sum = sad; in ff_scene_sad16_c()
47 uint64_t sad = 0; in ff_scene_sad_c() local
52 sad += FFABS(src1[x] - src2[x]); in ff_scene_sad_c()
56 *sum = sad; in ff_scene_sad_c()
61 ff_scene_sad_fn sad = NULL; in ff_scene_sad_get_fn() local
63 sad = ff_scene_sad_get_fn_x86(depth); in ff_scene_sad_get_fn()
65 if (!sad) { in ff_scene_sad_get_fn()
67 sad = ff_scene_sad_c; in ff_scene_sad_get_fn()
[all …]
Dvf_scdet.c40 ff_scene_sad_fn sad; member
93 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
94 if (!s->sad) in config_input()
115 uint64_t sad = 0; in get_scene_score() local
121 s->sad(prev_picref->data[plane], prev_picref->linesize[plane], in get_scene_score()
124 sad += plane_sad; in get_scene_score()
129 mafd = (double)sad * 100. / count / (1ULL << s->bitdepth); in get_scene_score()
Dvf_freezedetect.c38 ff_scene_sad_fn sad; member
105 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
106 if (!s->sad) in config_input()
120 uint64_t sad = 0; in is_frozen() local
126 s->sad(frame->data[plane], frame->linesize[plane], in is_frozen()
129 sad += plane_sad; in is_frozen()
134 mafd = (double)sad / count / (1ULL << s->bitdepth); in is_frozen()
Dvf_mpdecimate.c51 av_pixelutils_sad_fn sad; ///< sum of absolute difference function member
85 d = decimate->sad(cur + y*cur_linesize + x, cur_linesize, in diff_planes()
148 decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, ctx); // 8x8, not aligned on blocksize in init()
149 if (!decimate->sad) in init()
Df_select.c156 ff_scene_sad_fn sad; ///< Sum of the absolute difference function (scene detect only) member
266 select->sad = ff_scene_sad_get_fn(select->bitdepth == 8 ? 8 : 16); in config_input()
267 if (!select->sad) in config_input()
282 uint64_t sad = 0; in get_scene_score() local
288 select->sad(prev_picref->data[plane], prev_picref->linesize[plane], in get_scene_score()
291 sad += plane_sad; in get_scene_score()
296 mafd = (double)sad / count / (1ULL << (select->bitdepth - 8)); in get_scene_score()
Dvf_framerate.c74 uint64_t sad; in get_scene_score() local
78 …s->sad(crnt->data[0], crnt->linesize[0], next->data[0], next->linesize[0], crnt->width, crnt->heig… in get_scene_score()
80 mafd = (double)sad * 100.0 / (crnt->width * crnt->height) / (1 << s->bitdepth); in get_scene_score()
287 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
288 if (!s->sad) in config_input()
Dvf_vmafmotion.c185 dsp->sad = image_sad; in vmafmotiondsp_init()
200 uint64_t sad = s->vmafdsp.sad(s->blur_data[1], s->blur_data[0], in ff_vmafmotion_process() local
203 score = (double) (sad * 1.0 / (s->width * s->height << (BIT_SHIFT - 8))); in ff_vmafmotion_process()
Dvf_identity.c57 ff_scene_sad_fn sad; member
115 s->sad(main_line, main_linesize, ref_line, ref_linesize, in compute_images_msad()
308 s->sad = ff_scene_sad_get_fn(desc->comp[0].depth <= 8 ? 8 : 16); in config_input_ref()
309 if (!s->sad) in config_input_ref()
Dvf_minterpolate.c191 ff_scene_sad_fn sad; member
313 uint64_t sad = 0; in get_sad_ob() local
322sad += FFABS(data_ref[x_mv + i + (y_mv + j) * linesize] - data_cur[x + i + (y + j) * linesize]); in get_sad_ob()
324 return sad + (FFABS(mv_x - me_ctx->pred_x) + FFABS(mv_y - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sad_ob()
391 mi_ctx->sad = ff_scene_sad_get_fn(mi_ctx->bitdepth == 8 ? 8 : 16); in config_input()
392 if (!mi_ctx->sad) in config_input()
828 uint64_t sad; in detect_scene_change() local
829 mi_ctx->sad(p1, linesize1, p2, linesize2, input->w, input->h, &sad); in detect_scene_change()
831 mafd = (double) sad * 100.0 / (input->h * input->w) / (1 << mi_ctx->bitdepth); in detect_scene_change()
Ddeshake.h67 av_pixelutils_sad_fn sad; ///< Sum of the absolute difference function member
Dframerate.h51 …ff_scene_sad_fn sad; ///< Sum of the absolute difference function (scene detect onl… member
/third_party/ffmpeg/libavutil/x86/
Dpixelutils_init.c48 void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned) in ff_pixelutils_sad_init_x86() argument
59 sad[2] = ff_pixelutils_sad_8x8_mmxext; in ff_pixelutils_sad_init_x86()
64 case 0: sad[3] = ff_pixelutils_sad_16x16_sse2; break; // src1 unaligned, src2 unaligned in ff_pixelutils_sad_init_x86()
65 case 1: sad[3] = ff_pixelutils_sad_u_16x16_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
66 case 2: sad[3] = ff_pixelutils_sad_a_16x16_sse2; break; // src1 aligned, src2 aligned in ff_pixelutils_sad_init_x86()
72 case 0: sad[4] = ff_pixelutils_sad_32x32_sse2; break; // src1 unaligned, src2 unaligned in ff_pixelutils_sad_init_x86()
73 case 1: sad[4] = ff_pixelutils_sad_u_32x32_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
74 case 2: sad[4] = ff_pixelutils_sad_a_32x32_sse2; break; // src1 aligned, src2 aligned in ff_pixelutils_sad_init_x86()
80 case 0: sad[4] = ff_pixelutils_sad_32x32_avx2; break; // src1 unaligned, src2 unaligned in ff_pixelutils_sad_init_x86()
81 case 1: sad[4] = ff_pixelutils_sad_u_32x32_avx2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
[all …]
Dpixelutils.h24 void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned);
/third_party/ffmpeg/libavutil/
Dpixelutils.c79 av_pixelutils_sad_fn sad[FF_ARRAY_ELEMS(sad_c)]; in av_pixelutils_get_sad_fn()
81 memcpy(sad, sad_c, sizeof(sad)); in av_pixelutils_get_sad_fn()
83 if (w_bits < 1 || w_bits > FF_ARRAY_ELEMS(sad) || in av_pixelutils_get_sad_fn()
84 h_bits < 1 || h_bits > FF_ARRAY_ELEMS(sad)) in av_pixelutils_get_sad_fn()
90 ff_pixelutils_sad_init_x86(sad, aligned); in av_pixelutils_get_sad_fn()
93 return sad[w_bits - 1]; in av_pixelutils_get_sad_fn()
/third_party/ffmpeg/libavcodec/mips/
Dme_cmp_msa.c30 v8u16 sad = { 0 }; in sad_8width_msa() local
40 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_8width_msa()
43 return (HADD_UH_U32(sad)); in sad_8width_msa()
52 v8u16 sad = { 0 }; in sad_16width_msa() local
59 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
65 sad += SAD_UB2_UH(src0, src1, ref0, ref1); in sad_16width_msa()
68 return (HADD_UH_U32(sad)); in sad_16width_msa()
80 v8u16 sad = { 0 }; in sad_horiz_bilinear_filter_8width_msa() local
94 sad += SAD_UB2_UH(src0, src1, comp0, comp1); in sad_horiz_bilinear_filter_8width_msa()
107 sad += SAD_UB2_UH(src0, src1, comp0, comp1); in sad_horiz_bilinear_filter_8width_msa()
[all …]
Dmpegvideo_msa.c74 v4i32 block_l, block_r, sad; in mpeg2_dct_unquantize_inter_msa() local
105 sad = __msa_hadd_s_w(sum, sum); in mpeg2_dct_unquantize_inter_msa()
106 sum_res += HADD_SW_S32(sad); in mpeg2_dct_unquantize_inter_msa()
133 sad = __msa_hadd_s_w(sum, sum); in mpeg2_dct_unquantize_inter_msa()
134 sum_res += HADD_SW_S32(sad); in mpeg2_dct_unquantize_inter_msa()
161 sad = __msa_hadd_s_w(sum, sum); in mpeg2_dct_unquantize_inter_msa()
162 sum_res += HADD_SW_S32(sad); in mpeg2_dct_unquantize_inter_msa()
189 sad = __msa_hadd_s_w(sum, sum); in mpeg2_dct_unquantize_inter_msa()
190 sum_res += HADD_SW_S32(sad); in mpeg2_dct_unquantize_inter_msa()
Dme_cmp_init_mips.c46 c->sad[0] = ff_pix_abs16_msa; in ff_me_cmp_init_mips()
47 c->sad[1] = ff_pix_abs8_msa; in ff_me_cmp_init_mips()
/third_party/ffmpeg/libavcodec/ppc/
Dmpegvideoencdsp.c95 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in pix_sum_altivec() local
106 sad = vec_sum4s(t1, sad); in pix_sum_altivec()
112 sumdiffs = vec_sums((vector signed int) sad, (vector signed int) zero); in pix_sum_altivec()
124 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in pix_sum_altivec() local
134 sad = vec_sum4s(t1, sad); in pix_sum_altivec()
140 sumdiffs = vec_sums((vector signed int) sad, (vector signed int) zero); in pix_sum_altivec()
Dme_cmp.c61 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in sad16_x2_altivec() local
81 sad = vec_sum4s(t5, sad); in sad16_x2_altivec()
87 sumdiffs = vec_sums((vector signed int) sad, (vector signed int) zero); in sad16_x2_altivec()
102 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in sad16_y2_altivec() local
130 sad = vec_sum4s(t5, sad); in sad16_y2_altivec()
138 sumdiffs = vec_sums((vector signed int) sad, (vector signed int) zero); in sad16_y2_altivec()
158 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in sad16_xy2_altivec() local
217 sad = vec_sum4s(t5, sad); in sad16_xy2_altivec()
226 sumdiffs = vec_sums((vector signed int) sad, (vector signed int) zero); in sad16_xy2_altivec()
240 vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); in sad16_altivec() local
[all …]
/third_party/ffmpeg/libavfilter/x86/
Dscene_sad_init.c27 uint64_t sad[MMSIZE / 8] = {0}; \
30 ASM_FUNC_NAME(src1, stride1, src2, stride2, awidth, height, sad); \
32 *sum += sad[i]; \
35 width - awidth, height, sad); \
36 *sum += sad[0]; \
/third_party/ffmpeg/libavcodec/arm/
Dme_cmp_init_arm.c52 c->sad[0] = ff_pix_abs16_armv6; in ff_me_cmp_init_arm()
53 c->sad[1] = ff_pix_abs8_armv6; in ff_me_cmp_init_arm()
/third_party/elfutils/tests/
Drun-all-dwarf-ranges.sh65 die: sad (1d)
118 die: sad (1d)
/third_party/ffmpeg/libavcodec/x86/
Dme_cmp_init.c260 c->sad[0] = ff_sad16_mmxext; in PIX_SADXY()
261 c->sad[1] = ff_sad8_mmxext; in PIX_SADXY()
291 c->sad[0] = ff_sad16_sse2; in PIX_SADXY()
/third_party/openh264/codec/common/x86/
Dsatd_sad.asm1127 ;sad begin
2092 pxor xmm4, xmm4 ;sad pRefMb-i_stride_ref
2093 pxor xmm5, xmm5 ;sad pRefMb+i_stride_ref
2094 pxor xmm6, xmm6 ;sad pRefMb-1
2095 pxor xmm7, xmm7 ;sad pRefMb+1
2211 pxor xmm4, xmm4 ;sad pRefMb-i_stride_ref
2212 pxor xmm5, xmm5 ;sad pRefMb+i_stride_ref
2213 pxor xmm6, xmm6 ;sad pRefMb-1
2214 pxor xmm7, xmm7 ;sad pRefMb+1
2297 pxor xmm4, xmm4 ;sad pRefMb-i_stride_ref
[all …]
/third_party/ffmpeg/libavcodec/aarch64/
Dme_cmp_init_aarch64.c39 c->sad[0] = ff_pix_abs16_neon; in ff_me_cmp_init_aarch64()

12345678910>>...13