• Home
  • Raw
  • Download

Lines Matching refs:ps_me_ctxt

123 void ih264e_init_mv_bits(me_ctxt_t *ps_me_ctxt)  in ih264e_init_mv_bits()  argument
146 ps_me_ctxt->pu1_mv_bits[0] = 1; in ih264e_init_mv_bits()
160 ps_me_ctxt->pu1_mv_bits[-i] = ps_me_ctxt->pu1_mv_bits[i] = codesize; in ih264e_init_mv_bits()
214 me_ctxt_t *ps_me_ctxt, in ih264e_get_search_candidates() argument
227 mb_part_ctxt *ps_mb_part = &ps_me_ctxt->as_mb_part[i4_reflist]; in ih264e_get_search_candidates()
239 WORD32 i4_srch_range_n = ps_me_ctxt->i4_srch_range_n; in ih264e_get_search_candidates()
240 WORD32 i4_srch_range_s = ps_me_ctxt->i4_srch_range_s; in ih264e_get_search_candidates()
241 WORD32 i4_srch_range_e = ps_me_ctxt->i4_srch_range_e; in ih264e_get_search_candidates()
242 WORD32 i4_srch_range_w = ps_me_ctxt->i4_srch_range_w; in ih264e_get_search_candidates()
258 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = 0; in ih264e_get_search_candidates()
259 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = 0; in ih264e_get_search_candidates()
272 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
273 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
287 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
288 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
301 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
302 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
315 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
316 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
333 ps_me_ctxt->i4_skip_type = ps_proc->ps_codec->apf_find_skip_params_me in ih264e_get_search_candidates()
343 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
344 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
356 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvx = mvx; in ih264e_get_search_candidates()
357 ps_me_ctxt->as_mv_init_search[i4_reflist][u4_num_candidates].i2_mvy = mvy; in ih264e_get_search_candidates()
364 ps_me_ctxt->u4_num_candidates[i4_reflist] = u4_num_candidates; in ih264e_get_search_candidates()
826 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_me() local
831 ps_me_ctxt->i4_skip_bias[BSLICE] = SKIP_BIAS_B; in ih264e_init_me()
835 ps_me_ctxt->i4_skip_bias[PSLICE] = 4 * SKIP_BIAS_P; in ih264e_init_me()
839 ps_me_ctxt->i4_skip_bias[PSLICE] = SKIP_BIAS_P; in ih264e_init_me()
843 ps_me_ctxt->pu1_src_buf_luma = ps_proc->pu1_src_buf_luma; in ih264e_init_me()
845 ps_me_ctxt->i4_src_strd = ps_proc->i4_src_strd; in ih264e_init_me()
848 ps_me_ctxt->apu1_ref_buf_luma[0] = ps_proc->apu1_ref_buf_luma[0]; in ih264e_init_me()
849 ps_me_ctxt->apu1_ref_buf_luma[1] = ps_proc->apu1_ref_buf_luma[1]; in ih264e_init_me()
851 ps_me_ctxt->u4_lambda_motion = gu1_qp0[ps_me_ctxt->u1_mb_qp]; in ih264e_init_me()
882 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_compute_me_single_reflist() local
900 ps_me_ctxt->pu2_sad_thrsh = ps_qp_params->pu2_sad_thrsh; in ih264e_compute_me_single_reflist()
916 ps_me_ctxt->i4_srch_range_w = -MIN(columns_left, DEFAULT_MAX_SRCH_RANGE_X >> 1); in ih264e_compute_me_single_reflist()
917 ps_me_ctxt->i4_srch_range_e = MIN(columns_right, DEFAULT_MAX_SRCH_RANGE_X >> 1); in ih264e_compute_me_single_reflist()
918 ps_me_ctxt->i4_srch_range_n = -MIN(rows_above, DEFAULT_MAX_SRCH_RANGE_Y >> 1); in ih264e_compute_me_single_reflist()
919 ps_me_ctxt->i4_srch_range_s = MIN(rows_below, DEFAULT_MAX_SRCH_RANGE_Y >> 1); in ih264e_compute_me_single_reflist()
922 ps_me_ctxt->i4_srch_range_w += 1; in ih264e_compute_me_single_reflist()
923 ps_me_ctxt->i4_srch_range_e -= 1; in ih264e_compute_me_single_reflist()
924 ps_me_ctxt->i4_srch_range_n += 1; in ih264e_compute_me_single_reflist()
925 ps_me_ctxt->i4_srch_range_s -= 1; in ih264e_compute_me_single_reflist()
935 ps_me_ctxt->u4_min_sad_reached = 0; in ih264e_compute_me_single_reflist()
936 ps_me_ctxt->i4_min_sad = ps_proc->ps_cur_mb->u4_min_sad; in ih264e_compute_me_single_reflist()
939 ih264e_get_search_candidates(ps_proc, ps_me_ctxt, PRED_L0); in ih264e_compute_me_single_reflist()
949 ime_compute_skip_cost( ps_me_ctxt, 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()
971 if (!ps_me_ctxt->u4_min_sad_reached) 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()
985 if (ps_me_ctxt->u4_enable_hpel) 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()
992 ps_me_ctxt->apu1_subpel_buffs[0] = ps_proc->apu1_subpel_buffs[0]; in ih264e_compute_me_single_reflist()
993 ps_me_ctxt->apu1_subpel_buffs[1] = ps_proc->apu1_subpel_buffs[1]; in ih264e_compute_me_single_reflist()
994 ps_me_ctxt->apu1_subpel_buffs[2] = ps_proc->apu1_subpel_buffs[2]; in ih264e_compute_me_single_reflist()
996 ps_me_ctxt->u4_subpel_buf_strd = HP_BUFF_WD; in ih264e_compute_me_single_reflist()
1005 ps_me_ctxt->apu1_subpel_buffs[0], in ih264e_compute_me_single_reflist()
1007 ps_me_ctxt->u4_subpel_buf_strd); in ih264e_compute_me_single_reflist()
1020 pu1_hpel_src, ps_me_ctxt->apu1_subpel_buffs[1], in ih264e_compute_me_single_reflist()
1021 ps_me_ctxt->apu1_subpel_buffs[2], i4_rec_strd, in ih264e_compute_me_single_reflist()
1022 ps_me_ctxt->u4_subpel_buf_strd, ps_proc->ai16_pred1 + 3, in ih264e_compute_me_single_reflist()
1023 ps_me_ctxt->u4_subpel_buf_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()
1049 ps_me_ctxt->u4_subpel_buf_strd, 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()
1081 if (ps_me_ctxt->u4_min_sad_reached == 1) in ih264e_compute_me_single_reflist()
1084 ps_proc->ps_cur_mb->u4_min_sad = ps_me_ctxt->i4_min_sad; in ih264e_compute_me_single_reflist()
1669 void ih264e_evaluate_bipred(me_ctxt_t *ps_me_ctxt, in ih264e_evaluate_bipred() argument
1688 u4_fast_sad = ps_me_ctxt->u4_enable_fast_sad; in ih264e_evaluate_bipred()
1691 for (i = 0; i < ps_me_ctxt->u4_num_candidates[PRED_BI]; i += 2) in ih264e_evaluate_bipred()
1693 pu1_dst_buf = ps_me_ctxt->apu1_subpel_buffs[i4_dest_buff]; in ih264e_evaluate_bipred()
1695 s_l0_mv.i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvx >> 2; in ih264e_evaluate_bipred()
1696 s_l0_mv.i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvy >> 2; in ih264e_evaluate_bipred()
1697 s_l1_mv.i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvx >> 2; in ih264e_evaluate_bipred()
1698 s_l1_mv.i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvy >> 2; in ih264e_evaluate_bipred()
1703 if ((ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvx & 0x3)|| in ih264e_evaluate_bipred()
1704 (ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvy & 0x3)) 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()
1707 i4_ref_l0_stride = ps_me_ctxt->u4_subpel_buf_strd; 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()
1712 i4_ref_l0_stride = ps_me_ctxt->i4_rec_strd; in ih264e_evaluate_bipred()
1716 if ((ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvx & 0x3) || in ih264e_evaluate_bipred()
1717 (ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvy & 0x3)) in ih264e_evaluate_bipred()
1719 pu1_ref_mb_l1 = ps_me_ctxt->as_mb_part[PRED_L1].pu1_best_hpel_buf; in ih264e_evaluate_bipred()
1720 i4_ref_l1_stride = ps_me_ctxt->u4_subpel_buf_strd; in ih264e_evaluate_bipred()
1724 …pu1_ref_mb_l1 = ps_me_ctxt->apu1_ref_buf_luma[PRED_L1] + (s_l1_mv.i2_mvx) + ((s_l1_mv.i2_mvy) * ps… in ih264e_evaluate_bipred()
1725 i4_ref_l1_stride = ps_me_ctxt->i4_rec_strd; in ih264e_evaluate_bipred()
1731 ps_me_ctxt->u4_subpel_buf_strd, MB_SIZE, MB_SIZE); in ih264e_evaluate_bipred()
1733 ps_me_ctxt->pf_ime_compute_sad_16x16[u4_fast_sad]( in ih264e_evaluate_bipred()
1734 ps_me_ctxt->pu1_src_buf_luma, pu1_dst_buf, in ih264e_evaluate_bipred()
1735 ps_me_ctxt->i4_src_strd, ps_me_ctxt->u4_subpel_buf_strd, in ih264e_evaluate_bipred()
1739 …i4_mb_cost = ps_me_ctxt->pu1_mv_bits[ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvx - ps_l0_pre… in ih264e_evaluate_bipred()
1740 …i4_mb_cost += ps_me_ctxt->pu1_mv_bits[ps_me_ctxt->as_mv_init_search[PRED_BI][i].i2_mvy - ps_l0_pre… in ih264e_evaluate_bipred()
1741 …i4_mb_cost += ps_me_ctxt->pu1_mv_bits[ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvx - ps_l1… in ih264e_evaluate_bipred()
1742 …i4_mb_cost += ps_me_ctxt->pu1_mv_bits[ps_me_ctxt->as_mv_init_search[PRED_BI][i + 1].i2_mvy - ps_l1… in ih264e_evaluate_bipred()
1744 …i4_mb_cost -= (ps_me_ctxt->i4_skip_bias[BSLICE]) * (ps_me_ctxt->i4_skip_type == PRED_BI) * (i == 0… in ih264e_evaluate_bipred()
1747 i4_mb_cost *= ps_me_ctxt->u4_lambda_motion; in ih264e_evaluate_bipred()
1786 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_compute_me_multi_reflist() local
1807 ps_me_ctxt->pu2_sad_thrsh = ps_qp_params->pu2_sad_thrsh; in ih264e_compute_me_multi_reflist()
1823 ps_me_ctxt->i4_srch_range_w = -MIN(columns_left, DEFAULT_MAX_SRCH_RANGE_X >> 1); in ih264e_compute_me_multi_reflist()
1824 ps_me_ctxt->i4_srch_range_e = MIN(columns_right, DEFAULT_MAX_SRCH_RANGE_X >> 1); in ih264e_compute_me_multi_reflist()
1825 ps_me_ctxt->i4_srch_range_n = -MIN(rows_above, DEFAULT_MAX_SRCH_RANGE_Y >> 1); in ih264e_compute_me_multi_reflist()
1826 ps_me_ctxt->i4_srch_range_s = MIN(rows_below, DEFAULT_MAX_SRCH_RANGE_Y >> 1); in ih264e_compute_me_multi_reflist()
1829 if (ps_me_ctxt->u4_enable_hpel) in ih264e_compute_me_multi_reflist()
1831 ps_me_ctxt->i4_srch_range_w += 1; in ih264e_compute_me_multi_reflist()
1832 ps_me_ctxt->i4_srch_range_e -= 1; in ih264e_compute_me_multi_reflist()
1833 ps_me_ctxt->i4_srch_range_n += 1; in ih264e_compute_me_multi_reflist()
1834 ps_me_ctxt->i4_srch_range_s -= 1; in ih264e_compute_me_multi_reflist()
1848 ps_me_ctxt->u4_min_sad_reached = 0; in ih264e_compute_me_multi_reflist()
1849 ps_me_ctxt->i4_min_sad = ps_proc->ps_cur_mb->u4_min_sad; in ih264e_compute_me_multi_reflist()
1855 ih264e_get_search_candidates(ps_proc, ps_me_ctxt, i4_reflist); in ih264e_compute_me_multi_reflist()
1865 if (ps_me_ctxt->i4_skip_type == i4_reflist) in ih264e_compute_me_multi_reflist()
1867 ime_compute_skip_cost( ps_me_ctxt, in ih264e_compute_me_multi_reflist()
1881 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx = 0; in ih264e_compute_me_multi_reflist()
1882 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy = 0; in ih264e_compute_me_multi_reflist()
1883 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost = INT_MAX; in ih264e_compute_me_multi_reflist()
1884 ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion = INT_MAX; in ih264e_compute_me_multi_reflist()
1887 ps_me_ctxt->as_mb_part[i4_reflist].pu1_best_hpel_buf = NULL; in ih264e_compute_me_multi_reflist()
1890 if (ps_me_ctxt->u4_min_sad_reached) in ih264e_compute_me_multi_reflist()
1898 ime_evaluate_init_srchposn_16x16(ps_me_ctxt, i4_reflist); in ih264e_compute_me_multi_reflist()
1903 ime_full_pel_motion_estimation_16x16(ps_me_ctxt, i4_reflist); in ih264e_compute_me_multi_reflist()
1905 DEBUG_MV_HISTOGRAM_ADD((ps_me_ctxt->s_mb_part.s_mv_curr.i2_mvx >> 2), in ih264e_compute_me_multi_reflist()
1906 (ps_me_ctxt->s_mb_part.s_mv_curr.i2_mvy >> 2)); in ih264e_compute_me_multi_reflist()
1908 DEBUG_SAD_HISTOGRAM_ADD(ps_me_ctxt->s_mb_part.i4_mb_distortion, 1); in ih264e_compute_me_multi_reflist()
1911 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx <<= 2; in ih264e_compute_me_multi_reflist()
1912 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy <<= 2; in ih264e_compute_me_multi_reflist()
1914 if (ps_me_ctxt->u4_enable_hpel) in ih264e_compute_me_multi_reflist()
1917 pu1_hpel_src = ps_me_ctxt->apu1_ref_buf_luma[i4_reflist] in ih264e_compute_me_multi_reflist()
1918 + (ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvx >> 2) in ih264e_compute_me_multi_reflist()
1919 … + ((ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr.i2_mvy >> 2)* i4_rec_strd); in ih264e_compute_me_multi_reflist()
1921 ps_me_ctxt->apu1_subpel_buffs[0] = ps_proc->apu1_subpel_buffs[0]; in ih264e_compute_me_multi_reflist()
1922 ps_me_ctxt->apu1_subpel_buffs[1] = ps_proc->apu1_subpel_buffs[1]; in ih264e_compute_me_multi_reflist()
1923 ps_me_ctxt->apu1_subpel_buffs[2] = ps_proc->apu1_subpel_buffs[2]; in ih264e_compute_me_multi_reflist()
1926 ps_me_ctxt->as_mb_part[i4_reflist].i4_srch_pos_idx = 3; 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()
1933 ps_me_ctxt->u4_subpel_buf_strd = HP_BUFF_WD; in ih264e_compute_me_multi_reflist()
1942 ps_me_ctxt->apu1_subpel_buffs[0], in ih264e_compute_me_multi_reflist()
1944 ps_me_ctxt->u4_subpel_buf_strd); in ih264e_compute_me_multi_reflist()
1957 pu1_hpel_src, ps_me_ctxt->apu1_subpel_buffs[1], in ih264e_compute_me_multi_reflist()
1958 ps_me_ctxt->apu1_subpel_buffs[2], i4_rec_strd, in ih264e_compute_me_multi_reflist()
1959 ps_me_ctxt->u4_subpel_buf_strd, ps_proc->ai16_pred1 + 3, in ih264e_compute_me_multi_reflist()
1960 ps_me_ctxt->u4_subpel_buf_strd); in ih264e_compute_me_multi_reflist()
1962 ime_sub_pel_motion_estimation_16x16(ps_me_ctxt, i4_reflist); in ih264e_compute_me_multi_reflist()
1976 … if (as_skip_mbpart[i4_reflist].i4_mb_cost < ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost) in ih264e_compute_me_multi_reflist()
1978ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost = as_skip_mbpart[i4_reflist].i4_mb_cost; in ih264e_compute_me_multi_reflist()
1979ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion = as_skip_mbpart[i4_reflist].i4_mb_distortion; in ih264e_compute_me_multi_reflist()
1980 ps_me_ctxt->as_mb_part[i4_reflist].s_mv_curr = as_skip_mbpart[i4_reflist].s_mv_curr; in ih264e_compute_me_multi_reflist()
1993 if (i4_max_reflist == PRED_L1 && ps_me_ctxt->u4_min_sad_reached == 0) 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()
2001 l1_srch_pos_idx = ps_me_ctxt->as_mb_part[PRED_L1].i4_srch_pos_idx; in ih264e_compute_me_multi_reflist()
2008 ps_me_ctxt->apu1_subpel_buffs[j] = ps_proc->apu1_subpel_buffs[i]; in ih264e_compute_me_multi_reflist()
2012 ps_me_ctxt->u4_subpel_buf_strd = HP_BUFF_WD; 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()
2016 i4_l1_skip_mv_idx = ps_me_ctxt->u4_num_candidates[PRED_L1] - 2; in ih264e_compute_me_multi_reflist()
2017ps_me_ctxt->as_mv_init_search[PRED_BI][0].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_sk… in ih264e_compute_me_multi_reflist()
2018ps_me_ctxt->as_mv_init_search[PRED_BI][0].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_sk… in ih264e_compute_me_multi_reflist()
2019ps_me_ctxt->as_mv_init_search[PRED_BI][1].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L1][i4_l1_sk… in ih264e_compute_me_multi_reflist()
2020ps_me_ctxt->as_mv_init_search[PRED_BI][1].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L1][i4_l1_sk… in ih264e_compute_me_multi_reflist()
2025ps_me_ctxt->as_mv_init_search[PRED_BI][2].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_sk… in ih264e_compute_me_multi_reflist()
2026ps_me_ctxt->as_mv_init_search[PRED_BI][2].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L0][i4_l0_sk… in ih264e_compute_me_multi_reflist()
2027ps_me_ctxt->as_mv_init_search[PRED_BI][3].i2_mvx = ps_me_ctxt->as_mv_init_search[PRED_L1][i4_l1_sk… in ih264e_compute_me_multi_reflist()
2028ps_me_ctxt->as_mv_init_search[PRED_BI][3].i2_mvy = ps_me_ctxt->as_mv_init_search[PRED_L1][i4_l1_sk… 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()
2032 ps_me_ctxt->as_mv_init_search[PRED_BI][5] = ps_me_ctxt->as_mb_part[PRED_L1].s_mv_curr; in ih264e_compute_me_multi_reflist()
2034 ps_me_ctxt->u4_num_candidates[PRED_BI] = 6; in ih264e_compute_me_multi_reflist()
2036 ps_me_ctxt->as_mb_part[PRED_BI].i4_mb_cost = INT_MAX; in ih264e_compute_me_multi_reflist()
2037 ps_me_ctxt->as_mb_part[PRED_BI].i4_mb_distortion = INT_MAX; in ih264e_compute_me_multi_reflist()
2039 ih264e_evaluate_bipred(ps_me_ctxt, ps_proc, in ih264e_compute_me_multi_reflist()
2040 &ps_me_ctxt->as_mb_part[PRED_BI]); in ih264e_compute_me_multi_reflist()
2052 if (ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost < ps_proc->ps_cur_mb->i4_mb_cost) in ih264e_compute_me_multi_reflist()
2054 ps_proc->ps_cur_mb->i4_mb_cost = ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_cost; in ih264e_compute_me_multi_reflist()
2055 … ps_proc->ps_cur_mb->i4_mb_distortion = ps_me_ctxt->as_mb_part[i4_reflist].i4_mb_distortion; in ih264e_compute_me_multi_reflist()
2071 WORD32 i4_srch_pos = ps_me_ctxt->as_mb_part[PRED_BI].i4_srch_pos_idx; in ih264e_compute_me_multi_reflist()
2072 UWORD8 *pu1_bi_buf = ps_me_ctxt->as_mb_part[PRED_BI].pu1_best_hpel_buf; in ih264e_compute_me_multi_reflist()
2074ps_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()
2075ps_me_ctxt->as_mb_part[PRED_L1].s_mv_curr = ps_me_ctxt->as_mv_init_search[PRED_BI][(i4_srch_pos <<… in ih264e_compute_me_multi_reflist()
2080 ps_me_ctxt->u4_subpel_buf_strd, in ih264e_compute_me_multi_reflist()
2085 else if (ps_me_ctxt->as_mb_part[ps_proc->ps_pu->b2_pred_mode].pu1_best_hpel_buf) in ih264e_compute_me_multi_reflist()
2089 ps_me_ctxt->as_mb_part[ps_proc->ps_pu->b2_pred_mode].pu1_best_hpel_buf, in ih264e_compute_me_multi_reflist()
2091 ps_me_ctxt->u4_subpel_buf_strd, 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()
2102 …ps_proc->ps_pu->s_me_info[PRED_L1].s_mv.i2_mvx = (ps_me_ctxt->as_mb_part[PRED_L1].s_mv_curr.i2_mvx… in ih264e_compute_me_multi_reflist()
2103 …ps_proc->ps_pu->s_me_info[PRED_L1].s_mv.i2_mvy = (ps_me_ctxt->as_mb_part[PRED_L1].s_mv_curr.i2_mvy… in ih264e_compute_me_multi_reflist()
2122 if (ps_me_ctxt->u4_min_sad_reached == 1) in ih264e_compute_me_multi_reflist()
2125 ps_proc->ps_cur_mb->u4_min_sad = ps_me_ctxt->i4_min_sad; in ih264e_compute_me_multi_reflist()