Lines Matching refs:PRED_L0
236 WORD32 i4_cmpl_predmode = (i4_reflist == 0) ? PRED_L1 : PRED_L0; in ih264e_get_search_candidates()
401 mv_t *ps_skip_mv = &ps_proc->ps_skip_mv[PRED_L0].s_mv; in ih264e_find_pskip_params()
411 (ps_left_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params()
412 (ps_left_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvx == 0) && in ih264e_find_pskip_params()
413 (ps_left_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvy == 0) in ih264e_find_pskip_params()
416 (ps_top_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params()
417 (ps_top_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvx == 0) && in ih264e_find_pskip_params()
418 (ps_top_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvy == 0) in ih264e_find_pskip_params()
428 ps_skip_mv->i2_mvx = ps_proc->ps_pred_mv[PRED_L0].s_mv.i2_mvx; in ih264e_find_pskip_params()
429 ps_skip_mv->i2_mvy = ps_proc->ps_pred_mv[PRED_L0].s_mv.i2_mvy; in ih264e_find_pskip_params()
432 if ( (ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvx == ps_skip_mv->i2_mvx) in ih264e_find_pskip_params()
433 && (ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvy == ps_skip_mv->i2_mvy)) in ih264e_find_pskip_params()
475 mv_t *ps_skip_mv = &ps_proc->ps_skip_mv[PRED_L0].s_mv; in ih264e_find_pskip_params_me()
485 (ps_left_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params_me()
486 (ps_left_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvx == 0) && in ih264e_find_pskip_params_me()
487 (ps_left_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvy == 0) in ih264e_find_pskip_params_me()
490 (ps_top_mb_pu->s_me_info[PRED_L0].i1_ref_idx == -1) && in ih264e_find_pskip_params_me()
491 (ps_top_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvx == 0) && in ih264e_find_pskip_params_me()
492 (ps_top_mb_pu->s_me_info[PRED_L0].s_mv.i2_mvy == 0) in ih264e_find_pskip_params_me()
502 ps_skip_mv->i2_mvx = ps_proc->ps_pred_mv[PRED_L0].s_mv.i2_mvx; in ih264e_find_pskip_params_me()
503 ps_skip_mv->i2_mvy = ps_proc->ps_pred_mv[PRED_L0].s_mv.i2_mvy; in ih264e_find_pskip_params_me()
506 return PRED_L0; in ih264e_find_pskip_params_me()
658 i4_cmpl_predmode = (i4_reflist == 0) ? PRED_L1 : PRED_L0; in ih264e_mv_pred()
745 WORD32 i4_cmpl_predmode = (i4_ref_list == 0) ? PRED_L1 : PRED_L0; in ih264e_mv_pred_me()
939 ih264e_get_search_candidates(ps_proc, ps_me_ctxt, PRED_L0); in ih264e_compute_me_single_reflist()
950 (ime_mv_t *)(&ps_proc->ps_skip_mv[PRED_L0].s_mv), in ih264e_compute_me_single_reflist()
953 PRED_L0, in ih264e_compute_me_single_reflist()
962 ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx = 0; in ih264e_compute_me_single_reflist()
963 ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy = 0; in ih264e_compute_me_single_reflist()
964 ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_cost = INT_MAX; in ih264e_compute_me_single_reflist()
965 ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_distortion = INT_MAX; in ih264e_compute_me_single_reflist()
968 ps_me_ctxt->as_mb_part[PRED_L0].pu1_best_hpel_buf = NULL; in ih264e_compute_me_single_reflist()
974 ime_evaluate_init_srchposn_16x16(ps_me_ctxt, PRED_L0); in ih264e_compute_me_single_reflist()
979 ime_full_pel_motion_estimation_16x16(ps_me_ctxt, PRED_L0); in ih264e_compute_me_single_reflist()
982 ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx <<= 2; in ih264e_compute_me_single_reflist()
983 ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy <<= 2; in ih264e_compute_me_single_reflist()
988 pu1_hpel_src = ps_me_ctxt->apu1_ref_buf_luma[PRED_L0] in ih264e_compute_me_single_reflist()
989 + (ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx >> 2) in ih264e_compute_me_single_reflist()
990 + (ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy >> 2)* i4_rec_strd; in ih264e_compute_me_single_reflist()
1025 ime_sub_pel_motion_estimation_16x16(ps_me_ctxt, PRED_L0); in ih264e_compute_me_single_reflist()
1037 if (s_skip_mbpart.i4_mb_cost < ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_cost) in ih264e_compute_me_single_reflist()
1039 ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_cost = s_skip_mbpart.i4_mb_cost; in ih264e_compute_me_single_reflist()
1040 ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_distortion = s_skip_mbpart.i4_mb_distortion; in ih264e_compute_me_single_reflist()
1041 ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr = s_skip_mbpart.s_mv_curr; in ih264e_compute_me_single_reflist()
1043 else if (ps_me_ctxt->as_mb_part[PRED_L0].pu1_best_hpel_buf) in ih264e_compute_me_single_reflist()
1047 ps_me_ctxt->as_mb_part[PRED_L0].pu1_best_hpel_buf, in ih264e_compute_me_single_reflist()
1057 … ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvx = ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx; in ih264e_compute_me_single_reflist()
1058 … ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvy = ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy; in ih264e_compute_me_single_reflist()
1059 ps_proc->ps_cur_mb->i4_mb_cost = ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_cost; in ih264e_compute_me_single_reflist()
1060 ps_proc->ps_cur_mb->i4_mb_distortion = ps_me_ctxt->as_mb_part[PRED_L0].i4_mb_distortion; in ih264e_compute_me_single_reflist()
1062 ps_proc->ps_pu->b2_pred_mode = PRED_L0 ; in ih264e_compute_me_single_reflist()
1328 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L0].s_mv; in ih264e_find_bskip_params_me()
1372 i4_cmpl_mode = (i == 0) ? PRED_L1 : PRED_L0; in ih264e_find_bskip_params_me()
1385 i4_skip_type = PRED_L0; in ih264e_find_bskip_params_me()
1426 ps_ref_pic[PRED_L0] = ps_proc->aps_ref_pic[PRED_L0]; in ih264e_find_bskip_params_me()
1429 i4_tb = ps_proc->ps_codec->i4_poc - ps_ref_pic[PRED_L0]->i4_abs_poc; in ih264e_find_bskip_params_me()
1430 i4_td = ps_ref_pic[PRED_L1]->i4_abs_poc - ps_ref_pic[PRED_L0]->i4_abs_poc; in ih264e_find_bskip_params_me()
1439 … ps_skip_mv[PRED_L0].s_mv.i2_mvx = (( i4_dist_scale_factor * s_mvcol.i2_mvx + 128 ) >> 8) & 0xfffc; in ih264e_find_bskip_params_me()
1440 … ps_skip_mv[PRED_L0].s_mv.i2_mvy = (( i4_dist_scale_factor * s_mvcol.i2_mvy + 128 ) >> 8) & 0xfffc; in ih264e_find_bskip_params_me()
1442 … ps_skip_mv[PRED_L1].s_mv.i2_mvx = (ps_skip_mv[PRED_L0].s_mv.i2_mvx - s_mvcol.i2_mvx) & 0xfffc; in ih264e_find_bskip_params_me()
1443 … ps_skip_mv[PRED_L1].s_mv.i2_mvy = (ps_skip_mv[PRED_L0].s_mv.i2_mvy - s_mvcol.i2_mvy) & 0xfffc; in ih264e_find_bskip_params_me()
1522 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L0].s_mv; in ih264e_find_bskip_params()
1576 i4_cmpl_mode = (i == 0) ? PRED_L1 : PRED_L0; in ih264e_find_bskip_params()
1621 case PRED_L0: in ih264e_find_bskip_params()
1700 ps_l0_pred_mv = &ps_proc->ps_pred_mv[PRED_L0].s_mv; in ih264e_evaluate_bipred()
1706 pu1_ref_mb_l0 = ps_me_ctxt->as_mb_part[PRED_L0].pu1_best_hpel_buf; in ih264e_evaluate_bipred()
1711 …pu1_ref_mb_l0 = ps_me_ctxt->apu1_ref_buf_luma[PRED_L0] + (s_l0_mv.i2_mvx) + ((s_l0_mv.i2_mvy) * ps… in ih264e_evaluate_bipred()
1845 i4_max_reflist = (ps_proc->i4_slice_type == PSLICE) ? PRED_L0 : PRED_L1; in ih264e_compute_me_multi_reflist()
1851 for (i4_reflist = PRED_L0; i4_reflist <= i4_max_reflist; i4_reflist++) in ih264e_compute_me_multi_reflist()
1929 ps_me_ctxt->apu1_subpel_buffs[ps_me_ctxt->as_mb_part[PRED_L0].i4_srch_pos_idx] = in ih264e_compute_me_multi_reflist()
2000 l0_srch_pos_idx = ps_me_ctxt->as_mb_part[PRED_L0].i4_srch_pos_idx; in ih264e_compute_me_multi_reflist()
2015 i4_l0_skip_mv_idx = ps_me_ctxt->u4_num_candidates[PRED_L0] - 2; in ih264e_compute_me_multi_reflist()
2017 …xt->as_mv_init_search[PRED_BI][0].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_skip_mv_id… in ih264e_compute_me_multi_reflist()
2018 …xt->as_mv_init_search[PRED_BI][0].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_skip_mv_id… in ih264e_compute_me_multi_reflist()
2025 …xt->as_mv_init_search[PRED_BI][2].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_skip_mv_id… in ih264e_compute_me_multi_reflist()
2026 …xt->as_mv_init_search[PRED_BI][2].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_skip_mv_id… in ih264e_compute_me_multi_reflist()
2031 ps_me_ctxt->as_mv_init_search[PRED_BI][4] = ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr; in ih264e_compute_me_multi_reflist()
2074 …ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr = ps_me_ctxt->as_mv_init_search[PRED_BI][i4_srch_pos << … in ih264e_compute_me_multi_reflist()
2100 …ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvx = (ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvx… in ih264e_compute_me_multi_reflist()
2101 …ps_proc->ps_pu->s_me_info[PRED_L0].s_mv.i2_mvy = (ps_me_ctxt->as_mb_part[PRED_L0].s_mv_curr.i2_mvy… in ih264e_compute_me_multi_reflist()
2107 ps_proc->ps_pu->s_me_info[1].i1_ref_idx = (ps_proc->ps_pu->b2_pred_mode != PRED_L0)? -1:0; in ih264e_compute_me_multi_reflist()