Lines Matching refs:ps_proc
213 static void ih264e_get_search_candidates(process_ctxt_t *ps_proc, in ih264e_get_search_candidates() argument
218 WORD32 i4_mb_x = ps_proc->i4_mb_x; in ih264e_get_search_candidates()
233 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_get_search_candidates()
247 ps_left_mv = &ps_proc->s_left_mb_pu_ME.s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates()
248 ps_top_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x)->s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates()
249 ps_top_left_mv = &ps_proc->s_top_left_mb_pu_ME.s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates()
250 ps_top_right_mv = &(ps_proc->ps_top_row_pu_ME + i4_mb_x + 1)->s_me_info[i4_reflist].s_mv; in ih264e_get_search_candidates()
252 i4_left_mode = ps_proc->s_left_mb_pu_ME.b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates()
253 i4_top_mode = (ps_proc->ps_top_row_pu_ME + i4_mb_x)->b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates()
254 i4_top_left_mode = ps_proc->s_top_left_mb_pu_ME.b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates()
255 i4_top_right_mode = (ps_proc->ps_top_row_pu_ME + i4_mb_x + 1)->b2_pred_mode != i4_cmpl_predmode; in ih264e_get_search_candidates()
326 ih264e_mv_pred_me(ps_proc, i4_reflist); in ih264e_get_search_candidates()
328 ps_mb_part->s_mv_pred.i2_mvx = ps_proc->ps_pred_mv[i4_reflist].s_mv.i2_mvx; in ih264e_get_search_candidates()
329 ps_mb_part->s_mv_pred.i2_mvy = ps_proc->ps_pred_mv[i4_reflist].s_mv.i2_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()
334 [ps_proc->i4_slice_type](ps_proc, i4_reflist); in ih264e_get_search_candidates()
337 mvx = (ps_proc->ps_skip_mv[i4_reflist].s_mv.i2_mvx + 2) >> 2; in ih264e_get_search_candidates()
338 mvy = (ps_proc->ps_skip_mv[i4_reflist].s_mv.i2_mvy + 2) >> 2; in ih264e_get_search_candidates()
347 if (ps_proc->i4_slice_type == BSLICE) in ih264e_get_search_candidates()
350 mvx = (ps_proc->ps_skip_mv[i4_reflist + 2].s_mv.i2_mvx + 2) >> 2; in ih264e_get_search_candidates()
351 mvy = (ps_proc->ps_skip_mv[i4_reflist + 2].s_mv.i2_mvy + 2) >> 2; in ih264e_get_search_candidates()
392 WORD32 ih264e_find_pskip_params(process_ctxt_t *ps_proc, WORD32 i4_reflist) in ih264e_find_pskip_params() argument
401 mv_t *ps_skip_mv = &ps_proc->ps_skip_mv[PRED_L0].s_mv; in ih264e_find_pskip_params()
405 ps_left_mb_pu = &ps_proc->s_left_mb_pu ; in ih264e_find_pskip_params()
406 ps_top_mb_pu = ps_proc->ps_top_row_pu + ps_proc->i4_mb_x; in ih264e_find_pskip_params()
408 if ((!ps_proc->ps_ngbr_avbl->u1_mb_a) || in ih264e_find_pskip_params()
409 (!ps_proc->ps_ngbr_avbl->u1_mb_b) || 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()
466 WORD32 ih264e_find_pskip_params_me(process_ctxt_t *ps_proc, WORD32 i4_reflist) in ih264e_find_pskip_params_me() argument
475 mv_t *ps_skip_mv = &ps_proc->ps_skip_mv[PRED_L0].s_mv; in ih264e_find_pskip_params_me()
479 ps_left_mb_pu = &ps_proc->s_left_mb_pu_ME; in ih264e_find_pskip_params_me()
480 ps_top_mb_pu = ps_proc->ps_top_row_pu_ME + ps_proc->i4_mb_x; in ih264e_find_pskip_params_me()
482 if ((!ps_proc->ps_ngbr_avbl->u1_mb_a) || in ih264e_find_pskip_params_me()
483 (!ps_proc->ps_ngbr_avbl->u1_mb_b) || 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()
618 void ih264e_mv_pred(process_ctxt_t *ps_proc, WORD32 i4_slice_type) in ih264e_mv_pred() argument
631 enc_pu_mv_t *ps_pred_mv = ps_proc->ps_pred_mv; in ih264e_mv_pred()
637 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_mv_pred()
640 mb_info_t *ps_top_syn = ps_proc->ps_top_row_mb_syntax_ele + ps_proc->i4_mb_x; in ih264e_mv_pred()
647 ps_top_left_syn = &(ps_proc->s_top_left_mb_syntax_ele); in ih264e_mv_pred()
648 u4_left_is_intra = ps_proc->s_left_mb_syntax_ele.u2_is_intra; in ih264e_mv_pred()
649 ps_left_mb_pu = &ps_proc->s_left_mb_pu; in ih264e_mv_pred()
650 ps_top_left_mb_pu = &ps_proc->s_top_left_mb_pu; in ih264e_mv_pred()
651 ps_top_row_pu = (ps_proc->ps_top_row_pu + ps_proc->i4_mb_x); in ih264e_mv_pred()
725 void ih264e_mv_pred_me(process_ctxt_t *ps_proc, WORD32 i4_ref_list) in ih264e_mv_pred_me() argument
739 enc_pu_mv_t *ps_pred_mv = ps_proc->ps_pred_mv; in ih264e_mv_pred_me()
748 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_mv_pred_me()
750 ps_left_mb_pu = &ps_proc->s_left_mb_pu_ME; in ih264e_mv_pred_me()
751 ps_top_left_mb_pu = &ps_proc->s_top_left_mb_pu_ME; in ih264e_mv_pred_me()
752 ps_top_row_pu = (ps_proc->ps_top_row_pu_ME + ps_proc->i4_mb_x); in ih264e_mv_pred_me()
823 void ih264e_init_me(process_ctxt_t *ps_proc) in ih264e_init_me() argument
826 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_init_me()
829 codec_t *ps_codec = ps_proc->ps_codec; 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()
879 void ih264e_compute_me_single_reflist(process_ctxt_t *ps_proc) in ih264e_compute_me_single_reflist() argument
882 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_compute_me_single_reflist()
885 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_compute_me_single_reflist()
888 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_compute_me_single_reflist()
894 quant_params_t *ps_qp_params = ps_proc->ps_qp_params[0]; in ih264e_compute_me_single_reflist()
907 rows_above = MB_SIZE + ps_proc->i4_mb_y * MB_SIZE; in ih264e_compute_me_single_reflist()
908 rows_below = (ps_proc->i4_ht_mbs - ps_proc->i4_mb_y) * MB_SIZE; in ih264e_compute_me_single_reflist()
909 columns_left = MB_SIZE + ps_proc->i4_mb_x * MB_SIZE; in ih264e_compute_me_single_reflist()
910 columns_right = (ps_proc->i4_wd_mbs - ps_proc->i4_mb_x) * MB_SIZE; 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()
950 (ime_mv_t *)(&ps_proc->ps_skip_mv[PRED_L0].s_mv), in ih264e_compute_me_single_reflist()
952 ps_proc->ps_codec->s_cfg.u4_enable_satqd, 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()
1022 ps_me_ctxt->u4_subpel_buf_strd, ps_proc->ai16_pred1 + 3, in ih264e_compute_me_single_reflist()
1048 ps_proc->pu1_best_subpel_buf, in ih264e_compute_me_single_reflist()
1050 ps_proc->u4_bst_spel_buf_strd, MB_SIZE, MB_SIZE, 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()
1061 ps_proc->ps_cur_mb->u4_mb_type = P16x16; in ih264e_compute_me_single_reflist()
1062 ps_proc->ps_pu->b2_pred_mode = PRED_L0 ; in ih264e_compute_me_single_reflist()
1065 ps_proc->ps_pu->s_me_info[0].i1_ref_idx = -1; in ih264e_compute_me_single_reflist()
1066 ps_proc->ps_pu->s_me_info[1].i1_ref_idx = 0; in ih264e_compute_me_single_reflist()
1069 ps_proc->u4_num_sub_partitions = 1; in ih264e_compute_me_single_reflist()
1070 *(ps_proc->pu4_mb_pu_cnt) = 1; in ih264e_compute_me_single_reflist()
1073 ps_proc->ps_pu->b4_pos_x = 0; in ih264e_compute_me_single_reflist()
1074 ps_proc->ps_pu->b4_pos_y = 0; in ih264e_compute_me_single_reflist()
1077 ps_proc->ps_pu->b4_wd = 3; in ih264e_compute_me_single_reflist()
1078 ps_proc->ps_pu->b4_ht = 3; in ih264e_compute_me_single_reflist()
1083 ps_proc->ps_cur_mb->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()
1107 void ih264e_compute_me_nmb(process_ctxt_t *ps_proc, UWORD32 u4_nmb_count) in ih264e_compute_me_nmb() argument
1110 enc_pu_t *ps_pu_begin = ps_proc->ps_pu; in ih264e_compute_me_nmb()
1113 UWORD8 *pu1_me_map = ps_proc->pu1_me_map + (ps_proc->i4_mb_y * ps_proc->i4_wd_mbs); in ih264e_compute_me_nmb()
1118 ps_proc->s_me_ctxt.u4_left_is_intra = ps_proc->s_left_mb_syntax_ele.u2_is_intra; in ih264e_compute_me_nmb()
1119 ps_proc->s_me_ctxt.u4_left_is_skip = (ps_proc->s_left_mb_syntax_ele.u2_mb_type == PSKIP); in ih264e_compute_me_nmb()
1124 if (ps_proc->i4_mb_y > 0) in ih264e_compute_me_nmb()
1127 … UWORD8 *pu1_me_map_tp_rw = ps_proc->pu1_me_map + (ps_proc->i4_mb_y - 1) * ps_proc->i4_wd_mbs; in ih264e_compute_me_nmb()
1132 WORD32 idx = ps_proc->i4_mb_x + u4_i + 1; in ih264e_compute_me_nmb()
1134 idx = MIN(idx, (ps_proc->i4_wd_mbs - 1)); in ih264e_compute_me_nmb()
1142 ps_proc->ps_skip_mv = &(ps_proc->ps_nmb_info[u4_i].as_skip_mv[0]); in ih264e_compute_me_nmb()
1143 ps_proc->ps_ngbr_avbl = &(ps_proc->ps_nmb_info[u4_i].s_ngbr_avbl); in ih264e_compute_me_nmb()
1144 ps_proc->ps_pred_mv = &(ps_proc->ps_nmb_info[u4_i].as_pred_mv[0]); in ih264e_compute_me_nmb()
1146 ps_proc->ps_cur_mb = &(ps_proc->ps_nmb_info[u4_i]); in ih264e_compute_me_nmb()
1148 ps_proc->ps_cur_mb->u4_min_sad = ps_proc->u4_min_sad; in ih264e_compute_me_nmb()
1149 ps_proc->ps_cur_mb->u4_min_sad_reached = 0; in ih264e_compute_me_nmb()
1151 ps_proc->ps_cur_mb->i4_mb_cost = INT_MAX; in ih264e_compute_me_nmb()
1152 ps_proc->ps_cur_mb->i4_mb_distortion = SHRT_MAX; in ih264e_compute_me_nmb()
1155 ps_proc->pu1_best_subpel_buf = ps_proc->ps_nmb_info[u4_i].pu1_best_sub_pel_buf; in ih264e_compute_me_nmb()
1156 ps_proc->u4_bst_spel_buf_strd = ps_proc->ps_nmb_info[u4_i].u4_bst_spel_buf_strd; in ih264e_compute_me_nmb()
1159 ps_proc->ps_cur_mb->u4_min_sad = ps_proc->ps_codec->u4_min_sad; in ih264e_compute_me_nmb()
1160 ps_proc->ps_cur_mb->u4_min_sad_reached = 0; in ih264e_compute_me_nmb()
1163 ih264e_derive_nghbr_avbl_of_mbs(ps_proc); in ih264e_compute_me_nmb()
1166 ih264e_init_me(ps_proc); in ih264e_compute_me_nmb()
1169 ps_proc->ps_codec->apf_compute_me[ps_proc->i4_slice_type](ps_proc); in ih264e_compute_me_nmb()
1173 mb_info_t *ps_top_syn = ps_proc->ps_top_row_mb_syntax_ele + ps_proc->i4_mb_x; in ih264e_compute_me_nmb()
1174 mb_info_t *ps_top_left_syn = &(ps_proc->s_top_left_mb_syntax_ME); in ih264e_compute_me_nmb()
1175 enc_pu_t *ps_left_mb_pu = &ps_proc->s_left_mb_pu_ME; in ih264e_compute_me_nmb()
1176 enc_pu_t *ps_top_left_mb_pu = &ps_proc->s_top_left_mb_pu_ME; in ih264e_compute_me_nmb()
1177 enc_pu_t *ps_top_mv = ps_proc->ps_top_row_pu_ME + ps_proc->i4_mb_x; in ih264e_compute_me_nmb()
1182 *ps_left_mb_pu = *ps_proc->ps_pu; in ih264e_compute_me_nmb()
1185 ps_proc->ps_pu += *ps_proc->pu4_mb_pu_cnt; in ih264e_compute_me_nmb()
1188 ps_proc->ps_nmb_info[u4_i].u4_min_sad_reached = ps_proc->ps_cur_mb->u4_min_sad_reached; in ih264e_compute_me_nmb()
1189 ps_proc->ps_nmb_info[u4_i].u4_min_sad = ps_proc->ps_cur_mb->u4_min_sad; in ih264e_compute_me_nmb()
1198 pu1_me_map[ps_proc->i4_mb_x] = 1; in ih264e_compute_me_nmb()
1200 ps_proc->i4_mb_x++; in ih264e_compute_me_nmb()
1202 ps_proc->s_me_ctxt.u4_left_is_intra = 0; in ih264e_compute_me_nmb()
1203 ps_proc->s_me_ctxt.u4_left_is_skip = (ps_proc->ps_cur_mb->u4_mb_type == PSKIP); in ih264e_compute_me_nmb()
1206 ps_proc->pu1_src_buf_luma += MB_SIZE; in ih264e_compute_me_nmb()
1207 ps_proc->pu1_rec_buf_luma += MB_SIZE; in ih264e_compute_me_nmb()
1208 ps_proc->apu1_ref_buf_luma[0] += MB_SIZE; in ih264e_compute_me_nmb()
1209 ps_proc->apu1_ref_buf_luma[1] += MB_SIZE; in ih264e_compute_me_nmb()
1215 ps_proc->pu1_src_buf_chroma += MB_SIZE; in ih264e_compute_me_nmb()
1216 ps_proc->pu1_rec_buf_chroma += MB_SIZE; in ih264e_compute_me_nmb()
1217 ps_proc->apu1_ref_buf_chroma[0] += MB_SIZE; in ih264e_compute_me_nmb()
1218 ps_proc->apu1_ref_buf_chroma[1] += MB_SIZE; in ih264e_compute_me_nmb()
1221 ps_proc->pu4_mb_pu_cnt += 1; in ih264e_compute_me_nmb()
1225 ps_proc->ps_pu = ps_pu_begin; in ih264e_compute_me_nmb()
1226 ps_proc->i4_mb_x = ps_proc->i4_mb_x - u4_nmb_count; in ih264e_compute_me_nmb()
1229 ps_proc->pu1_src_buf_luma -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1230 ps_proc->pu1_rec_buf_luma -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1231 ps_proc->apu1_ref_buf_luma[0] -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1232 ps_proc->apu1_ref_buf_luma[1] -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1238 ps_proc->pu1_src_buf_chroma -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1239 ps_proc->pu1_rec_buf_chroma -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1240 ps_proc->apu1_ref_buf_chroma[0] -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1241 ps_proc->apu1_ref_buf_chroma[1] -= MB_SIZE * u4_nmb_count; in ih264e_compute_me_nmb()
1244 ps_proc->pu4_mb_pu_cnt -= u4_nmb_count; in ih264e_compute_me_nmb()
1275 WORD32 ih264e_find_bskip_params_me(process_ctxt_t *ps_proc, WORD32 i4_reflist) in ih264e_find_bskip_params_me() argument
1290 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_find_bskip_params_me()
1318 if (ps_proc->ps_colpu->b1_intra_flag) in ih264e_find_bskip_params_me()
1326 if (ps_proc->ps_colpu->b2_pred_mode != PRED_L1) in ih264e_find_bskip_params_me()
1328 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L0].s_mv; in ih264e_find_bskip_params_me()
1333 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L1].s_mv; in ih264e_find_bskip_params_me()
1349 ps_a_pu = &ps_proc->s_left_mb_pu_ME; in ih264e_find_bskip_params_me()
1350 ps_b_pu = (ps_proc->ps_top_row_pu_ME + ps_proc->i4_mb_x); in ih264e_find_bskip_params_me()
1355 ps_c_pu = &((ps_proc->ps_top_row_pu_ME + ps_proc->i4_mb_x)[1]); in ih264e_find_bskip_params_me()
1360 ps_c_pu = &ps_proc->s_top_left_mb_pu_ME; in ih264e_find_bskip_params_me()
1395 ps_proc->ps_skip_mv[0].s_mv.i2_mvx = ps_proc->ps_pred_mv[0].s_mv.i2_mvx; in ih264e_find_bskip_params_me()
1396 ps_proc->ps_skip_mv[0].s_mv.i2_mvy = ps_proc->ps_pred_mv[0].s_mv.i2_mvy; in ih264e_find_bskip_params_me()
1400 ps_proc->ps_skip_mv[0].s_mv.i2_mvx = 0; in ih264e_find_bskip_params_me()
1401 ps_proc->ps_skip_mv[0].s_mv.i2_mvy = 0; in ih264e_find_bskip_params_me()
1407 ps_proc->ps_skip_mv[1].s_mv.i2_mvx = ps_proc->ps_pred_mv[1].s_mv.i2_mvx; in ih264e_find_bskip_params_me()
1408 ps_proc->ps_skip_mv[1].s_mv.i2_mvy = ps_proc->ps_pred_mv[1].s_mv.i2_mvy; in ih264e_find_bskip_params_me()
1412 ps_proc->ps_skip_mv[1].s_mv.i2_mvx = 0; in ih264e_find_bskip_params_me()
1413 ps_proc->ps_skip_mv[1].s_mv.i2_mvy = 0; in ih264e_find_bskip_params_me()
1424 enc_pu_mv_t *ps_skip_mv = &ps_proc->ps_skip_mv[2]; 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()
1427 ps_ref_pic[PRED_L1] = ps_proc->aps_ref_pic[PRED_L1]; 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()
1474 WORD32 ih264e_find_bskip_params(process_ctxt_t *ps_proc, WORD32 i4_reflist) in ih264e_find_bskip_params() argument
1491 block_neighbors_t *ps_ngbr_avbl = ps_proc->ps_ngbr_avbl; in ih264e_find_bskip_params()
1512 if (ps_proc->ps_colpu->b1_intra_flag) in ih264e_find_bskip_params()
1520 if (ps_proc->ps_colpu->b2_pred_mode != PRED_L1) in ih264e_find_bskip_params()
1522 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L0].s_mv; in ih264e_find_bskip_params()
1527 s_mvcol = ps_proc->ps_colpu->s_me_info[PRED_L1].s_mv; in ih264e_find_bskip_params()
1542 ps_a_syn = &ps_proc->s_left_mb_syntax_ele; in ih264e_find_bskip_params()
1543 ps_a_pu = &ps_proc->s_left_mb_pu; in ih264e_find_bskip_params()
1545 ps_b_syn = ps_proc->ps_top_row_mb_syntax_ele + ps_proc->i4_mb_x; in ih264e_find_bskip_params()
1546 ps_b_pu = (ps_proc->ps_top_row_pu + ps_proc->i4_mb_x); in ih264e_find_bskip_params()
1551 ps_c_syn = &((ps_proc->ps_top_row_mb_syntax_ele + ps_proc->i4_mb_x)[1]); in ih264e_find_bskip_params()
1552 ps_c_pu = &((ps_proc->ps_top_row_pu + ps_proc->i4_mb_x)[1]); in ih264e_find_bskip_params()
1557 ps_c_syn = &(ps_proc->s_top_left_mb_syntax_ele); in ih264e_find_bskip_params()
1558 ps_c_pu = &ps_proc->s_top_left_mb_pu; in ih264e_find_bskip_params()
1586 ps_proc->ps_skip_mv[0].s_mv.i2_mvx = ps_proc->ps_pred_mv[0].s_mv.i2_mvx; in ih264e_find_bskip_params()
1587 ps_proc->ps_skip_mv[0].s_mv.i2_mvy = ps_proc->ps_pred_mv[0].s_mv.i2_mvy; in ih264e_find_bskip_params()
1591 ps_proc->ps_skip_mv[0].s_mv.i2_mvx = 0; in ih264e_find_bskip_params()
1592 ps_proc->ps_skip_mv[0].s_mv.i2_mvy = 0; in ih264e_find_bskip_params()
1598 ps_proc->ps_skip_mv[1].s_mv.i2_mvx = ps_proc->ps_pred_mv[1].s_mv.i2_mvx; in ih264e_find_bskip_params()
1599 ps_proc->ps_skip_mv[1].s_mv.i2_mvy = ps_proc->ps_pred_mv[1].s_mv.i2_mvy; in ih264e_find_bskip_params()
1603 ps_proc->ps_skip_mv[1].s_mv.i2_mvx = 0; in ih264e_find_bskip_params()
1604 ps_proc->ps_skip_mv[1].s_mv.i2_mvy = 0; in ih264e_find_bskip_params()
1608 switch (ps_proc->ps_pu->b2_pred_mode) in ih264e_find_bskip_params()
1611 if ( (ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvx == ps_proc->ps_skip_mv[0].s_mv.i2_mvx) in ih264e_find_bskip_params()
1612 && (ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvy == ps_proc->ps_skip_mv[0].s_mv.i2_mvy) in ih264e_find_bskip_params()
1613 && (ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvx == ps_proc->ps_skip_mv[1].s_mv.i2_mvx) in ih264e_find_bskip_params()
1614 && (ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvy == ps_proc->ps_skip_mv[1].s_mv.i2_mvy) in ih264e_find_bskip_params()
1622 if ( (ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvx == ps_proc->ps_skip_mv[0].s_mv.i2_mvx) in ih264e_find_bskip_params()
1623 && (ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvy == ps_proc->ps_skip_mv[0].s_mv.i2_mvy) in ih264e_find_bskip_params()
1631 if ( (ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvx == ps_proc->ps_skip_mv[1].s_mv.i2_mvx) in ih264e_find_bskip_params()
1632 && (ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvy == ps_proc->ps_skip_mv[1].s_mv.i2_mvy) in ih264e_find_bskip_params()
1670 process_ctxt_t *ps_proc, in ih264e_evaluate_bipred() argument
1700 ps_l0_pred_mv = &ps_proc->ps_pred_mv[PRED_L0].s_mv; in ih264e_evaluate_bipred()
1701 ps_l1_pred_mv = &ps_proc->ps_pred_mv[PRED_L1].s_mv; in ih264e_evaluate_bipred()
1728 ps_proc->ps_codec->pf_inter_pred_luma_bilinear( in ih264e_evaluate_bipred()
1783 void ih264e_compute_me_multi_reflist(process_ctxt_t *ps_proc) in ih264e_compute_me_multi_reflist() argument
1786 me_ctxt_t *ps_me_ctxt = &ps_proc->s_me_ctxt; in ih264e_compute_me_multi_reflist()
1789 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_compute_me_multi_reflist()
1795 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_compute_me_multi_reflist()
1801 quant_params_t *ps_qp_params = ps_proc->ps_qp_params[0]; in ih264e_compute_me_multi_reflist()
1814 rows_above = MB_SIZE + ps_proc->i4_mb_y * MB_SIZE; in ih264e_compute_me_multi_reflist()
1815 rows_below = (ps_proc->i4_ht_mbs - ps_proc->i4_mb_y) * MB_SIZE; in ih264e_compute_me_multi_reflist()
1816 columns_left = MB_SIZE + ps_proc->i4_mb_x * MB_SIZE; in ih264e_compute_me_multi_reflist()
1817 columns_right = (ps_proc->i4_wd_mbs - ps_proc->i4_mb_x) * MB_SIZE; in ih264e_compute_me_multi_reflist()
1845 i4_max_reflist = (ps_proc->i4_slice_type == PSLICE) ? PRED_L0 : PRED_L1; 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()
1868 (ime_mv_t *)(&ps_proc->ps_skip_mv[i4_reflist].s_mv), in ih264e_compute_me_multi_reflist()
1870 ps_proc->ps_codec->s_cfg.u4_enable_satqd, in ih264e_compute_me_multi_reflist()
1872 (ps_proc->i4_slice_type == BSLICE) ); 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()
1930 ps_proc->apu1_subpel_buffs[3]; 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()
2008 ps_me_ctxt->apu1_subpel_buffs[j] = ps_proc->apu1_subpel_buffs[i]; in ih264e_compute_me_multi_reflist()
2039 ih264e_evaluate_bipred(ps_me_ctxt, ps_proc, in ih264e_compute_me_multi_reflist()
2048 ps_proc->ps_pu->b2_pred_mode = 0x3; 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()
2056 … ps_proc->ps_cur_mb->u4_mb_type = (ps_proc->i4_slice_type == PSLICE) ? P16x16 : B16x16; in ih264e_compute_me_multi_reflist()
2057 ps_proc->ps_pu->b2_pred_mode = i4_reflist ; in ih264e_compute_me_multi_reflist()
2069 if (ps_proc->ps_pu->b2_pred_mode == PRED_BI) in ih264e_compute_me_multi_reflist()
2079 ps_proc->pu1_best_subpel_buf, in ih264e_compute_me_multi_reflist()
2081 ps_proc->u4_bst_spel_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()
2090 ps_proc->pu1_best_subpel_buf, in ih264e_compute_me_multi_reflist()
2092 ps_proc->u4_bst_spel_buf_strd, MB_SIZE, MB_SIZE, 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()
2106 ps_proc->ps_pu->s_me_info[0].i1_ref_idx = (ps_proc->ps_pu->b2_pred_mode != PRED_L1)? -1:0; 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()
2110 ps_proc->u4_num_sub_partitions = 1; in ih264e_compute_me_multi_reflist()
2111 *(ps_proc->pu4_mb_pu_cnt) = 1; in ih264e_compute_me_multi_reflist()
2114 ps_proc->ps_pu->b4_pos_x = 0; in ih264e_compute_me_multi_reflist()
2115 ps_proc->ps_pu->b4_pos_y = 0; in ih264e_compute_me_multi_reflist()
2118 ps_proc->ps_pu->b4_wd = 3; in ih264e_compute_me_multi_reflist()
2119 ps_proc->ps_pu->b4_ht = 3; in ih264e_compute_me_multi_reflist()
2124 ps_proc->ps_cur_mb->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()