• Home
  • Raw
  • Download

Lines Matching refs:s_multi_thrd

325         &ps_enc_ctxt->s_multi_thrd.aps_curr_inp_pre_enc[i4_cur_ipe_idx]->s_rc_lap_out;  in complexity_RC_reset_marking()
350 (ps_enc_ctxt->s_multi_thrd.i4_delay_pre_me_btw_l0_ipe > (2 * (1 << i4_max_temporal_layers)))) in complexity_RC_reset_marking()
353 ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_cur_ipe_idx] in complexity_RC_reset_marking()
366 if(i4_next_ipe_idx >= ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe) in complexity_RC_reset_marking()
374 &ps_enc_ctxt->s_multi_thrd.aps_curr_inp_pre_enc[i4_next_ipe_idx]->s_rc_lap_out; in complexity_RC_reset_marking()
382 if(i4_next_ipe_idx >= ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe) in complexity_RC_reset_marking()
389 if(i4_next_next_ipe_idx >= ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe) in complexity_RC_reset_marking()
396 &ps_enc_ctxt->s_multi_thrd.aps_curr_inp_pre_enc[i4_next_next_ipe_idx]->s_rc_lap_out; in complexity_RC_reset_marking()
404 if(i4_next_next_ipe_idx >= ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe) in complexity_RC_reset_marking()
414 &ps_enc_ctxt->s_multi_thrd.aps_curr_inp_pre_enc[i4_temp_ipe_idx]->s_rc_lap_out; in complexity_RC_reset_marking()
426 if(i4_temp_ipe_idx >= ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe) in complexity_RC_reset_marking()
449 if((!ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_next_ipe_idx] in complexity_RC_reset_marking()
451 (!ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_next_next_ipe_idx] in complexity_RC_reset_marking()
477 if((!ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_next_ipe_idx] in complexity_RC_reset_marking()
479 (!ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_next_next_ipe_idx] in complexity_RC_reset_marking()
1104 ps_cur_out_me_prms = ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id]; in ihevce_manage_ref_pics()
2798 … ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id]->pv_dep_mngr_encloop_dep_me); in ihevce_frame_init()
2807 … ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id]->pv_dep_mngr_encloop_dep_me); in ihevce_frame_init()
2927 if(1 == ps_enc_ctxt->s_multi_thrd.i4_num_me_frm_pllel) in ihevce_enc_frm_proc_slave_thrd()
2930 ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_me_done[0]; in ihevce_enc_frm_proc_slave_thrd()
2935 ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_me_done[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
2944 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
2946 result = osal_mutex_lock(ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i4_me_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
2960 if(ps_enc_ctxt->s_multi_thrd.ai4_me_master_done_flag[i4_me_frm_id] == 0) in ihevce_enc_frm_proc_slave_thrd()
2968 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] = in ihevce_enc_frm_proc_slave_thrd()
2975 ASSERT(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] != NULL); in ihevce_enc_frm_proc_slave_thrd()
2977 ps_enc_ctxt->s_multi_thrd.is_in_buf_freed[i4_enc_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
2980 ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id] = in ihevce_enc_frm_proc_slave_thrd()
2984 &ps_enc_ctxt->s_multi_thrd.ai4_in_frm_l0_ipe_id[i4_me_frm_id], in ihevce_enc_frm_proc_slave_thrd()
2988 ASSERT(ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id] != NULL); in ihevce_enc_frm_proc_slave_thrd()
2991 ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] = in ihevce_enc_frm_proc_slave_thrd()
2995 &ps_enc_ctxt->s_multi_thrd.ai4_me_out_buf_id[i4_me_frm_id], in ihevce_enc_frm_proc_slave_thrd()
2999 ASSERT(ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] != NULL); in ihevce_enc_frm_proc_slave_thrd()
3001 if(NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] && in ihevce_enc_frm_proc_slave_thrd()
3002 NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] && in ihevce_enc_frm_proc_slave_thrd()
3003 NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3006 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3008 ps_curr_out_me = ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3011 ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3015 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3020 ps_enc_ctxt->s_multi_thrd.ai4_me_out_buf_id[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3023 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3026 … ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->curr_inp_buf_id; in ihevce_enc_frm_proc_slave_thrd()
3029 ps_enc_ctxt->s_multi_thrd.ai4_in_frm_l0_ipe_id[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3032 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3036 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->i4_end_flag; in ihevce_enc_frm_proc_slave_thrd()
3043 &ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3045 &ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3049 if(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3139 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_enc_frm_id][i] = in ihevce_enc_frm_proc_slave_thrd()
3151 &ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3158 i4_ref_cur_qp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3171 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id], in ihevce_enc_frm_proc_slave_thrd()
3172 ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id], in ihevce_enc_frm_proc_slave_thrd()
3178 ps_enc_ctxt->s_multi_thrd.ai4_me_master_done_flag[i4_me_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
3187 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3189 result = osal_mutex_unlock(ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i4_me_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
3195 (1 == ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3203 i4_me_end_flag = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->i4_end_flag; in ihevce_enc_frm_proc_slave_thrd()
3204 if(NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] && in ihevce_enc_frm_proc_slave_thrd()
3205 NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] && in ihevce_enc_frm_proc_slave_thrd()
3206 NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3213 ps_curr_inp_prms = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3215 ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3216 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3227 … ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->i4_frm_proc_valid_flag)) in ihevce_enc_frm_proc_slave_thrd()
3238 if(ISLICE != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3245 ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id], in ihevce_enc_frm_proc_slave_thrd()
3250 &ps_enc_ctxt->s_multi_thrd, in ihevce_enc_frm_proc_slave_thrd()
3251 ((ps_enc_ctxt->s_multi_thrd.i4_num_me_frm_pllel == 1) ? 0 : 1), in ihevce_enc_frm_proc_slave_thrd()
3266 multi_thrd_ctxt_t *ps_multi_thrd_ctxt = &ps_enc_ctxt->s_multi_thrd; in ihevce_enc_frm_proc_slave_thrd()
3268 if(ps_enc_ctxt->s_multi_thrd.i4_num_me_frm_pllel != 1) in ihevce_enc_frm_proc_slave_thrd()
3294 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_me_end[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3306 if(0 == ps_enc_ctxt->s_multi_thrd.ai4_me_enc_buff_prod_flag[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3312 ps_enc_ctxt->s_multi_thrd.ai4_me_out_buf_id[i4_me_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
3314 ps_enc_ctxt->s_multi_thrd.ai4_me_enc_buff_prod_flag[i4_me_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
3316 if(NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] && in ihevce_enc_frm_proc_slave_thrd()
3317 NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3324 ps_enc_ctxt->s_multi_thrd.me_num_thrds_exited[i4_me_frm_id]++; in ihevce_enc_frm_proc_slave_thrd()
3326 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3330 if(ps_enc_ctxt->s_multi_thrd.me_num_thrds_exited[i4_me_frm_id] == in ihevce_enc_frm_proc_slave_thrd()
3331 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) in ihevce_enc_frm_proc_slave_thrd()
3333 ps_enc_ctxt->s_multi_thrd.me_num_thrds_exited[i4_me_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
3335 ps_enc_ctxt->s_multi_thrd.ai4_me_master_done_flag[i4_me_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
3340 WORD32 i4_idx_dvsr_p = ps_enc_ctxt->s_multi_thrd.i4_idx_dvsr_p; in ihevce_enc_frm_proc_slave_thrd()
3351 ps_enc_ctxt->s_multi_thrd.i4_idx_dvsr_p++; in ihevce_enc_frm_proc_slave_thrd()
3352 if(ps_enc_ctxt->s_multi_thrd.i4_idx_dvsr_p == NUM_SG_INTERLEAVED) in ihevce_enc_frm_proc_slave_thrd()
3354 ps_enc_ctxt->s_multi_thrd.i4_idx_dvsr_p = 0; in ihevce_enc_frm_proc_slave_thrd()
3357 if(1 == ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3371 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id] = NULL; in ihevce_enc_frm_proc_slave_thrd()
3372 ps_enc_ctxt->s_multi_thrd.aps_cur_out_me_prms[i4_me_frm_id] = NULL; in ihevce_enc_frm_proc_slave_thrd()
3373 ps_enc_ctxt->s_multi_thrd.aps_cur_L0_ipe_inp_prms[i4_me_frm_id] = NULL; in ihevce_enc_frm_proc_slave_thrd()
3374 ps_enc_ctxt->s_multi_thrd.ai4_me_enc_buff_prod_flag[i4_me_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
3375 ps_enc_ctxt->s_multi_thrd.ai4_me_master_done_flag[i4_me_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
3390 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_me_end[i4_me_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3402 ASSERT(ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel <= MAX_NUM_ENC_LOOP_PARALLEL); in ihevce_enc_frm_proc_slave_thrd()
3404 if(1 == ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel) in ihevce_enc_frm_proc_slave_thrd()
3406 pv_dep_mngr_prev_frame_done = ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_done[0]; in ihevce_enc_frm_proc_slave_thrd()
3411 ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_done[i4_enc_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3427 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_frame_init[i4_enc_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3453 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_frame_init[i4_enc_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3456 if(ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_enc_frm_id] == 0) in ihevce_enc_frm_proc_slave_thrd()
3461 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] = in ihevce_enc_frm_proc_slave_thrd()
3465 &ps_enc_ctxt->s_multi_thrd.i4_enc_in_buf_id[i4_enc_frm_id], in ihevce_enc_frm_proc_slave_thrd()
3468 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]->i4_end_flag; in ihevce_enc_frm_proc_slave_thrd()
3470 ASSERT(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] != NULL); in ihevce_enc_frm_proc_slave_thrd()
3472 if(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] != NULL) in ihevce_enc_frm_proc_slave_thrd()
3475 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3477 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3479 ps_curr_inp_enc = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3481 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3502 … &ps_enc_ctxt->s_multi_thrd.out_buf_id[i4_enc_frm_id][i4_bitrate_ctr], in ihevce_enc_frm_proc_slave_thrd()
3504 ps_enc_ctxt->s_multi_thrd.is_out_buf_freed[i4_enc_frm_id][i4_bitrate_ctr] = in ihevce_enc_frm_proc_slave_thrd()
3506 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
3520 if(NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3523 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3526 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3530 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3551 &ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3619 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr] = in ihevce_enc_frm_proc_slave_thrd()
3624 &ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
3628 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
3631 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
3635 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3642 if(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] != NULL) in ihevce_enc_frm_proc_slave_thrd()
3645 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3646 ps_curr_inp_from_me = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3648 ps_curr_inp_enc = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]; in ihevce_enc_frm_proc_slave_thrd()
3650 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3653 if((NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]) && in ihevce_enc_frm_proc_slave_thrd()
3655 (ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_enc_frm_id] == 0))) in ihevce_enc_frm_proc_slave_thrd()
3684 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3691 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3700 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3797 ps_enc_ctxt->s_multi_thrd.i4_in_frame_rc_enabled = 0; in ihevce_enc_frm_proc_slave_thrd()
3798 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3800 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3822 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3826 ps_enc_ctxt->s_multi_thrd.cur_qp[i4_enc_frm_id][i] = ai4_cur_qp[i]; in ihevce_enc_frm_proc_slave_thrd()
3848 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_enc_frm_id][i]->i4_frame_qp = in ihevce_enc_frm_proc_slave_thrd()
3862 ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_enc_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
3876 ps_enc_ctxt->s_multi_thrd.i4_encode = 1; in ihevce_enc_frm_proc_slave_thrd()
3877 ps_enc_ctxt->s_multi_thrd.i4_num_re_enc = 0; in ihevce_enc_frm_proc_slave_thrd()
3885 (NULL != ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]) && in ihevce_enc_frm_proc_slave_thrd()
3886 (1 == ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3908 if(NULL != ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
3911 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3914 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3917 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3920 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3922 pu1_frm_coeffs[i] = (UWORD8 *)ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
3948 ps_enc_ctxt->s_multi_thrd.cur_qp[i4_enc_frm_id][i], in ihevce_enc_frm_proc_slave_thrd()
3950 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_enc_frm_id][i], in ihevce_enc_frm_proc_slave_thrd()
3951 &ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
3953 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i]->ps_pps, in ihevce_enc_frm_proc_slave_thrd()
3954 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i]->ps_sps, in ihevce_enc_frm_proc_slave_thrd()
3955 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i]->ps_vps, in ihevce_enc_frm_proc_slave_thrd()
3969 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
3977 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_enc_frm_id][i], in ihevce_enc_frm_proc_slave_thrd()
3986 &ps_enc_ctxt->s_multi_thrd, in ihevce_enc_frm_proc_slave_thrd()
4007 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4010 ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4015 if(ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] != NULL) in ihevce_enc_frm_proc_slave_thrd()
4018 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id]++; in ihevce_enc_frm_proc_slave_thrd()
4023 if(ps_enc_ctxt->s_multi_thrd.num_thrds_done == in ihevce_enc_frm_proc_slave_thrd()
4024 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds - 1) in ihevce_enc_frm_proc_slave_thrd()
4026 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id] = in ihevce_enc_frm_proc_slave_thrd()
4027 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; in ihevce_enc_frm_proc_slave_thrd()
4033 if(ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id] == in ihevce_enc_frm_proc_slave_thrd()
4034 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) in ihevce_enc_frm_proc_slave_thrd()
4042 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
4044 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
4067 if(ps_enc_ctxt->s_multi_thrd.i4_in_frame_rc_enabled) in ihevce_enc_frm_proc_slave_thrd()
4074 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4081 ps_enc_ctxt->s_multi_thrd.cur_qp[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4084 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4089 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4091 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4094 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4098 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4102 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4143 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4147 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4149 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4151 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4154 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4156 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4158 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4161 ps_enc_ctxt->s_multi_thrd.ai4_produce_outbuf[i4_enc_frm_id][i] = 1; in ihevce_enc_frm_proc_slave_thrd()
4163 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4165 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4168 if(1 == ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
4173 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4185 &ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4204 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4206 ps_enc_ctxt->s_multi_thrd.cur_qp[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4207 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4209 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4213 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4219 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4223 (ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4237 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4239 ps_enc_ctxt->s_multi_thrd.cur_qp[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4240 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4242 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4249 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] in ihevce_enc_frm_proc_slave_thrd()
4332 if(ps_enc_ctxt->s_multi_thrd.ai4_produce_outbuf[i4_enc_frm_id][i] == 1) in ihevce_enc_frm_proc_slave_thrd()
4338 ps_enc_ctxt->s_multi_thrd.out_buf_id[i4_enc_frm_id][i]); in ihevce_enc_frm_proc_slave_thrd()
4340 ps_enc_ctxt->s_multi_thrd.is_out_buf_freed[i4_enc_frm_id][i] = 1; in ihevce_enc_frm_proc_slave_thrd()
4341 ps_enc_ctxt->s_multi_thrd.ai4_produce_outbuf[i4_enc_frm_id][i] = 0; in ihevce_enc_frm_proc_slave_thrd()
4367 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i]; in ihevce_enc_frm_proc_slave_thrd()
4410 &ps_enc_ctxt->s_multi_thrd.out_buf_id[i4_enc_frm_id][i], in ihevce_enc_frm_proc_slave_thrd()
4444 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4453 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4456 ps_enc_ctxt->s_multi_thrd in ihevce_enc_frm_proc_slave_thrd()
4463 if(ps_enc_ctxt->s_multi_thrd.is_in_buf_freed[i4_enc_frm_id] == 0) in ihevce_enc_frm_proc_slave_thrd()
4471 ps_enc_ctxt->s_multi_thrd.is_in_buf_freed[i4_enc_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
4485 ps_enc_ctxt->s_multi_thrd.is_in_buf_freed[i4_enc_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
4493 ps_enc_ctxt->s_multi_thrd.is_L0_ipe_in_buf_freed[i4_enc_frm_id] = 1; in ihevce_enc_frm_proc_slave_thrd()
4498 ps_enc_ctxt->s_multi_thrd.i4_enc_in_buf_id[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4501 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] = NULL; in ihevce_enc_frm_proc_slave_thrd()
4502 ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_enc_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
4504 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] = NULL; in ihevce_enc_frm_proc_slave_thrd()
4515 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id]++; in ihevce_enc_frm_proc_slave_thrd()
4517 if(ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id] == in ihevce_enc_frm_proc_slave_thrd()
4518 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) in ihevce_enc_frm_proc_slave_thrd()
4520 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_enc_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
4523 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] = NULL; in ihevce_enc_frm_proc_slave_thrd()
4525 ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_enc_frm_id] = 0; in ihevce_enc_frm_proc_slave_thrd()
4528 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_enc_frm_id][i] = NULL; in ihevce_enc_frm_proc_slave_thrd()
4546 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4549 ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4573 if(1 == ps_enc_ctxt->s_multi_thrd.i4_force_end_flag) in ihevce_enc_frm_proc_slave_thrd()
4582 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4587 osal_mutex_lock(ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4593 if(ps_enc_ctxt->s_multi_thrd.num_thrds_done == in ihevce_enc_frm_proc_slave_thrd()
4594 (ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds - 1)) in ihevce_enc_frm_proc_slave_thrd()
4596 if(1 != ps_enc_ctxt->s_multi_thrd.i4_force_end_flag) in ihevce_enc_frm_proc_slave_thrd()
4612 ps_enc_ctxt->s_multi_thrd.num_thrds_done++; in ihevce_enc_frm_proc_slave_thrd()
4615 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4620 osal_mutex_unlock(ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4627 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4631 osal_mutex_lock(ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
4636 if((ps_enc_ctxt->s_multi_thrd.num_thrds_done == in ihevce_enc_frm_proc_slave_thrd()
4637 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) && in ihevce_enc_frm_proc_slave_thrd()
4638 (ps_enc_ctxt->s_multi_thrd.i4_force_end_flag)) in ihevce_enc_frm_proc_slave_thrd()
4645 if(ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel > 1) in ihevce_enc_frm_proc_slave_thrd()
4675 if(NULL != ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[frm_id_ctr][i]) in ihevce_enc_frm_proc_slave_thrd()
4677 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[frm_id_ctr][i] in ihevce_enc_frm_proc_slave_thrd()
4679 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[frm_id_ctr][i]->i4_end_flag = 1; in ihevce_enc_frm_proc_slave_thrd()
4684 ps_enc_ctxt->s_multi_thrd.out_buf_id[frm_id_ctr][i]); in ihevce_enc_frm_proc_slave_thrd()
4712 if((ps_enc_ctxt->s_multi_thrd.num_thrds_done == in ihevce_enc_frm_proc_slave_thrd()
4713 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) && in ihevce_enc_frm_proc_slave_thrd()
4715 (ps_enc_ctxt->s_multi_thrd.i4_is_recon_free_done == 0)) in ihevce_enc_frm_proc_slave_thrd()
4741 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr] = in ihevce_enc_frm_proc_slave_thrd()
4745 &ps_enc_ctxt->s_multi_thrd.recon_buf_id[i4_enc_frm_id][i4_bitrate_ctr], in ihevce_enc_frm_proc_slave_thrd()
4749 end_flag = ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr] in ihevce_enc_frm_proc_slave_thrd()
4752 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr]->i4_end_flag = in ihevce_enc_frm_proc_slave_thrd()
4754 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr]->i4_y_pixels = in ihevce_enc_frm_proc_slave_thrd()
4756 … ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr]->i4_uv_pixels = in ihevce_enc_frm_proc_slave_thrd()
4762 ps_enc_ctxt->s_multi_thrd.ps_recon_out[i4_enc_frm_id][i4_bitrate_ctr], in ihevce_enc_frm_proc_slave_thrd()
4770 ps_enc_ctxt->s_multi_thrd.recon_buf_id[i4_enc_frm_id][i4_bitrate_ctr]); in ihevce_enc_frm_proc_slave_thrd()
4774 ps_enc_ctxt->s_multi_thrd.i4_is_recon_free_done = 1; in ihevce_enc_frm_proc_slave_thrd()
4778 if(NULL != ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]) in ihevce_enc_frm_proc_slave_thrd()
4782 osal_mutex_unlock(ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i4_enc_frm_id]); in ihevce_enc_frm_proc_slave_thrd()
5066 ps_enc_ctxt->s_multi_thrd.i4_last_pic_flag = end_flag; in ihevce_pre_enc_init()
5509 pre_enc_me_ctxt_t *ps_curr_out = ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[i4_cur_ipe_idx]; in ihevce_variance_calc_acc_activity()
5512 WORD32 loop_lap2 = MAX(1, ps_enc_ctxt->s_multi_thrd.i4_delay_pre_me_btw_l0_ipe - 1); in ihevce_variance_calc_acc_activity()
5516 WORD32 i4_delay_loop = ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe; in ihevce_variance_calc_acc_activity()
5540 … ihevce_lap_enc_buf_t *ps_in = ps_enc_ctxt->s_multi_thrd.aps_curr_inp_pre_enc[ipe_idx_tmp]; in ihevce_variance_calc_acc_activity()
5541 pre_enc_me_ctxt_t *ps_out = ps_enc_ctxt->s_multi_thrd.aps_curr_out_pre_enc[ipe_idx_tmp]; in ihevce_variance_calc_acc_activity()
5744 multi_thrd_ctxt_t *ps_multi_thrd = &ps_enc_ctxt->s_multi_thrd; in ihevce_pre_enc_process_frame_thrd()
6024 &ps_enc_ctxt->s_multi_thrd, in ihevce_pre_enc_process_frame_thrd()
6184 osal_mutex_unlock(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_deinit); in ihevce_pre_enc_process_frame_thrd()
6272 (volatile WORD32 *)&ps_enc_ctxt->s_multi_thrd.i4_force_end_flag); in ihevce_pre_enc_process_frame_thrd()
6273 if(1 == ps_enc_ctxt->s_multi_thrd.i4_force_end_flag) in ihevce_pre_enc_process_frame_thrd()
6487 &ps_enc_ctxt->s_multi_thrd, in ihevce_pre_enc_process_frame_thrd()
6564 [ps_enc_ctxt->s_multi_thrd.i4_rc_l0_qp + in ihevce_pre_enc_process_frame_thrd()