Lines Matching refs:ps_ctxt
124 get_ctb_attrs(S32 ctb_start_x, S32 ctb_start_y, S32 pic_wd, S32 pic_ht, me_frm_ctxt_t *ps_ctxt);
151 coarse_me_ctxt_t *ps_ctxt, in ihevce_no_wt_copy() argument
978 me_frm_ctxt_t *ps_ctxt, in hme_try_merge_high_speed() argument
995 wgt_pred_ctxt_t *ps_wt_inp_prms = &ps_ctxt->s_wt_pred; in hme_try_merge_high_speed()
1001 S32 i4_frm_qstep = ps_ctxt->frm_qstep; in hme_try_merge_high_speed()
1207 ps_best_res = &ps_ctxt->as_cu8x8_results[u1_8x8_zscan_id].ps_best_results[0]; in hme_try_merge_high_speed()
1212 ps_best_res = &ps_ctxt->as_cu8x8_results[u1_8x8_zscan_id + 1].ps_best_results[0]; in hme_try_merge_high_speed()
1217 ps_best_res = &ps_ctxt->as_cu8x8_results[u1_8x8_zscan_id + 2].ps_best_results[0]; in hme_try_merge_high_speed()
1222 ps_best_res = &ps_ctxt->as_cu8x8_results[u1_8x8_zscan_id + 3].ps_best_results[0]; in hme_try_merge_high_speed()
1309 ps_results_merge->u1_num_active_ref = (ps_ctxt->s_frm_prms.bidir_enabled) ? 2 : 1; in hme_try_merge_high_speed()
1337 ps_ctxt->au4_4x4_src_sigmaX + i4_sigma_array_offset, in hme_try_merge_high_speed()
1338 ps_ctxt->au4_4x4_src_sigmaXSquared + i4_sigma_array_offset, in hme_try_merge_high_speed()
1360 if((2 == ps_merge_prms->i4_num_ref) || (!ps_ctxt->s_frm_prms.bidir_enabled)) in hme_try_merge_high_speed()
1364 else if(ps_ctxt->s_frm_prms.u1_num_active_ref_l0 == 0) in hme_try_merge_high_speed()
1368 else if(ps_ctxt->s_frm_prms.u1_num_active_ref_l1 == 0) in hme_try_merge_high_speed()
1406 hme_reset_wkg_mem(&ps_ctxt->s_buf_mgr); in hme_try_merge_high_speed()
1413 ps_ctxt, in hme_try_merge_high_speed()
1420 &ps_ctxt->s_wt_pred, in hme_try_merge_high_speed()
1431 ps_ctxt, in hme_try_merge_high_speed()
1442 (ps_ctxt->s_frm_prms.i4_temporal_layer_id > TEMPORAL_LAYER_DISABLE))) in hme_try_merge_high_speed()
1448 ps_cu_results, ps_cur_ipe_ctb, ps_ctxt->frm_qstep); in hme_try_merge_high_speed()
5890 me_frm_ctxt_t *ps_ctxt = ps_thrd_ctxt->aps_me_frm_prms[i4_me_frm_id]; in hme_refine() local
5923 fullpel_refine_ctxt_t *ps_fullpel_refine_ctxt = ps_ctxt->ps_fullpel_refine_ctxt; in hme_refine()
5940 S32 i4_num_act_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
5941 S32 i4_num_act_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
6045 ASSERT(ps_refine_prms->i4_layer_id < ps_ctxt->num_layers - 1); in hme_refine()
6051 ps_curr_layer = ps_ctxt->ps_curr_descr->aps_layers[ps_refine_prms->i4_layer_id]; in hme_refine()
6054 … ps_thrd_ctxt, ps_ctxt, ps_refine_prms->i4_layer_id, ps_multi_thrd_ctxt->i4_num_me_frm_pllel); in hme_refine()
6072 aps_mv_grid[0] = &ps_ctxt->as_mv_grid[0]; in hme_refine()
6073 aps_mv_grid[1] = &ps_ctxt->as_mv_grid[1]; in hme_refine()
6096 unit_size = 1 << ps_ctxt->log_ctb_size; in hme_refine()
6109 (ps_ctxt->s_frm_prms.bidir_enabled && (i4_num_act_ref_l0 > 0) && (i4_num_act_ref_l1 > 0)) + in hme_refine()
6130 MIN((ps_ctxt->s_frm_prms.bidir_enabled) ? ps_curr_layer->ps_layer_mvbank->i4_num_mvs_per_ref in hme_refine()
6150 ps_ctxt, in hme_refine()
6171 ps_ctxt, in hme_refine()
6186 ps_ctxt->s_search_results_64x64.ps_cu_results = &ps_ctxt->s_cu64x64_results; in hme_refine()
6190 ps_ctxt->as_search_results_32x32[i].ps_cu_results = &ps_ctxt->as_cu32x32_results[i]; in hme_refine()
6195 ps_ctxt->as_search_results_16x16[i].ps_cu_results = &ps_ctxt->as_cu16x16_results[i]; in hme_refine()
6203 s_subpel_prms.ps_search_results_16x16 = &ps_ctxt->as_search_results_16x16[0]; in hme_refine()
6204 s_subpel_prms.ps_search_results_32x32 = &ps_ctxt->as_search_results_32x32[0]; in hme_refine()
6205 s_subpel_prms.ps_search_results_64x64 = &ps_ctxt->s_search_results_64x64; in hme_refine()
6232 s_subpel_prms.pi2_inp_bck = ps_ctxt->pi2_inp_bck; in hme_refine()
6244 s_subpel_prms.u1_num_ref = ps_ctxt->num_ref_future + ps_ctxt->num_ref_past; in hme_refine()
6246 s_subpel_prms.i4_num_act_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
6247 s_subpel_prms.i4_num_act_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
6257 ps_inter_ctb_prms->pps_rec_list_l0 = ps_ctxt->ps_hme_ref_map->pps_rec_list_l0; in hme_refine()
6258 ps_inter_ctb_prms->pps_rec_list_l1 = ps_ctxt->ps_hme_ref_map->pps_rec_list_l1; in hme_refine()
6259 ps_inter_ctb_prms->wpred_log_wdc = ps_ctxt->s_wt_pred.wpred_log_wdc; in hme_refine()
6267 ps_inter_ctb_prms->u1_num_active_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
6268 ps_inter_ctb_prms->u1_num_active_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
6271 ps_inter_ctb_prms->i4_qstep_ls8 = ps_ctxt->ps_hme_frm_prms->qstep_ls8; in hme_refine()
6272 ps_inter_ctb_prms->pi4_inv_wt = ps_ctxt->s_wt_pred.a_inv_wpred_wt; in hme_refine()
6273 ps_inter_ctb_prms->pi1_past_list = ps_ctxt->ai1_past_list; in hme_refine()
6274 ps_inter_ctb_prms->pi1_future_list = ps_ctxt->ai1_future_list; in hme_refine()
6282 ps_search_candts[i].ps_search_node = &ps_ctxt->s_init_search_node[i]; in hme_refine()
6283 ps_search_candts[i].ps_search_node->ps_mv = &ps_ctxt->as_search_cand_mv[i]; in hme_refine()
6288 ps_ctxt->s_frm_prms.u1_num_active_ref_l0 + ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
6299 ps_ctxt->s_frm_prms.bidir_enabled, in hme_refine()
6303 if(!ps_ctxt->s_frm_prms.bidir_enabled && (i4_num_act_ref_l0 > 1)) in hme_refine()
6305 ps_search_candts[ai4_id_Z[0]].ps_search_node->i1_ref_idx = ps_ctxt->ai1_past_list[0]; in hme_refine()
6306 ps_search_candts[ai4_id_Z[1]].ps_search_node->i1_ref_idx = ps_ctxt->ai1_past_list[1]; in hme_refine()
6308 else if(!ps_ctxt->s_frm_prms.bidir_enabled && (i4_num_act_ref_l0 == 1)) in hme_refine()
6310 ps_search_candts[ai4_id_Z[0]].ps_search_node->i1_ref_idx = ps_ctxt->ai1_past_list[0]; in hme_refine()
6337 ps_search_results = &ps_ctxt->as_search_results_16x16[i]; in hme_refine()
6351 &ps_ctxt->au1_is_past[0]); in hme_refine()
6368 &ps_ctxt->apu1_ref_bits_tlu_lc[0], in hme_refine()
6369 &ps_ctxt->ai2_ref_scf[0]); in hme_refine()
6377 ps_search_results = &ps_ctxt->as_search_results_32x32[i]; in hme_refine()
6392 &ps_ctxt->au1_is_past[0]); in hme_refine()
6409 &ps_ctxt->apu1_ref_bits_tlu_lc[0], in hme_refine()
6410 &ps_ctxt->ai2_ref_scf[0]); in hme_refine()
6417 ps_search_results = &ps_ctxt->s_search_results_64x64; in hme_refine()
6427 &ps_ctxt->au1_is_past[0]); in hme_refine()
6444 &ps_ctxt->apu1_ref_bits_tlu_lc[0], in hme_refine()
6445 &ps_ctxt->ai2_ref_scf[0]); in hme_refine()
6453 ps_ctb_cluster_info = ps_ctxt->ps_ctb_cluster_info; in hme_refine()
6455 ps_ctb_cluster_info->ps_16x16_blk = ps_ctxt->ps_blk_16x16; in hme_refine()
6456 ps_ctb_cluster_info->ps_32x32_blk = ps_ctxt->ps_blk_32x32; in hme_refine()
6457 ps_ctb_cluster_info->ps_64x64_blk = ps_ctxt->ps_blk_64x64; in hme_refine()
6460 ps_ctb_cluster_info->i4_frame_qstep = ps_ctxt->frm_qstep; in hme_refine()
6470 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine()
6474 ps_ctxt->as_l0_dyn_range_prms[i4_idx_dvsr_p].i4_num_act_ref_in_l0 = in hme_refine()
6475 ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
6477 for(ref_ctr = 0; ref_ctr < ps_ctxt->s_frm_prms.u1_num_active_ref_l0; ref_ctr++) in hme_refine()
6480 &ps_ctxt->as_l0_dyn_range_prms[i4_idx_dvsr_p].as_dyn_range_prms[ref_ctr], in hme_refine()
6481 ps_ctxt->ai4_ref_idx_to_poc_lc[ref_ctr]); in hme_refine()
6493 num_init_candts = 7 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6495 num_init_candts = 14 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6497 num_init_candts = 21 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6504 num_init_candts = 5 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6506 num_init_candts = 12 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6508 num_init_candts = 19 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6529 num_init_candts = 7 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6531 num_init_candts = 13 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6533 num_init_candts = 18 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6540 num_init_candts = 5 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6542 num_init_candts = 11 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6544 num_init_candts = 16 * (!ps_ctxt->s_frm_prms.bidir_enabled + 1); in hme_refine()
6629 ps_ctxt, ps_curr_layer, as_mv_limit, &i2_prev_enc_frm_max_mv_y, num_act_ref_pics); in hme_refine()
6631 s_srch_cand_init_data.i4_num_act_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
6632 s_srch_cand_init_data.i4_num_act_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
6638 s_srch_cand_init_data.pi4_ref_id_lc_to_l0_map = ps_ctxt->a_ref_idx_lc_to_l0; in hme_refine()
6639 s_srch_cand_init_data.pi4_ref_id_lc_to_l1_map = ps_ctxt->a_ref_idx_lc_to_l1; in hme_refine()
6654 pv_dep_mngr_encloop_dep_me = ps_ctxt->pv_dep_mngr_encloop_dep_me; in hme_refine()
6687 num_sync_units_in_row = (i4_pic_wd + ((1 << ps_ctxt->log_ctb_size) - 1)) >> in hme_refine()
6688 ps_ctxt->log_ctb_size; in hme_refine()
6698 (ps_col_tile_params->i4_curr_tile_width + ((1 << ps_ctxt->log_ctb_size) - 1)) >> in hme_refine()
6699 ps_ctxt->log_ctb_size; in hme_refine()
6740 ps_ctxt->ps_ctb_analyse_curr_row = in hme_refine()
6741 ps_ctxt->ps_ctb_analyse_base + i4_ctb_y * ps_frm_ctb_prms->i4_num_ctbs_horz; in hme_refine()
6744 ps_ctxt->ps_cu_tree_curr_row = in hme_refine()
6745 ps_ctxt->ps_cu_tree_base + in hme_refine()
6748 ps_ctxt->ps_me_ctb_data_curr_row = in hme_refine()
6749 ps_ctxt->ps_me_ctb_data_base + i4_ctb_y * ps_frm_ctb_prms->i4_num_ctbs_horz; in hme_refine()
6760 for(i4_ref_id = 0; i4_ref_id < (ps_ctxt->s_frm_prms.u1_num_active_ref_l0 + in hme_refine()
6761 ps_ctxt->s_frm_prms.u1_num_active_ref_l1); in hme_refine()
6764 GETRANGE(i4_bits_req, ps_ctxt->s_wt_pred.a_inv_wpred_wt[i4_ref_id]); in hme_refine()
6768 ps_ctxt->s_wt_pred.ai4_shift_val[i4_ref_id] = (i4_bits_req - 12); in hme_refine()
6772 ps_ctxt->s_wt_pred.ai4_shift_val[i4_ref_id] = 0; in hme_refine()
6776 s_common_frm_prms.pi4_inv_wt_shift_val = ps_ctxt->s_wt_pred.ai4_shift_val; in hme_refine()
6785 &ps_ctxt->ps_ctb_analyse_curr_row[i4_ctb_x].s_ctb_noise_params; in hme_refine()
6790 ps_ctxt->s_mc_ctxt.i4_ctb_frm_pos_y = i4_ctb_y << 6; in hme_refine()
6791 ps_ctxt->s_mc_ctxt.i4_ctb_frm_pos_x = i4_ctb_x << 6; in hme_refine()
6793 ps_cur_ipe_ctb = ps_ctxt->ps_ipe_l0_ctb_frm_base + i4_ctb_x + in hme_refine()
6797 get_ctb_attrs(i4_ctb_x << 6, i4_ctb_y << 6, i4_pic_wd, i4_pic_ht, ps_ctxt); in hme_refine()
6810 ps_ctxt->as_cu8x8_results[i].ps_best_results = in hme_refine()
6811 ps_ctxt->ps_me_ctb_data_curr_row[i4_ctb_x] in hme_refine()
6814 ps_ctxt->as_cu8x8_results[i].u1_num_best_results = 0; in hme_refine()
6819 ps_ctxt->as_cu16x16_results[i].ps_best_results = in hme_refine()
6820 ps_ctxt->ps_me_ctb_data_curr_row[i4_ctb_x].as_block_data[i].as_best_results; in hme_refine()
6821 ps_ctxt->as_cu16x16_results[i].u1_num_best_results = 0; in hme_refine()
6826 ps_ctxt->as_cu32x32_results[i].ps_best_results = in hme_refine()
6827 ps_ctxt->ps_me_ctb_data_curr_row[i4_ctb_x] in hme_refine()
6830 ps_ctxt->as_cu32x32_results[i].u1_num_best_results = 0; in hme_refine()
6833 ps_ctxt->s_cu64x64_results.ps_best_results = in hme_refine()
6834 ps_ctxt->ps_me_ctb_data_curr_row[i4_ctb_x].s_64x64_block_data.as_best_results; in hme_refine()
6835 ps_ctxt->s_cu64x64_results.u1_num_best_results = 0; in hme_refine()
6843 ps_ctxt->ps_cu_tree_curr_row + (i4_ctb_x * MAX_NUM_NODES_CU_TREE); in hme_refine()
6852 (ps_ctxt->ps_cu_tree_curr_row + (i4_ctb_x * MAX_NUM_NODES_CU_TREE)), in hme_refine()
6853 (ps_ctxt->ps_cu_tree_curr_row + (i4_ctb_x * MAX_NUM_NODES_CU_TREE)), in hme_refine()
6870 ps_ctxt->ps_ipe_l0_ctb_frm_base + i4_ctb_x + i4_ctb_y * num_sync_units_in_row; in hme_refine()
6872 hme_recompute_lambda_from_min_8x8_act_in_ctb(ps_ctxt, ps_cur_ipe_ctb); in hme_refine()
6878 ps_search_results = &ps_ctxt->as_search_results_32x32[i]; in hme_refine()
6885 ps_search_results = &ps_ctxt->s_search_results_64x64; in hme_refine()
6910 &ps_ctxt->s_wt_pred, in hme_refine()
6915 ps_ctxt->num_ref_future + ps_ctxt->num_ref_past, in hme_refine()
6916 ps_ctxt->i4_wt_pred_enable_flag); in hme_refine()
7033 ps_ctxt, in hme_refine()
7039 &ps_ctxt->s_wt_pred, in hme_refine()
7087 if(ps_ctxt->s_frm_prms.bidir_enabled && in hme_refine()
7088 (ps_ctxt->s_frm_prms.i4_temporal_layer_id <= in hme_refine()
7110 ps_search_results = &ps_ctxt->as_search_results_32x32[i]; in hme_refine()
7129 ps_search_results = &ps_ctxt->s_search_results_64x64; in hme_refine()
7147 ps_ctxt->au4_4x4_src_sigmaX, in hme_refine()
7148 ps_ctxt->au4_4x4_src_sigmaXSquared, in hme_refine()
7181 ps_ctxt->au4_4x4_src_sigmaX + i4_sigma_arr_offset, in hme_refine()
7182 ps_ctxt->au4_4x4_src_sigmaXSquared + i4_sigma_arr_offset, in hme_refine()
7235 (ps_ctxt->au4_4x4_src_sigmaX + i4_sigma_arr_offset), in hme_refine()
7236 (ps_ctxt->au4_4x4_src_sigmaXSquared + i4_sigma_arr_offset), in hme_refine()
7319 ps_search_results = &ps_ctxt->as_search_results_16x16[blk_id_in_full_ctb]; in hme_refine()
7371 ps_ctxt->ps_hme_frm_prms->bidir_enabled, in hme_refine()
7372 ps_ctxt->u1_is_curFrame_a_refFrame, in hme_refine()
7398 for(u1_ctr = 0; u1_ctr < (ps_ctxt->s_frm_prms.u1_num_active_ref_l0 + in hme_refine()
7399 ps_ctxt->s_frm_prms.u1_num_active_ref_l1); in hme_refine()
7407 (ps_curr_layer->i2_max_mv_x + ((1 << ps_ctxt->log_ctb_size) - 1)) >> in hme_refine()
7408 ps_ctxt->log_ctb_size; in hme_refine()
7411 (as_mv_limit[u1_ctr].i2_max_y + ((1 << ps_ctxt->log_ctb_size) - 1)) >> in hme_refine()
7412 ps_ctxt->log_ctb_size; in hme_refine()
7428 ps_ctxt->thrd_id, in hme_refine()
7445 if((i4_num_pred_dir == 2) || (!ps_ctxt->s_frm_prms.bidir_enabled) || in hme_refine()
7446 (ps_ctxt->s_frm_prms.u1_num_active_ref_l1 == 0)) in hme_refine()
7450 else if(ps_ctxt->s_frm_prms.u1_num_active_ref_l0 == 0) in hme_refine()
7455 u1_default_ref_id = (u1_pred_dir == 0) ? ps_ctxt->ai1_past_list[0] in hme_refine()
7456 : ps_ctxt->ai1_future_list[0]; in hme_refine()
7476 ps_ctxt->s_frm_prms.u1_num_active_ref_l0); in hme_refine()
7484 ps_ctxt->as_search_results_32x32[blk_id_in_full_ctb >> 2] in hme_refine()
7491 ps_ctxt->s_search_results_64x64.as_pred_ctxt[u1_pred_dir].proj_used = 1; in hme_refine()
7523 s_srch_cand_init_data.i1_alt_default_ref_id = ps_ctxt->ai1_past_list[1]; in hme_refine()
7537 i1_check_for_mult_refs = u1_pred_dir ? (ps_ctxt->num_ref_future > 1) in hme_refine()
7538 : (ps_ctxt->num_ref_past > 1); in hme_refine()
7551 ((!ps_ctxt->s_frm_prms.bidir_enabled) && (i4_num_act_ref_l0 > 1)) in hme_refine()
7556 ((!ps_ctxt->s_frm_prms.bidir_enabled) && (i4_num_act_ref_l0 > 1)) ? 2 : 1; in hme_refine()
7575 (u1_pred_dir == 0) ? ps_ctxt->ai1_past_list : ps_ctxt->ai1_future_list; in hme_refine()
7671 ps_ctxt->s_frm_prms.bidir_enabled, in hme_refine()
7695 ps_ctxt->au4_4x4_src_sigmaX + i4_sigma_array_offset, in hme_refine()
7696 ps_ctxt->au4_4x4_src_sigmaXSquared + i4_sigma_array_offset, in hme_refine()
7723 if(ps_ctxt->i4_pic_type != IV_P_FRAME) in hme_refine()
7725 if(ps_ctxt->i4_temporal_layer == 1) in hme_refine()
7730 &ps_ctxt->s_wt_pred, in hme_refine()
7740 &ps_ctxt->s_wt_pred, in hme_refine()
7751 &ps_ctxt->s_wt_pred, in hme_refine()
7764 &ps_ctxt->s_wt_pred, in hme_refine()
7777 hme_reset_wkg_mem(&ps_ctxt->s_buf_mgr); in hme_refine()
7780 &ps_ctxt->s_buf_mgr, in hme_refine()
7798 &ps_ctxt->s_wt_pred, in hme_refine()
7800 ps_ctxt->ps_func_selector, in hme_refine()
7829 hme_reset_wkg_mem(&ps_ctxt->s_buf_mgr); in hme_refine()
7833 ps_ctxt, in hme_refine()
7840 &ps_ctxt->s_wt_pred, in hme_refine()
7852 ps_ctxt, in hme_refine()
7860 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine()
7881 &ps_ctxt->as_l0_dyn_range_prms[i4_idx_dvsr_p] in hme_refine()
7888 ps_ctxt->s_frm_prms.u1_num_active_ref_l0); in hme_refine()
7904 (ps_ctxt->s_frm_prms.i4_temporal_layer_id > TEMPORAL_LAYER_DISABLE))) in hme_refine()
7910 ps_cu_results, ps_cur_ipe_ctb, ps_ctxt->frm_qstep); in hme_refine()
7916 (ps_ctxt->s_frm_prms.i4_temporal_layer_id > TEMPORAL_LAYER_DISABLE)) in hme_refine()
8001 ps_cu_results = &ps_ctxt->as_cu8x8_results[blk_id_in_full_ctb << 2]; in hme_refine()
8014 ps_ctxt, in hme_refine()
8038 ps_ctxt, in hme_refine()
8049 (ps_ctxt->s_frm_prms.i4_temporal_layer_id > in hme_refine()
8057 ps_cu_results, ps_cur_ipe_ctb, ps_ctxt->frm_qstep); in hme_refine()
8103 ps_ctxt->ps_cu_tree_curr_row + (i4_ctb_x * MAX_NUM_NODES_CU_TREE); in hme_refine()
8104 search_results_t *ps_results = &ps_ctxt->as_search_results_16x16[i]; in hme_refine()
8222 ps_ctxt->as_search_results_16x16, in hme_refine()
8223 ps_ctxt->as_cu16x16_results, in hme_refine()
8224 ps_ctxt->as_cu8x8_results, in hme_refine()
8225 ps_ctxt->ps_ctb_cluster_info, in hme_refine()
8226 ps_ctxt->ai1_future_list, in hme_refine()
8227 ps_ctxt->ai1_past_list, in hme_refine()
8228 ps_ctxt->s_frm_prms.bidir_enabled, in hme_refine()
8320 ps_ctxt, in hme_refine()
8344 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8347 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8424 ps_ctxt, in hme_refine()
8448 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8451 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8528 ps_ctxt, in hme_refine()
8552 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8555 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8633 ps_ctxt, in hme_refine()
8658 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8661 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8745 ps_ctxt, in hme_refine()
8755 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8758 ps_ctxt->ps_cu_tree_curr_row + (i4_ctb_x * MAX_NUM_NODES_CU_TREE)); in hme_refine()
8764 ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)] in hme_refine()
8772 pf_ext_update_fxn((void *)ps_thrd_ctxt, (void *)ps_ctxt, i4_ctb_x, i4_ctb_y); in hme_refine()
8785 &ps_ctxt->ps_cu_tree_curr_row[(i4_ctb_x * MAX_NUM_NODES_CU_TREE)])); in hme_refine()
8817 coarse_me_ctxt_t *ps_ctxt, in hme_refine_no_encode() argument
8826 ps_ctxt->s_init_prms.s_me_coding_tools.e_me_quality_presets; in hme_refine_no_encode()
8937 ASSERT(ps_refine_prms->i4_layer_id < ps_ctxt->num_layers - 1); in hme_refine_no_encode()
8943 ps_curr_layer = ps_ctxt->ps_curr_descr->aps_layers[ps_refine_prms->i4_layer_id]; in hme_refine_no_encode()
8945 ps_coarse_layer = ps_ctxt->ps_curr_descr->aps_layers[ps_refine_prms->i4_layer_id + 1]; in hme_refine_no_encode()
8951 fp_get_wt_inp = ((ihevce_me_optimised_function_list_t *)ps_ctxt->pv_me_optimised_function_list) in hme_refine_no_encode()
8962 if(0 == ps_ctxt->u1_encode[ps_refine_prms->i4_layer_id + 1]) in hme_refine_no_encode()
9054 s_mv_update_prms.i4_num_active_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine_no_encode()
9055 s_mv_update_prms.i4_num_active_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine_no_encode()
9064 ps_search_candts[i].ps_search_node = &ps_ctxt->s_init_search_node[i]; in hme_refine_no_encode()
9091 ps_search_results = &ps_ctxt->s_search_results_8x8; in hme_refine_no_encode()
9100 &ps_ctxt->au1_is_past[0]); in hme_refine_no_encode()
9114 &ps_ctxt->apu1_ref_bits_tlu_lc[0], in hme_refine_no_encode()
9115 &ps_ctxt->ai2_ref_scf[0]); in hme_refine_no_encode()
9124 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine_no_encode()
9131 &ps_ctxt->s_coarse_dyn_range_prms in hme_refine_no_encode()
9133 ps_ctxt->ai4_ref_idx_to_poc_lc[ref_ctr]); in hme_refine_no_encode()
9368 if(1 == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine_no_encode()
9373 cur_poc = ps_ctxt->i4_curr_poc; in hme_refine_no_encode()
9377 ps_ctxt->s_coarse_dyn_range_prms.i2_dyn_max_y_per_poc[ps_refine_prms->i4_layer_id], in hme_refine_no_encode()
9378 (ABS(ps_ctxt->s_coarse_dyn_range_prms in hme_refine_no_encode()
9383 ref_poc = ps_ctxt->ai4_ref_idx_to_poc_lc[ref_ctr]; in hme_refine_no_encode()
9493 if(1 == ps_ctxt->s_frm_prms.is_i_pic) in hme_refine_no_encode()
9535 ps_ctxt->ps_ed_blk + (i4_ctb_row_ctr * i4_num_ctbs_in_row * in hme_refine_no_encode()
9537 ps_ed_ctb_l1_row = ps_ctxt->ps_ed_ctb_l1 + (i4_ctb_row_ctr * i4_num_ctbs_in_row); in hme_refine_no_encode()
9563 ps_ctxt->thrd_id); in hme_refine_no_encode()
9607 &ps_ctxt->s_wt_pred, in hme_refine_no_encode()
9612 ps_ctxt->num_ref_future + ps_ctxt->num_ref_past, in hme_refine_no_encode()
9613 ps_ctxt->i4_wt_pred_enable_flag); in hme_refine_no_encode()
9620 ps_search_results = &ps_ctxt->s_search_results_8x8; in hme_refine_no_encode()
9764 ps_ctxt->s_frm_prms.u1_num_active_ref_l0, in hme_refine_no_encode()
9765 ps_ctxt->s_frm_prms.u1_num_active_ref_l1); in hme_refine_no_encode()
9788 ps_ctxt->s_frm_prms.u1_num_active_ref_l1) in hme_refine_no_encode()
9790 ps_ctxt->s_frm_prms.u1_num_active_ref_l0)); in hme_refine_no_encode()
9818 ps_ctxt->s_frm_prms.u1_num_active_ref_l0) in hme_refine_no_encode()
10038 S32 num_ref_valid = ps_ctxt->num_ref_future + ps_ctxt->num_ref_past; in hme_refine_no_encode()
10127 &ps_ctxt->s_wt_pred, in hme_refine_no_encode()
10133 ps_ctxt->pv_me_optimised_function_list in hme_refine_no_encode()
10373 &ps_ctxt->s_wt_pred, in hme_refine_no_encode()
10379 ps_ctxt->pv_me_optimised_function_list); in hme_refine_no_encode()
10411 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine_no_encode()
10428 &ps_ctxt->s_coarse_dyn_range_prms in hme_refine_no_encode()
10456 wt_pred_val = ps_ctxt->s_wt_pred.a_wpred_wt[i4_ref_id]; in hme_refine_no_encode()
10457 log_wt_pred_val = ps_ctxt->s_wt_pred.wpred_log_wdc; in hme_refine_no_encode()
10480 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine_no_encode()
10485 ABS(ps_ctxt->i4_curr_poc - in hme_refine_no_encode()
10496 if(ps_ctxt->s_frm_prms.is_i_pic == ps_ctxt->s_frm_prms.bidir_enabled) in hme_refine_no_encode()
10522 wt = ps_ctxt->s_wt_pred.a_wpred_wt[ref_id_of_nearest_poc]; in hme_refine_no_encode()
10523 log_wt = ps_ctxt->s_wt_pred.wpred_log_wdc; in hme_refine_no_encode()
10542 ps_ctxt->i4_num_blks++; in hme_refine_no_encode()
10544 (8 /*blk width*/ * 8 /*blk height*/ * (1 + ps_ctxt->num_b_frms))) in hme_refine_no_encode()
10546 ps_ctxt->i4_num_blks_high_sad++; in hme_refine_no_encode()
10555 (!ps_ctxt->s_frm_prms in hme_refine_no_encode()
10577 (ps_ctxt->s_frm_prms.i4_temporal_layer_id > TEMPORAL_LAYER_DISABLE)) in hme_refine_no_encode()
10636 ps_ctxt->i4_L1_hme_best_cost += min_cost; in hme_refine_no_encode()
10637 ps_ctxt->i4_L1_hme_sad += min_sad; in hme_refine_no_encode()
10642 ps_ctxt->i4_L1_hme_best_cost += in hme_refine_no_encode()
10644 ps_ctxt->i4_L1_hme_sad += in hme_refine_no_encode()