Lines Matching defs:i4_mb_distortion
119 WORD32 i4_distortion_least = ps_mb_part->i4_mb_distortion;
241 ps_mb_part->i4_mb_distortion = i4_distortion_least;
301 WORD32 i4_mb_distortion;
339 ps_me_ctxt->pf_ime_compute_sad_16x16[u4_enable_fast_sad](pu1_curr_mb, pu1_ref, i4_src_strd, i4_ref_strd, i4_mb_cost_least, &i4_mb_distortion);
341 DEBUG_SAD_HISTOGRAM_ADD(i4_mb_distortion, 3);
343 i4_mb_cost = i4_mb_distortion + u4_lambda_motion * ( pu1_mv_bits[ (ps_mv_list[i].i2_mvx << 2) - ps_mb_part->s_mv_pred.i2_mvx]
350 i4_distortion_least = i4_mb_distortion;
361 ps_mb_part->i4_mb_distortion = i4_distortion_least;
483 WORD32 i4_mb_distortion;
484 WORD32 i4_distortion_least = ps_mb_part->i4_mb_distortion;
564 i4_mb_distortion = ai4_sad[i];
567 i4_mb_cost = i4_mb_distortion + u4_lambda_motion * ( pu1_mv_bits[ mv_x_tmp - ps_mb_part->s_mv_pred.i2_mvx]
574 i4_distortion_least = i4_mb_distortion;
598 i4_mb_distortion = ai4_sad[2 + i];
601 i4_mb_cost = i4_mb_distortion + u4_lambda_motion * ( pu1_mv_bits[ mv_x_tmp - ps_mb_part->s_mv_pred.i2_mvx]
608 i4_distortion_least = i4_mb_distortion;
635 i4_mb_distortion = ai4_sad[4 + i + 2 * j];
638 i4_mb_cost = i4_mb_distortion + u4_lambda_motion * ( pu1_mv_bits[ mv_x_tmp - ps_mb_part->s_mv_pred.i2_mvx]
645 i4_distortion_least = i4_mb_distortion;
665 ps_mb_part->i4_mb_distortion = i4_distortion_least;
705 WORD32 i4_mb_distortion;
747 &i4_mb_distortion, &u4_is_nonzero);
749 if (u4_is_nonzero == 0 || i4_mb_distortion <= ps_me_ctxt->i4_min_sad)
752 ps_me_ctxt->i4_min_sad = (u4_is_nonzero == 0) ? 0 : i4_mb_distortion;
759 ps_me_ctxt->i4_rec_strd, INT_MAX, &i4_mb_distortion);
761 if(i4_mb_distortion <= ps_me_ctxt->i4_min_sad)
763 ps_me_ctxt->i4_min_sad = i4_mb_distortion;
774 i4_mb_cost = i4_mb_distortion - (ps_me_ctxt->u4_lambda_motion * (ps_me_ctxt->i4_skip_bias[0] + ps_me_ctxt->i4_skip_bias[1] * i4_is_slice_type_b));
779 ps_smb_part_info->i4_mb_distortion = i4_mb_distortion;