Home
last modified time | relevance | path

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

12345678910>>...17

/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()
64 if (!sad) { in ff_scene_sad_get_fn()
66 sad = ff_scene_sad_c; in ff_scene_sad_get_fn()
[all …]
Dvf_scdet.c41 ff_scene_sad_fn sad; member
102 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
103 if (!s->sad) in config_input()
124 uint64_t sad = 0; in get_scene_score() local
130 s->sad(prev_picref->data[plane], prev_picref->linesize[plane], in get_scene_score()
133 sad += plane_sad; in get_scene_score()
138 mafd = (double)sad * 100. / count / (1ULL << s->bitdepth); in get_scene_score()
Dvf_freezedetect.c39 ff_scene_sad_fn sad; member
114 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
115 if (!s->sad) in config_input()
129 uint64_t sad = 0; in is_frozen() local
135 s->sad(frame->data[plane], frame->linesize[plane], in is_frozen()
138 sad += plane_sad; in is_frozen()
143 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.c154 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()
293 s->sad = ff_scene_sad_get_fn(s->bitdepth == 8 ? 8 : 16); in config_input()
294 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.c55 ff_scene_sad_fn sad; member
113 s->sad(main_line, main_linesize, ref_line, ref_linesize, in compute_images_msad()
317 s->sad = ff_scene_sad_get_fn(desc->comp[0].depth <= 8 ? 8 : 16); in config_input_ref()
318 if (!s->sad) in config_input_ref()
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
Dvmaf_motion.h30 uint64_t (*sad)(const uint16_t *img1, const uint16_t *img2, int w, int h, member
Dvf_minterpolate.c192 ff_scene_sad_fn sad; member
322 uint64_t sad = 0; in get_sad_ob() local
331sad += FFABS(data_ref[x_mv + i + (y_mv + j) * linesize] - data_cur[x + i + (y + j) * linesize]); in get_sad_ob()
333 return sad + (FFABS(mv_x - me_ctx->pred_x) + FFABS(mv_y - me_ctx->pred_y)) * COST_PRED_SCALE; in get_sad_ob()
400 mi_ctx->sad = ff_scene_sad_get_fn(mi_ctx->bitdepth == 8 ? 8 : 16); in config_input()
401 if (!mi_ctx->sad) in config_input()
837 uint64_t sad; in detect_scene_change() local
838 mi_ctx->sad(p1, linesize1, p2, linesize2, input->w, input->h, &sad); in detect_scene_change()
840 mafd = (double) sad * 100.0 / (input->h * input->w) / (1 << mi_ctx->bitdepth); in detect_scene_change()
/third_party/ffmpeg/libavutil/x86/
Dpixelutils_init.c52 void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned) in ff_pixelutils_sad_init_x86() argument
57 sad[2] = ff_pixelutils_sad_8x8_mmx; in ff_pixelutils_sad_init_x86()
67 sad[2] = ff_pixelutils_sad_8x8_mmxext; in ff_pixelutils_sad_init_x86()
68 sad[3] = ff_pixelutils_sad_16x16_mmxext; in ff_pixelutils_sad_init_x86()
73 case 0: sad[3] = ff_pixelutils_sad_16x16_sse2; break; // src1 unaligned, src2 unaligned in ff_pixelutils_sad_init_x86()
74 case 1: sad[3] = ff_pixelutils_sad_u_16x16_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
75 case 2: sad[3] = ff_pixelutils_sad_a_16x16_sse2; break; // src1 aligned, src2 aligned in ff_pixelutils_sad_init_x86()
81 case 0: sad[4] = ff_pixelutils_sad_32x32_sse2; break; // src1 unaligned, src2 unaligned in ff_pixelutils_sad_init_x86()
82 case 1: sad[4] = ff_pixelutils_sad_u_32x32_sse2; break; // src1 aligned, src2 unaligned in ff_pixelutils_sad_init_x86()
83 case 2: sad[4] = ff_pixelutils_sad_a_32x32_sse2; break; // src1 aligned, src2 aligned 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.c73 av_pixelutils_sad_fn sad[FF_ARRAY_ELEMS(sad_c)]; in av_pixelutils_get_sad_fn()
75 memcpy(sad, sad_c, sizeof(sad)); in av_pixelutils_get_sad_fn()
77 if (w_bits < 1 || w_bits > FF_ARRAY_ELEMS(sad) || in av_pixelutils_get_sad_fn()
78 h_bits < 1 || h_bits > FF_ARRAY_ELEMS(sad)) in av_pixelutils_get_sad_fn()
84 ff_pixelutils_sad_init_x86(sad, aligned); in av_pixelutils_get_sad_fn()
87 return sad[w_bits - 1]; in av_pixelutils_get_sad_fn()
/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/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.c45 c->sad[0] = ff_pix_abs16_msa; in ff_me_cmp_init_mips()
46 c->sad[1] = ff_pix_abs8_msa; in ff_me_cmp_init_mips()
/third_party/libsoup/tests/
Dauth-test.c760 SelectAuthData *sad = data; in select_auth_authenticate() local
770 sad->round[round].headers = "Basic, Digest"; in select_auth_authenticate()
772 sad->round[round].headers = "Digest, Basic"; in select_auth_authenticate()
774 sad->round[round].headers = "Basic"; in select_auth_authenticate()
776 sad->round[round].headers = "Digest"; in select_auth_authenticate()
778 sad->round[round].response = soup_auth_get_scheme_name (auth); in select_auth_authenticate()
779 if (sad->password && !retrying) in select_auth_authenticate()
780 soup_auth_authenticate (auth, "user", sad->password); in select_auth_authenticate()
790 SelectAuthData sad; in select_auth_test_one() local
799 G_CALLBACK (select_auth_authenticate), &sad); in select_auth_test_one()
[all …]
/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/ffmpeg/libavcodec/x86/
Dme_cmp_init.c572 c->sad[0] = sad16_mmx; in PIX_SAD()
573 c->sad[1] = sad8_mmx; in PIX_SAD()
601 c->sad[0] = ff_sad16_mmxext; in PIX_SAD()
602 c->sad[1] = ff_sad8_mmxext; in PIX_SAD()
632 c->sad[0] = ff_sad16_sse2; in PIX_SAD()
/third_party/ffmpeg/libavcodec/
Dme_cmp.h56 me_cmp_func sad[6]; /* identical to pix_absAxA except additional void * */ member

12345678910>>...17