Lines Matching refs:dmin
51 int *mx_ptr, int *my_ptr, int dmin,
393 int *mx_ptr, int *my_ptr, int dmin, in sad_hpel_motion_search() argument
409 return dmin; in sad_hpel_motion_search()
418 dminh = dmin; in sad_hpel_motion_search()
765 int dmin, mx_i, my_i; in interlaced_search() local
798 …dmin = epzs_motion_search2(s, &mx_i, &my_i, P, block, field_select+ref_index, mv_table, (1<<16)>>1… in interlaced_search()
800 … dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h); in interlaced_search()
817 dmin = s->mecc.mb_cmp[size](s, c->src[block][0], c->scratchpad, stride, h); in interlaced_search()
818 … dmin+= (mv_penalty[mx_i-c->pred_x] + mv_penalty[my_i-c->pred_y] + 1)*c->mb_penalty_factor; in interlaced_search()
820 dmin+= c->mb_penalty_factor; //field_select bits in interlaced_search()
822 dmin += field_select != block; //slightly prefer same field in interlaced_search()
824 if(dmin < best_dmin){ in interlaced_search()
825 best_dmin= dmin; in interlaced_search()
890 int sum, mx = 0, my = 0, dmin = 0; in ff_estimate_p_frame_motion() local
958 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, s->p_mv_table, (1<<16)>>shift, 0, 16); in ff_estimate_p_frame_motion()
979 c->sub_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16); in ff_estimate_p_frame_motion()
1004 dmin= c->sub_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16); in ff_estimate_p_frame_motion()
1006 dmin= get_mb_score(s, mx, my, 0, 0, 0, 16, 1); in ff_estimate_p_frame_motion()
1011 if(dmin4 < dmin){ in ff_estimate_p_frame_motion()
1013 dmin=dmin4; in ff_estimate_p_frame_motion()
1019 if(dmin_i < dmin){ in ff_estimate_p_frame_motion()
1021 dmin= dmin_i; in ff_estimate_p_frame_motion()
1045 if(intra_score < dmin){ in ff_estimate_p_frame_motion()
1065 int mx, my, dmin; in ff_pre_estimate_p_frame_motion() local
1106 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, s->p_mv_table, (1<<16)>>shift, 0, 16); in ff_pre_estimate_p_frame_motion()
1111 return dmin; in ff_pre_estimate_p_frame_motion()
1118 int mx = 0, my = 0, dmin = 0; in estimate_motion_b() local
1161 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, ref_index, s->p_mv_table, mv_scale, 0, 16); in estimate_motion_b()
1164 dmin= c->sub_motion_search(s, &mx, &my, dmin, 0, ref_index, 0, 16); in estimate_motion_b()
1167 dmin= get_mb_score(s, mx, my, 0, ref_index, 0, 16, 1); in estimate_motion_b()
1173 return dmin; in estimate_motion_b()
1395 int dmin, i; in direct_search() local
1471 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, mv_table, 1<<(16-shift), 0, 16); in direct_search()
1473 dmin = qpel_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16); in direct_search()
1475 dmin = hpel_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16); in direct_search()
1478 dmin= get_mb_score(s, mx, my, 0, 0, 0, 16, 1); in direct_search()
1487 return dmin; in direct_search()
1495 int fmin, bmin, dmin, fbmin, bimin, fimin; in ff_estimate_b_frame_motion() local
1517 dmin= direct_search(s, mb_x, mb_y); in ff_estimate_b_frame_motion()
1519 dmin= INT_MAX; in ff_estimate_b_frame_motion()
1532 ff_dlog(s, "%d %d %d %d\n", dmin, fmin, bmin, fbmin); in ff_estimate_b_frame_motion()
1552 if (dmin <= score){ in ff_estimate_b_frame_motion()
1553 score = dmin; in ff_estimate_b_frame_motion()
1588 …if(dmin>256*256*16) type&= ~CANDIDATE_MB_TYPE_DIRECT; //do not try direct mode if it is invalid fo… in ff_estimate_b_frame_motion()