Lines Matching refs:ps_ctxt
141 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_store_cu_final() argument
154 i4_qscale = ((ps_ctxt->ps_rc_quant_ctxt->pi4_qp_to_qscale in ihevce_store_cu_final()
155 [ps_enc_out_ctxt->i1_cu_qp + ps_ctxt->ps_rc_quant_ctxt->i1_qp_offset])); in ihevce_store_cu_final()
157 ps_ctxt->ps_rc_quant_ctxt in ihevce_store_cu_final()
158 … ->pi4_qp_to_qscale[ps_ctxt->i4_frame_mod_qp + ps_ctxt->ps_rc_quant_ctxt->i1_qp_offset])); in ihevce_store_cu_final()
167 i4_br_id = ps_ctxt->i4_bitrate_instance_num; in ihevce_store_cu_final()
168 i4_enc_frm_id = ps_ctxt->i4_enc_frm_id; in ihevce_store_cu_final()
172 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->i8_frame_open_loop_ssd += in ihevce_store_cu_final()
176 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_open_loop_intra_sad += in ihevce_store_cu_final()
179 (((float)(ps_ctxt->i4_sad_lamda) / (1 << LAMBDA_Q_SHIFT)) * in ihevce_store_cu_final()
184 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_intra_sad_acc += in ihevce_store_cu_final()
186 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->i8_frame_intra_cost_acc += in ihevce_store_cu_final()
191 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_inter_sad_acc += in ihevce_store_cu_final()
193 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->i8_frame_inter_cost_acc += in ihevce_store_cu_final()
197 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_sad_acc += in ihevce_store_cu_final()
200 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->i8_frame_cost_acc += in ihevce_store_cu_final()
203 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_rdopt_bits += in ihevce_store_cu_final()
207 ps_ctxt->u4_total_cu_bits += (u4_tex_bits + u4_hdr_bits); in ihevce_store_cu_final()
208 ps_ctxt->u4_total_cu_bits_mul_qs += in ihevce_store_cu_final()
211 ps_ctxt->u4_total_cu_hdr_bits += u4_hdr_bits; in ihevce_store_cu_final()
212 ps_ctxt->u4_cu_tot_bits_into_qscale += in ihevce_store_cu_final()
215 ps_ctxt->u4_cu_tot_bits += (u4_tex_bits + u4_hdr_bits); in ihevce_store_cu_final()
217 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id]->u4_frame_rdopt_header_bits += in ihevce_store_cu_final()
220 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id] in ihevce_store_cu_final()
224 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id] in ihevce_store_cu_final()
228 ps_ctxt->aaps_enc_loop_rc_params[i4_enc_frm_id][i4_br_id] in ihevce_store_cu_final()
244 ps_ctxt->i4_last_cu_qp_from_prev_ctb = ps_enc_out_ctxt->i1_cu_qp; in ihevce_store_cu_final()
248 ps_ctxt->i4_last_cu_qp_from_prev_ctb = ps_ctxt->i4_pred_qp; in ihevce_store_cu_final()
289 if(ps_ctxt->i4_deblk_pad_hpel_cur_pic) in ihevce_store_cu_final()
299 ps_curr_nbr_4x4 = &ps_ctxt->as_ctb_nbr_arr[0]; in ihevce_store_cu_final()
306 ps_left_nbr_4x4 = &ps_ctxt->as_left_col_nbr[0]; in ihevce_store_cu_final()
321 ps_top_nbr_4x4 = ps_ctxt->ps_top_row_nbr; in ihevce_store_cu_final()
338 &ps_ctxt->s_deblk_bs_prms); in ihevce_store_cu_final()
357 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_store_cu_results() argument
367 UWORD8 u1_is_422 = (ps_ctxt->u1_chroma_array_type == 2); in ihevce_store_cu_results()
370 ps_enc_tmp_out_ctxt = ps_ctxt->ps_enc_out_ctxt; in ihevce_store_cu_results()
375 pu1_recon = (UWORD8 *)ps_ctxt->pv_cu_luma_recon; in ihevce_store_cu_results()
383 ps_ctxt->s_cmn_opt_func.pf_copy_2d( in ihevce_store_cu_results()
392 pu1_recon = (UWORD8 *)ps_ctxt->pv_cu_chrma_recon; in ihevce_store_cu_results()
402 ps_ctxt->s_cmn_opt_func.pf_copy_2d( in ihevce_store_cu_results()
411 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_store_cu_results()
414 pu1_recon = (UWORD8 *)ps_ctxt->pv_cu_luma_recon; in ihevce_store_cu_results()
422 ps_ctxt->s_cmn_opt_func.pf_copy_2d( in ihevce_store_cu_results()
431 pu1_recon = (UWORD8 *)ps_ctxt->pv_cu_chrma_recon; in ihevce_store_cu_results()
440 ps_ctxt->s_cmn_opt_func.pf_copy_2d( in ihevce_store_cu_results()
462 ps_ctxt->ai4_qp_qg[((i4_cu_pox_y + i4_y) * 8) + (i4_cu_pos_x + i4_x)] = in ihevce_store_cu_results()
463 ps_ctxt->i4_cu_qp; in ihevce_store_cu_results()
467 ps_ctxt->ai4_qp_qg[((i4_cu_pox_y + i4_y) * 8) + (i4_cu_pos_x + i4_x)] = in ihevce_store_cu_results()
468 ps_ctxt->i4_pred_qp; in ihevce_store_cu_results()
478 ps_curr_nbr_4x4 = &ps_ctxt->as_ctb_nbr_arr[0]; in ihevce_store_cu_results()
483 ps_nbr_4x4 = ps_ctxt->ps_cu_recur_nbr; in ihevce_store_cu_results()
497 ps_nbr_4x4->b8_qp = ps_ctxt->i4_cu_qp; in ihevce_store_cu_results()
500 ps_nbr_4x4 = ps_ctxt->ps_cu_recur_nbr; in ihevce_store_cu_results()
531 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_populate_cu_struct() argument
554 WORD32 quality_preset = ps_ctxt->i4_quality_preset; in ihevce_populate_cu_struct()
555 WORD32 frm_qp = ps_ctxt->i4_frame_qp; in ihevce_populate_cu_struct()
557 WORD32 frm_qstep = ps_ctxt->i4_frame_qstep; in ihevce_populate_cu_struct()
1568 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_compute_rdo() argument
1605 ((ihevce_tile_params_t *)ps_ctxt->pv_tile_params_base + ps_ctxt->i4_tile_col_idx); in ihevce_compute_rdo()
1678 if(ISLICE != ps_ctxt->i1_slice_type) in ihevce_compute_rdo()
1685 ps_ctxt, in ihevce_compute_rdo()
1699 ps_ctxt, in ihevce_compute_rdo()
1723 ps_ctxt, in ihevce_compute_rdo()
1747 ps_ctxt, in ihevce_compute_rdo()
1777 if(!ps_ctxt->i1_cu_qp_delta_enable) in ihevce_compute_rdo()
1779 ps_cu_analyse->i1_cu_qp = ps_ctxt->i4_frame_qp; in ihevce_compute_rdo()
1782 ps_ctxt->i4_cu_qp = ps_cu_analyse->i1_cu_qp; in ihevce_compute_rdo()
1795 if(ps_ctxt->u1_disable_intra_eval) in ihevce_compute_rdo()
1811 if((ps_ctxt->i4_quality_preset == IHEVCE_QUALITY_P6) && (ps_cu_analyse->u1_cu_size == 32) && in ihevce_compute_rdo()
1812 (ps_ctxt->i1_slice_type != ISLICE)) in ihevce_compute_rdo()
1839 ps_ctxt->i1_slice_type, in ihevce_compute_rdo()
1840 ps_ctxt->i4_quality_preset); in ihevce_compute_rdo()
1847 if(ps_ctxt->u1_use_top_at_ctb_boundary) in ihevce_compute_rdo()
1856 ps_ctxt->pv_dep_mngr_enc_loop_cu_top_right, in ihevce_compute_rdo()
1860 ps_ctxt->i4_tile_col_idx, /* Col Tile No. */ in ihevce_compute_rdo()
1861 ps_ctxt->thrd_id); in ihevce_compute_rdo()
1873 if(!ps_ctxt->u1_use_top_at_ctb_boundary) in ihevce_compute_rdo()
1882 ps_ctxt->pv_dep_mngr_enc_loop_cu_top_right, in ihevce_compute_rdo()
1886 ps_ctxt->i4_tile_col_idx, /* Col Tile No. */ in ihevce_compute_rdo()
1887 ps_ctxt->thrd_id); in ihevce_compute_rdo()
1892 &ps_ctxt->s_rdopt_entropy_ctxt, in ihevce_compute_rdo()
1893 ps_ctxt->pu1_top_rt_cabac_state, in ihevce_compute_rdo()
1901 if((0 == ps_cu_analyse->b3_cu_pos_y) && (IHEVCE_QUALITY_P6 != ps_ctxt->i4_quality_preset)) in ihevce_compute_rdo()
1907 if(!ps_ctxt->u1_use_top_at_ctb_boundary) in ihevce_compute_rdo()
1916 ps_ctxt->pv_dep_mngr_enc_loop_cu_top_right, in ihevce_compute_rdo()
1920 ps_ctxt->i4_tile_col_idx, /* Col Tile No. */ in ihevce_compute_rdo()
1921 ps_ctxt->thrd_id); in ihevce_compute_rdo()
1926 &ps_ctxt->s_rdopt_entropy_ctxt, in ihevce_compute_rdo()
1927 ps_ctxt->pu1_top_rt_cabac_state, in ihevce_compute_rdo()
1932 … else if((0 == ps_cu_analyse->b3_cu_pos_y) && (IHEVCE_QUALITY_P6 == ps_ctxt->i4_quality_preset)) in ihevce_compute_rdo()
1936 ps_ctxt->s_rdopt_entropy_ctxt.as_cu_entropy_ctxt->ps_slice_hdr->i1_cabac_init_flag; in ihevce_compute_rdo()
1938 if(ps_ctxt->i1_slice_type == ISLICE) in ihevce_compute_rdo()
1942 else if(ps_ctxt->i1_slice_type == PSLICE) in ihevce_compute_rdo()
1952 &ps_ctxt->s_rdopt_entropy_ctxt, in ihevce_compute_rdo()
1953 (UWORD8 *)gau1_ihevc_cab_ctxts[u1_cabac_init_idc][ps_ctxt->i4_frame_qp], in ihevce_compute_rdo()
1972 ((ps_ctxt->i4_quant_rounding_level == CTB_LEVEL_QUANT_ROUNDING) && in ihevce_compute_rdo()
1975 ((ps_ctxt->i4_quant_rounding_level == NCTB_LEVEL_QUANT_ROUNDING) && in ihevce_compute_rdo()
1978 if((ps_ctxt->i4_quant_rounding_level == CU_LEVEL_QUANT_ROUNDING) || in ihevce_compute_rdo()
1979 (ps_ctxt->i4_quant_rounding_level == TU_LEVEL_QUANT_ROUNDING) || in ihevce_compute_rdo()
2001 if((BSLICE == ps_ctxt->i1_slice_type) && (ps_ctxt->i4_temporal_layer_id)) in ihevce_compute_rdo()
2003 i4_lamda_modifier = ps_ctxt->i4_lamda_modifier * in ihevce_compute_rdo()
2004 CLIP3((((double)(ps_ctxt->i4_cu_qp - 12)) / 6.0), 2.00, 4.00); in ihevce_compute_rdo()
2006 ps_ctxt->i4_uv_lamda_modifier * in ihevce_compute_rdo()
2007 CLIP3((((double)(ps_ctxt->i4_chrm_cu_qp - 12)) / 6.0), 2.00, 4.00); in ihevce_compute_rdo()
2011 i4_lamda_modifier = ps_ctxt->i4_lamda_modifier; in ihevce_compute_rdo()
2012 i4_lamda_modifier_uv = ps_ctxt->i4_uv_lamda_modifier; in ihevce_compute_rdo()
2014 if(ps_ctxt->i4_use_const_lamda_modifier) in ihevce_compute_rdo()
2016 if(ISLICE == ps_ctxt->i1_slice_type) in ihevce_compute_rdo()
2018 i4_lamda_modifier = ps_ctxt->f_i_pic_lamda_modifier; in ihevce_compute_rdo()
2019 i4_lamda_modifier_uv = ps_ctxt->f_i_pic_lamda_modifier; in ihevce_compute_rdo()
2031 ps_ctxt->pi4_quant_round_factor_cu_ctb_0_1[trans_size >> 3], in ihevce_compute_rdo()
2035 ps_ctxt->pi4_quant_round_factor_cu_ctb_1_2[trans_size >> 3], in ihevce_compute_rdo()
2043 &ps_ctxt->s_rdopt_entropy_ctxt, in ihevce_compute_rdo()
2044 ps_ctxt->pi4_quant_round_factor_cu_ctb_0_1[trans_size >> 3], in ihevce_compute_rdo()
2045 ps_ctxt->pi4_quant_round_factor_cu_ctb_1_2[trans_size >> 3], in ihevce_compute_rdo()
2055 if(ps_ctxt->i4_chroma_quant_rounding_level == CHROMA_QUANT_ROUNDING) in ihevce_compute_rdo()
2060 ps_ctxt->pi4_quant_round_factor_cr_cu_ctb_0_1[trans_size_cr >> 3], in ihevce_compute_rdo()
2064 ps_ctxt->pi4_quant_round_factor_cr_cu_ctb_1_2[trans_size_cr >> 3], in ihevce_compute_rdo()
2071 &ps_ctxt->s_rdopt_entropy_ctxt, in ihevce_compute_rdo()
2072 ps_ctxt->pi4_quant_round_factor_cr_cu_ctb_0_1[trans_size_cr >> 3], in ihevce_compute_rdo()
2073 ps_ctxt->pi4_quant_round_factor_cr_cu_ctb_1_2[trans_size_cr >> 3], in ihevce_compute_rdo()
2084 if((ps_ctxt->i1_slice_type == BSLICE) && (ps_cu_analyse->u1_num_inter_cands)) in ihevce_compute_rdo()
2091 ps_ctxt, in ihevce_compute_rdo()
2124 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_enc_loop_cu_bot_copy() argument
2138 WORD32 u1_is_422 = (ps_ctxt->u1_chroma_array_type == 2); in ihevce_enc_loop_cu_bot_copy()
2141 pu1_luma_top = (UWORD8 *)ps_ctxt->pv_bot_row_luma + curr_cu_pos_in_row; in ihevce_enc_loop_cu_bot_copy()
2142 pu1_chrm_top = (UWORD8 *)ps_ctxt->pv_bot_row_chroma + curr_cu_pos_in_row; in ihevce_enc_loop_cu_bot_copy()
2143 ps_top_nbr = ps_ctxt->ps_bot_row_nbr + (curr_cu_pos_in_row >> 2); in ihevce_enc_loop_cu_bot_copy()
2167 ps_nbr = &ps_ctxt->as_ctb_nbr_arr[0]; in ihevce_enc_loop_cu_bot_copy()
2192 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_update_final_cu_results() argument
2219 ihevce_store_cu_final(ps_ctxt, ps_cu_final, *ppu1_row_ecd_data, ps_enc_out_ctxt, ps_cu_prms); in ihevce_update_final_cu_results()
2238 if(((ps_cu_final->b3_cu_pos_y << 3) + u4_cu_size) == ps_ctxt->u4_cur_ctb_ht) in ihevce_update_final_cu_results()
2241 ((pf_enc_loop_cu_bot_copy)ps_ctxt->pv_enc_loop_cu_bot_copy)( in ihevce_update_final_cu_results()
2242 ps_ctxt, in ihevce_update_final_cu_results()
2250 ps_ctxt->pv_dep_mngr_enc_loop_cu_top_right, in ihevce_update_final_cu_results()
2253 ps_ctxt->i4_tile_col_idx /* Col Tile No. */); in ihevce_update_final_cu_results()
2285 ihevce_enc_loop_ctxt_t *ps_ctxt, in ihevce_cu_recurse_decide() argument
2316 WORD32 pic_wd = ps_ctxt->s_sao_ctxt_t.ps_sps->i2_pic_width_in_luma_samples; in ihevce_cu_recurse_decide()
2317 WORD32 pic_ht = ps_ctxt->s_sao_ctxt_t.ps_sps->i2_pic_height_in_luma_samples; in ihevce_cu_recurse_decide()
2318 WORD32 log2_min_cb_size = ps_ctxt->s_sao_ctxt_t.ps_sps->i1_log2_min_coding_block_size; in ihevce_cu_recurse_decide()
2328 UWORD8 u1_is_cu_noisy = ps_ctxt->u1_is_stasino_enabled in ihevce_cu_recurse_decide()
2337 LWORD64 i8_lambda_qf = ps_ctxt->s_sao_ctxt_t.i8_cl_ssd_lambda_qf; in ihevce_cu_recurse_decide()
2343 if(!ps_ctxt->u1_enable_psyRDOPT && u1_is_cu_noisy) in ihevce_cu_recurse_decide()
2345 ps_ctxt->i8_cl_ssd_lambda_qf = ps_ctxt->s_sao_ctxt_t.i8_cl_ssd_lambda_qf; in ihevce_cu_recurse_decide()
2346 ps_ctxt->i8_cl_ssd_lambda_chroma_qf = ps_ctxt->s_sao_ctxt_t.i8_cl_ssd_lambda_chroma_qf; in ihevce_cu_recurse_decide()
2350 if(u1_is_cu_noisy && !ps_ctxt->u1_enable_psyRDOPT) in ihevce_cu_recurse_decide()
2366 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2394 left_cu_depth = ps_ctxt->as_left_col_nbr[pos_y_4x4].b2_cu_depth; in ihevce_cu_recurse_decide()
2400 left_cu_depth = ps_ctxt->as_ctb_nbr_arr[cur_4x4_in_ctb - 1].b2_cu_depth; in ihevce_cu_recurse_decide()
2411 ps_ctxt->pv_dep_mngr_enc_loop_cu_top_right, in ihevce_cu_recurse_decide()
2415 ps_ctxt->i4_tile_col_idx, /* Col Tile No. */ in ihevce_cu_recurse_decide()
2416 ps_ctxt->thrd_id); in ihevce_cu_recurse_decide()
2419 ps_ctxt->ps_top_row_nbr[(i4_ctb_x_off >> 2) + pos_x_4x4].b2_cu_depth; in ihevce_cu_recurse_decide()
2425 top_cu_depth = ps_ctxt->as_ctb_nbr_arr[cur_4x4_in_ctb - num_4x4_in_ctb].b2_cu_depth; in ihevce_cu_recurse_decide()
2432 ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][split_cu_ctxt_inc]; in ihevce_cu_recurse_decide()
2443 ps_ctxt->au1_rdopt_recur_ctxt_models[i][split_cu_ctxt_inc] = in ihevce_cu_recurse_decide()
2448 ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][split_cu_ctxt_inc] = in ihevce_cu_recurse_decide()
2461 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2462 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2465 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2468 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2469 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2476 ps_ctxt, ps_cu_tree_analyse->b3_cu_pos_x, ps_cu_tree_analyse->b3_cu_pos_y); in ihevce_cu_recurse_decide()
2480 ps_ctxt, in ihevce_cu_recurse_decide()
2501 ps_ctxt->pu1_curr_row_cabac_state, in ihevce_cu_recurse_decide()
2502 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2516 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2517 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2522 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2533 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2534 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2540 ((pf_store_cu_results)ps_ctxt->pv_store_cu_results)( in ihevce_cu_recurse_decide()
2541 ps_ctxt, ps_cu_prms, &s_final_mode_state); in ihevce_cu_recurse_decide()
2544 if(ps_ctxt->i4_quality_preset >= IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2547 ps_ctxt, in ihevce_cu_recurse_decide()
2548 ps_ctxt->ps_enc_out_ctxt, in ihevce_cu_recurse_decide()
2559 i4_num_bytes_ecd_data = ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2564 ps_ctxt->pu1_ecd_data, in ihevce_cu_recurse_decide()
2565 &ps_ctxt->pu1_cu_recur_coeffs[0], in ihevce_cu_recurse_decide()
2568 ps_ctxt->pu1_ecd_data += i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2572 *pps_col_pu += ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2573 *pi4_col_start_pu_idx += ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2577 i4_num_bytes_ecd_data = ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2581 ps_ctxt->pu1_ecd_data, in ihevce_cu_recurse_decide()
2582 &ps_ctxt->pu1_cu_recur_coeffs[0], in ihevce_cu_recurse_decide()
2585 ps_ctxt->pu1_ecd_data += i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2589 *pps_col_pu += ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2590 *pi4_col_start_pu_idx += ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2593 ps_ctxt->ps_enc_out_ctxt++; in ihevce_cu_recurse_decide()
2605 ps_ctxt, in ihevce_cu_recurse_decide()
2640 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2644 (ps_ctxt->i1_slice_type != ISLICE)) in ihevce_cu_recurse_decide()
2667 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2668 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2674 ps_ctxt->pu1_ctb_nbr_map, in ihevce_cu_recurse_decide()
2675 ps_ctxt->i4_nbr_map_strd, in ihevce_cu_recurse_decide()
2681 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2684 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2685 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2691 ps_ctxt->pu1_ctb_nbr_map, in ihevce_cu_recurse_decide()
2692 ps_ctxt->i4_nbr_map_strd, in ihevce_cu_recurse_decide()
2702 ps_ctxt->is_parent_cu_rdopt = 1; in ihevce_cu_recurse_decide()
2707 ps_ctxt, ps_cu_tree_analyse->b3_cu_pos_x, ps_cu_tree_analyse->b3_cu_pos_y); in ihevce_cu_recurse_decide()
2710 ps_ctxt, in ihevce_cu_recurse_decide()
2723 ps_ctxt->is_parent_cu_rdopt = 0; in ihevce_cu_recurse_decide()
2731 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2732 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2743 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2750 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2751 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2763 (num_children_encoded * ps_ctxt->i4_sad_lamda + ((1 << (LAMBDA_Q_SHIFT)))) >> in ihevce_cu_recurse_decide()
2777 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2778 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()
2783 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2784 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()
2787 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2792 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2793 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()
2798 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2799 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()
2822 ps_ctxt->pu1_curr_row_cabac_state, in ihevce_cu_recurse_decide()
2823 &ps_ctxt->s_rdopt_entropy_ctxt.au1_init_cabac_ctxt_states[0], in ihevce_cu_recurse_decide()
2832 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2833 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2837 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2842 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2843 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth][0], in ihevce_cu_recurse_decide()
2848 ((pf_store_cu_results)ps_ctxt->pv_store_cu_results)( in ihevce_cu_recurse_decide()
2849 ps_ctxt, ps_cu_prms, &s_final_mode_state); in ihevce_cu_recurse_decide()
2852 if(ps_ctxt->i4_quality_preset >= IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2855 ps_ctxt, in ihevce_cu_recurse_decide()
2856 ps_ctxt->ps_enc_out_ctxt, in ihevce_cu_recurse_decide()
2864 ps_ctxt->ps_enc_out_ctxt++; in ihevce_cu_recurse_decide()
2868 ps_enc_tmp_out_ctxt = ps_ctxt->ps_enc_out_ctxt; in ihevce_cu_recurse_decide()
2876 (ps_ctxt->ps_enc_out_ctxt - i - 1)->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2877 ps_ctxt->pu1_ecd_data -= i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2881 ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2885 ps_ctxt->pu1_ecd_data, in ihevce_cu_recurse_decide()
2886 &ps_ctxt->pu1_cu_recur_coeffs[0], in ihevce_cu_recurse_decide()
2889 ps_ctxt->pu1_ecd_data += i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2892 ps_enc_tmp_out_ctxt = ps_ctxt->ps_enc_out_ctxt - num_child_nodes; in ihevce_cu_recurse_decide()
2896 ps_ctxt->ps_enc_out_ctxt, in ihevce_cu_recurse_decide()
2901 i4_num_pus_in_cu = ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2912 ps_ctxt->ps_enc_out_ctxt = ps_enc_tmp_out_ctxt + 1; in ihevce_cu_recurse_decide()
2916 ps_enc_tmp_out_ctxt = ps_ctxt->ps_enc_out_ctxt; in ihevce_cu_recurse_decide()
2924 (ps_ctxt->ps_enc_out_ctxt - i - 1)->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2925 ps_ctxt->pu1_ecd_data -= i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2928 i4_num_bytes_ecd_data = ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2932 ps_ctxt->pu1_ecd_data, in ihevce_cu_recurse_decide()
2933 &ps_ctxt->pu1_cu_recur_coeffs[0], in ihevce_cu_recurse_decide()
2936 ps_ctxt->pu1_ecd_data += i4_num_bytes_ecd_data; in ihevce_cu_recurse_decide()
2939 ps_enc_tmp_out_ctxt = ps_ctxt->ps_enc_out_ctxt - num_child_nodes; in ihevce_cu_recurse_decide()
2943 ps_ctxt->ps_enc_out_ctxt, in ihevce_cu_recurse_decide()
2949 i4_num_pus_in_cu = ps_ctxt->ps_enc_out_ctxt->ps_cu_prms->u2_num_pus_in_cu; in ihevce_cu_recurse_decide()
2960 ps_ctxt->ps_enc_out_ctxt = ps_enc_tmp_out_ctxt + 1; in ihevce_cu_recurse_decide()
2979 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2980 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()
2984 if(ps_ctxt->i4_quality_preset < IHEVCE_QUALITY_P2) in ihevce_cu_recurse_decide()
2989 &ps_ctxt->au1_rdopt_recur_ctxt_models[i][0], in ihevce_cu_recurse_decide()
2990 &ps_ctxt->au1_rdopt_recur_ctxt_models[i4_tree_depth + 1][0], in ihevce_cu_recurse_decide()