Home | History | Annotate | Download | only in encoder

Lines Matching refs:i4_reflist

215                                          WORD32 i4_reflist)
227 mb_part_ctxt *ps_mb_part = &ps_me_ctxt->as_mb_part[i4_reflist];
236 WORD32 i4_cmpl_predmode = (i4_reflist == 0) ? PRED_L1 : PRED_L0;
247 ps_left_mv = &ps_proc->s_left_mb_pu_ME.s_me_info[i4_reflist].s_mv;
248 ps_top_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x)->s_me_info[i4_reflist].s_mv;
249 ps_top_left_mv = &ps_proc->s_top_left_mb_pu_ME.s_me_info[i4_reflist].s_mv;
250 ps_top_right_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x + 1)->s_me_info[i4_reflist].s_mv;
258 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = 0;
259 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = 0;
272 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
273 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
287 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
288 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
301 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
302 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
315 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
316 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
326 ih264e_mv_pred_me(ps_proc, i4_reflist);
328 ps_mb_part->s_mv_pred.i2_mvx = ps_proc->ps_pred_mv[i4_reflist].s_mv.i2_mvx;
329 ps_mb_part->s_mv_pred.i2_mvy = ps_proc->ps_pred_mv[i4_reflist].s_mv.i2_mvy;
334 [ps_proc->i4_slice_type](ps_proc, i4_reflist);
337 mvx = (ps_proc->ps_skip_mv[i4_reflist].s_mv.i2_mvx + 2) >> 2;
338 mvy = (ps_proc->ps_skip_mv[i4_reflist].s_mv.i2_mvy + 2) >> 2;
343 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
344 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
350 mvx = (ps_proc->ps_skip_mv[i4_reflist + 2].s_mv.i2_mvx + 2) >> 2;
351 mvy = (ps_proc->ps_skip_mv[i4_reflist + 2].s_mv.i2_mvy + 2) >> 2;
356 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx;
357 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy;
364 ps_me_ctxt->u4_num_candidates[i4_reflist] = u4_num_candidates;
392 WORD32 ih264e_find_pskip_params(process_ctxt_t *ps_proc, WORD32 i4_reflist)
403 UNUSED(i4_reflist);
466 WORD32 ih264e_find_pskip_params_me(process_ctxt_t *ps_proc, WORD32 i4_reflist)
477 UNUSED(i4_reflist);
645 WORD32 i4_reflist, max_reflist, i4_cmpl_predmode;
656 for (i4_reflist = 0; i4_reflist < max_reflist; i4_reflist++)
658 i4_cmpl_predmode = (i4_reflist == 0) ? PRED_L1 : PRED_L0;
666 ps_left_mb_pu->s_me_info[i4_reflist].i1_ref_idx = 0;
667 ps_left_mb_pu->s_me_info[i4_reflist].s_mv = zero_mv;
673 ps_top_row_pu[0].s_me_info[i4_reflist].i1_ref_idx = 0;
674 ps_top_row_pu[0].s_me_info[i4_reflist].s_mv = zero_mv;
686 ps_top_row_pu[1].s_me_info[i4_reflist].i1_ref_idx = 0;
687 ps_top_row_pu[1].s_me_info[i4_reflist].s_mv = zero_mv;
691 ps_top_row_pu[1].s_me_info[i4_reflist].i1_ref_idx = ps_top_left_mb_pu->s_me_info[i4_reflist].i1_ref_idx;
692 ps_top_row_pu[1].s_me_info[i4_reflist].s_mv = ps_top_left_mb_pu->s_me_info[i4_reflist].s_mv;
698 ps_top_row_pu[1].s_me_info[i4_reflist].i1_ref_idx = 0;
699 ps_top_row_pu[1].s_me_info[i4_reflist].s_mv = zero_mv;
702 ih264e_get_mv_predictor(ps_left_mb_pu, ps_top_row_pu, &ps_pred_mv[i4_reflist], i4_reflist);
1263 * @param[in] i4_reflist
1275 WORD32 ih264e_find_bskip_params_me(process_ctxt_t *ps_proc, WORD32 i4_reflist)
1305 UNUSED(i4_reflist);
1474 WORD32 ih264e_find_bskip_params(process_ctxt_t *ps_proc, WORD32 i4_reflist)
1496 UNUSED(i4_reflist);
1792 WORD32 i4_reflist, i4_max_reflist;
1851 for (i4_reflist = PRED_L0; i4_reflist <= i4_max_reflist; i4_reflist++)
1855 ih264e_get_search_candidates(ps_proc, ps_me_ctxt, i4_reflist);
1860 as_skip_mbpart[i4_reflist].s_mv_curr.i2_mvx = 0;
1861 as_skip_mbpart[i4_reflist].s_mv_curr.i2_mvy = 0;
1862 as_skip_mbpart[i4_reflist].i4_mb_cost = INT_MAX;
1863 as_skip_mbpart[i4_reflist].i4_mb_distortion = INT_MAX;
1865 if (ps_me_ctxt->i4_skip_type == i4_reflist)
1868 (ime_mv_t *)(&ps_proc->ps_skip_mv[i4_reflist].s_mv),
1869 &as_skip_mbpart[i4_reflist],
1871 i4_reflist,
1875 as_skip_mbpart[i4_reflist].s_mv_curr.i2_mvx <<= 2;
1876 as_skip_mbpart[i4_reflist].s_mv_curr.i2_mvy <<= 2;
1881 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx = 0;
1882 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy = 0;
1883 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost = INT_MAX;
1884 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion = INT_MAX;
1887 ps_me_ctxt->as_mb_part[i4_reflist].pu1_best_hpel_buf = NULL;
1892 i4_max_reflist = i4_reflist;
1898 ime_evaluate_init_srchposn_16x16(ps_me_ctxt, i4_reflist);
1903 ime_full_pel_motion_estimation_16x16(ps_me_ctxt, i4_reflist);
1911 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx <<= 2;
1912 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy <<= 2;
1917 pu1_hpel_src = ps_me_ctxt->apu1_ref_buf_luma[i4_reflist]
1918 + (ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx >> 2)
1919 + ((ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy >> 2)* i4_rec_strd);
1926 ps_me_ctxt->as_mb_part[i4_reflist].i4_srch_pos_idx = 3;
1962 ime_sub_pel_motion_estimation_16x16(ps_me_ctxt, i4_reflist);
1974 for (i4_reflist = 0; i4_reflist <= i4_max_reflist; i4_reflist++)
1976 if (as_skip_mbpart[i4_reflist].i4_mb_cost < ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost)
1978 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost = as_skip_mbpart[i4_reflist].i4_mb_cost;
1979 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion = as_skip_mbpart[i4_reflist].i4_mb_distortion;
1980 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr = as_skip_mbpart[i4_reflist].s_mv_curr;
2050 for (i4_reflist = 0; i4_reflist <= i4_max_reflist; i4_reflist++)
2052 if (ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost < ps_proc->ps_cur_mb->i4_mb_cost)
2054 ps_proc->ps_cur_mb->i4_mb_cost = ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost;
2055 ps_proc->ps_cur_mb->i4_mb_distortion = ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion;
2057 ps_proc->ps_pu->b2_pred_mode = i4_reflist ;