• Home
  • Raw
  • Download

Lines Matching refs:ps_me_ctxt

90 void ime_diamond_search_16x16(me_ctxt_t *ps_me_ctxt, WORD32 i4_reflist)  in ime_diamond_search_16x16()  argument
93 mb_part_ctxt *ps_mb_part = &ps_me_ctxt->as_mb_part[i4_reflist]; in ime_diamond_search_16x16()
96 UWORD32 u4_lambda_motion = ps_me_ctxt->u4_lambda_motion; in ime_diamond_search_16x16()
99 WORD32 i4_srch_range_n = ps_me_ctxt->i4_srch_range_n; in ime_diamond_search_16x16()
100 WORD32 i4_srch_range_s = ps_me_ctxt->i4_srch_range_s; in ime_diamond_search_16x16()
101 WORD32 i4_srch_range_e = ps_me_ctxt->i4_srch_range_e; in ime_diamond_search_16x16()
102 WORD32 i4_srch_range_w = ps_me_ctxt->i4_srch_range_w; in ime_diamond_search_16x16()
108 UWORD8 *pu1_curr_mb = ps_me_ctxt->pu1_src_buf_luma; in ime_diamond_search_16x16()
109 UWORD8 *pu1_ref_mb = ps_me_ctxt->apu1_ref_buf_luma[i4_reflist]; in ime_diamond_search_16x16()
112 WORD32 i4_src_strd = ps_me_ctxt->i4_src_strd; in ime_diamond_search_16x16()
113 WORD32 i4_ref_strd = ps_me_ctxt->i4_rec_strd; in ime_diamond_search_16x16()
125 UWORD8 *pu1_mv_bits = ps_me_ctxt->pu1_mv_bits; in ime_diamond_search_16x16()
134 UWORD32 u4_num_layers = ps_me_ctxt->u4_num_layers; in ime_diamond_search_16x16()
166 ps_me_ctxt->pf_ime_compute_sad4_diamond(pu1_ref, in ime_diamond_search_16x16()
277 me_ctxt_t *ps_me_ctxt, in ime_evaluate_init_srchposn_16x16() argument
281 UWORD32 u4_lambda_motion = ps_me_ctxt->u4_lambda_motion; in ime_evaluate_init_srchposn_16x16()
284 UWORD32 u4_num_candidates = ps_me_ctxt->u4_num_candidates[i4_reflist]; in ime_evaluate_init_srchposn_16x16()
287 ime_mv_t *ps_mv_list = ps_me_ctxt->as_mv_init_search[i4_reflist]; in ime_evaluate_init_srchposn_16x16()
290 UWORD8 *pu1_curr_mb = ps_me_ctxt->pu1_src_buf_luma; in ime_evaluate_init_srchposn_16x16()
291 UWORD8 *pu1_ref_mb = ps_me_ctxt->apu1_ref_buf_luma[i4_reflist]; in ime_evaluate_init_srchposn_16x16()
294 WORD32 i4_src_strd = ps_me_ctxt->i4_src_strd; in ime_evaluate_init_srchposn_16x16()
295 WORD32 i4_ref_strd = ps_me_ctxt->i4_rec_strd; in ime_evaluate_init_srchposn_16x16()
298 UWORD32 u4_enable_fast_sad = ps_me_ctxt->u4_enable_fast_sad; in ime_evaluate_init_srchposn_16x16()
307 mb_part_ctxt *ps_mb_part = &(ps_me_ctxt->as_mb_part[i4_reflist]); in ime_evaluate_init_srchposn_16x16()
310 UWORD8 *pu1_mv_bits = ps_me_ctxt->pu1_mv_bits; in ime_evaluate_init_srchposn_16x16()
339ps_me_ctxt->pf_ime_compute_sad_16x16[u4_enable_fast_sad](pu1_curr_mb, pu1_ref, i4_src_strd, i4_ref… in ime_evaluate_init_srchposn_16x16()
393 me_ctxt_t *ps_me_ctxt, in ime_full_pel_motion_estimation_16x16() argument
398 mb_part_ctxt *ps_mb_part = &ps_me_ctxt->as_mb_part[i4_ref_list]; in ime_full_pel_motion_estimation_16x16()
407 ps_me_ctxt->i4_srch_range_w = MAX(ps_me_ctxt->i4_srch_range_w, in ime_full_pel_motion_estimation_16x16()
408 … -ps_me_ctxt->ai2_srch_boundaries[0] + ps_mb_part->s_mv_curr.i2_mvx); in ime_full_pel_motion_estimation_16x16()
409 ps_me_ctxt->i4_srch_range_e = MIN(ps_me_ctxt->i4_srch_range_e, in ime_full_pel_motion_estimation_16x16()
410ps_me_ctxt->ai2_srch_boundaries[0] + ps_mb_part->s_mv_curr.i2_mvx); in ime_full_pel_motion_estimation_16x16()
411 ps_me_ctxt->i4_srch_range_n = MAX(ps_me_ctxt->i4_srch_range_n, in ime_full_pel_motion_estimation_16x16()
412 … -ps_me_ctxt->ai2_srch_boundaries[1] + ps_mb_part->s_mv_curr.i2_mvy); in ime_full_pel_motion_estimation_16x16()
413 ps_me_ctxt->i4_srch_range_s = MIN(ps_me_ctxt->i4_srch_range_s, in ime_full_pel_motion_estimation_16x16()
414ps_me_ctxt->ai2_srch_boundaries[1] + ps_mb_part->s_mv_curr.i2_mvy); in ime_full_pel_motion_estimation_16x16()
420 switch (ps_me_ctxt->u4_me_speed_preset) in ime_full_pel_motion_estimation_16x16()
423 ime_diamond_search_16x16(ps_me_ctxt, i4_ref_list); in ime_full_pel_motion_estimation_16x16()
457 me_ctxt_t *ps_me_ctxt, in ime_sub_pel_motion_estimation_16x16() argument
462 UWORD8 *pu1_curr_mb = ps_me_ctxt->pu1_src_buf_luma; in ime_sub_pel_motion_estimation_16x16()
475 WORD32 i4_src_strd = ps_me_ctxt->i4_src_strd; in ime_sub_pel_motion_estimation_16x16()
477 WORD32 i4_ref_strd = ps_me_ctxt->u4_subpel_buf_strd; in ime_sub_pel_motion_estimation_16x16()
480 mb_part_ctxt *ps_mb_part = &ps_me_ctxt->as_mb_part[i4_reflist]; in ime_sub_pel_motion_estimation_16x16()
494 UWORD8 *pu1_mv_bits = ps_me_ctxt->pu1_mv_bits; in ime_sub_pel_motion_estimation_16x16()
500 UWORD32 u4_lambda_motion = ps_me_ctxt->u4_lambda_motion; in ime_sub_pel_motion_estimation_16x16()
546 pu1_ref_mb_half_x_temp = pu1_ref_mb_half_x = ps_me_ctxt->apu1_subpel_buffs[0] + 1; in ime_sub_pel_motion_estimation_16x16()
547 pu1_ref_mb_half_y_temp = pu1_ref_mb_half_y = ps_me_ctxt->apu1_subpel_buffs[1] + 1 + i4_ref_strd; in ime_sub_pel_motion_estimation_16x16()
548 … pu1_ref_mb_half_xy_temp = pu1_ref_mb_half_xy = ps_me_ctxt->apu1_subpel_buffs[2] + 1 + i4_ref_strd; in ime_sub_pel_motion_estimation_16x16()
550 ps_me_ctxt->pf_ime_sub_pel_compute_sad_16x16(pu1_curr_mb, pu1_ref_mb_half_x, in ime_sub_pel_motion_estimation_16x16()
581 ps_me_ctxt->apu1_subpel_buffs[0] = pu1_ref_mb_half_x_temp - i; in ime_sub_pel_motion_estimation_16x16()
615 ps_me_ctxt->apu1_subpel_buffs[1] = pu1_ref_mb_half_y_temp - i*(i4_ref_strd); in ime_sub_pel_motion_estimation_16x16()
652 ps_me_ctxt->apu1_subpel_buffs[2] = pu1_ref_mb_half_xy_temp - j*(i4_ref_strd) - i; in ime_sub_pel_motion_estimation_16x16()
695 me_ctxt_t *ps_me_ctxt, in ime_compute_skip_cost() argument
723 …s_clip_skip_mv.i2_mvx = CLIP3(ps_me_ctxt->i4_srch_range_w, ps_me_ctxt->i4_srch_range_e, s_skip_mv.… in ime_compute_skip_cost()
724 …s_clip_skip_mv.i2_mvy = CLIP3(ps_me_ctxt->i4_srch_range_n, ps_me_ctxt->i4_srch_range_s, s_skip_mv.… in ime_compute_skip_cost()
737 pu1_ref = ps_me_ctxt->apu1_ref_buf_luma[i4_reflist] + s_skip_mv.i2_mvx in ime_compute_skip_cost()
738 + (s_skip_mv.i2_mvy * ps_me_ctxt->i4_rec_strd); in ime_compute_skip_cost()
744 ps_me_ctxt->pf_ime_compute_sad_stat_luma_16x16( in ime_compute_skip_cost()
745 ps_me_ctxt->pu1_src_buf_luma, pu1_ref, ps_me_ctxt->i4_src_strd, in ime_compute_skip_cost()
746 ps_me_ctxt->i4_rec_strd, ps_me_ctxt->pu2_sad_thrsh, in ime_compute_skip_cost()
749 if (u4_is_nonzero == 0 || i4_mb_distortion <= ps_me_ctxt->i4_min_sad) in ime_compute_skip_cost()
751 ps_me_ctxt->u4_min_sad_reached = 1; /* found min sad */ in ime_compute_skip_cost()
752 ps_me_ctxt->i4_min_sad = (u4_is_nonzero == 0) ? 0 : i4_mb_distortion; in ime_compute_skip_cost()
757 ps_me_ctxt->pf_ime_compute_sad_16x16[ps_me_ctxt->u4_enable_fast_sad]( in ime_compute_skip_cost()
758 ps_me_ctxt->pu1_src_buf_luma, pu1_ref, ps_me_ctxt->i4_src_strd, in ime_compute_skip_cost()
759 ps_me_ctxt->i4_rec_strd, INT_MAX, &i4_mb_distortion); in ime_compute_skip_cost()
761 if(i4_mb_distortion <= ps_me_ctxt->i4_min_sad) in ime_compute_skip_cost()
763 ps_me_ctxt->i4_min_sad = i4_mb_distortion; in ime_compute_skip_cost()
764 ps_me_ctxt->u4_min_sad_reached = 1; /* found min sad */ in ime_compute_skip_cost()
774 …i4_mb_cost = i4_mb_distortion - (ps_me_ctxt->u4_lambda_motion * (ps_me_ctxt->i4_skip_bias[0] + ps_… in ime_compute_skip_cost()