• Home
  • Raw
  • Download

Lines Matching refs:s_multi_thrd

311         ps_enc_ctxt->s_multi_thrd.i4_all_thrds_active_flag = 1;  in ihevce_hle_interface_create()
316 ps_enc_ctxt->s_multi_thrd.pi4_active_res_id = pi4_active_res_id; in ihevce_hle_interface_create()
332 if(1 == ps_enc_ctxt->s_multi_thrd.i4_all_thrds_active_flag) in ihevce_hle_interface_create()
335 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds = in ihevce_hle_interface_create()
339 ps_enc_ctxt->s_multi_thrd.i4_num_pre_enc_proc_thrds = in ihevce_hle_interface_create()
352 ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_mutex_lock_hdl = NULL; in ihevce_hle_interface_create()
353 ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_for_qp_update_mutex_lock_hdl = NULL; in ihevce_hle_interface_create()
403 ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_mutex_lock_hdl = in ihevce_hle_interface_create()
405 if(NULL == ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_mutex_lock_hdl) in ihevce_hle_interface_create()
410 ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_for_qp_update_mutex_lock_hdl = in ihevce_hle_interface_create()
412 if(NULL == ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_for_qp_update_mutex_lock_hdl) in ihevce_hle_interface_create()
781 ps_enc_ctxt->s_multi_thrd.i4_num_active_enc_thrds = in ihevce_hle_interface_thrd()
782 ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; in ihevce_hle_interface_thrd()
784 ps_enc_ctxt->s_multi_thrd.i4_num_active_pre_enc_thrds = in ihevce_hle_interface_thrd()
785 ps_enc_ctxt->s_multi_thrd.i4_num_pre_enc_proc_thrds; in ihevce_hle_interface_thrd()
956 ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_me = in ihevce_hle_interface_thrd()
958 if(NULL == ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_me) in ihevce_hle_interface_thrd()
964 ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_enc_loop = in ihevce_hle_interface_thrd()
966 if(NULL == ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_enc_loop) in ihevce_hle_interface_thrd()
974 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i] = in ihevce_hle_interface_thrd()
976 if(NULL == ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i]) in ihevce_hle_interface_thrd()
981 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_me_end[i] = in ihevce_hle_interface_thrd()
983 if(NULL == ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_me_end[i]) in ihevce_hle_interface_thrd()
991 ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i] = in ihevce_hle_interface_thrd()
993 if(NULL == ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i]) in ihevce_hle_interface_thrd()
998 ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_frame_init[i] = in ihevce_hle_interface_thrd()
1000 if(NULL == ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_frame_init[i]) in ihevce_hle_interface_thrd()
1007 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_init = in ihevce_hle_interface_thrd()
1010 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_decomp_deinit = in ihevce_hle_interface_thrd()
1013 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_init = in ihevce_hle_interface_thrd()
1016 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_deinit = in ihevce_hle_interface_thrd()
1019 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_deinit = in ihevce_hle_interface_thrd()
1022 ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_l0_ipe_init = in ihevce_hle_interface_thrd()
1025 ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_decomp = in ihevce_hle_interface_thrd()
1028 ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_hme = in ihevce_hle_interface_thrd()
1031 ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_l0ipe = in ihevce_hle_interface_thrd()
1034 if(NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_init || in ihevce_hle_interface_thrd()
1035 NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_decomp_deinit || in ihevce_hle_interface_thrd()
1036 NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_init || in ihevce_hle_interface_thrd()
1037 NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_deinit || in ihevce_hle_interface_thrd()
1038 NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_deinit || in ihevce_hle_interface_thrd()
1039 NULL == ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_l0_ipe_init || in ihevce_hle_interface_thrd()
1040 NULL == ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_decomp || in ihevce_hle_interface_thrd()
1041 NULL == ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_hme || in ihevce_hle_interface_thrd()
1042 NULL == ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_l0ipe) in ihevce_hle_interface_thrd()
1058 ps_enc_ctxt->s_multi_thrd.i4_is_recon_free_done = 0; in ihevce_hle_interface_thrd()
1059 ps_enc_ctxt->s_multi_thrd.i4_idx_dvsr_p = 0; in ihevce_hle_interface_thrd()
1060 ps_enc_ctxt->s_multi_thrd.i4_last_inp_buf = 0; in ihevce_hle_interface_thrd()
1068 ps_enc_ctxt->s_multi_thrd.me_num_thrds_exited[i4_frm_idx] = 0; in ihevce_hle_interface_thrd()
1069 ps_enc_ctxt->s_multi_thrd.ai4_me_master_done_flag[i4_frm_idx] = 0; in ihevce_hle_interface_thrd()
1070 ps_enc_ctxt->s_multi_thrd.ai4_me_enc_buff_prod_flag[i4_frm_idx] = 0; in ihevce_hle_interface_thrd()
1076 ps_enc_ctxt->s_multi_thrd.num_thrds_done = 0; in ihevce_hle_interface_thrd()
1077 ps_enc_ctxt->s_multi_thrd.num_thrds_exited_for_reenc = 0; in ihevce_hle_interface_thrd()
1080 ps_enc_ctxt->s_multi_thrd.num_thrds_exited[i4_frm_idx] = 0; in ihevce_hle_interface_thrd()
1082 ps_enc_ctxt->s_multi_thrd.enc_master_done_frame_init[i4_frm_idx] = 0; in ihevce_hle_interface_thrd()
1087 ps_enc_ctxt->s_multi_thrd.ai4_produce_outbuf[i4_frm_idx][i] = 1; in ihevce_hle_interface_thrd()
1088 ps_enc_ctxt->s_multi_thrd.ps_frm_recon[i4_frm_idx][i] = NULL; in ihevce_hle_interface_thrd()
1090 ps_enc_ctxt->s_multi_thrd.ps_curr_out_enc_grp[i4_frm_idx][i] = NULL; in ihevce_hle_interface_thrd()
1094 ps_enc_ctxt->s_multi_thrd.i4_seq_mode_enabled_flag = 0; in ihevce_hle_interface_thrd()
1097 for(i = 0; i < ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel; i++) in ihevce_hle_interface_thrd()
1100 ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_done[i]); in ihevce_hle_interface_thrd()
1104 ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_enc_done_for_reenc); in ihevce_hle_interface_thrd()
1107 ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_enc_done_for_reenc); in ihevce_hle_interface_thrd()
1108 for(i = 0; i < ps_enc_ctxt->s_multi_thrd.i4_num_me_frm_pllel; i++) in ihevce_hle_interface_thrd()
1111 ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_me_done[i]); in ihevce_hle_interface_thrd()
1116 ps_enc_ctxt->s_multi_thrd.i4_ctrl_blocking_mode = BUFF_QUE_BLOCKING_MODE; in ihevce_hle_interface_thrd()
1120 ps_enc_ctxt->s_multi_thrd.ai4_pre_enc_init_done[ctr] = 0; in ihevce_hle_interface_thrd()
1121 ps_enc_ctxt->s_multi_thrd.ai4_pre_enc_hme_init_done[ctr] = 0; in ihevce_hle_interface_thrd()
1122 ps_enc_ctxt->s_multi_thrd.ai4_pre_enc_deinit_done[ctr] = 1; in ihevce_hle_interface_thrd()
1123 ps_enc_ctxt->s_multi_thrd.ai4_num_thrds_processed_decomp[ctr] = 0; in ihevce_hle_interface_thrd()
1124 ps_enc_ctxt->s_multi_thrd.ai4_num_thrds_processed_coarse_me[ctr] = 0; in ihevce_hle_interface_thrd()
1125 ps_enc_ctxt->s_multi_thrd.ai4_num_thrds_processed_pre_enc[ctr] = 0; in ihevce_hle_interface_thrd()
1127 ps_enc_ctxt->s_multi_thrd.ai4_num_thrds_processed_L0_ipe_qp_init[ctr] = 0; in ihevce_hle_interface_thrd()
1128 ps_enc_ctxt->s_multi_thrd.ai4_decomp_coarse_me_complete_flag[ctr] = 1; in ihevce_hle_interface_thrd()
1129 ps_enc_ctxt->s_multi_thrd.ai4_end_flag_pre_enc[ctr] = 0; in ihevce_hle_interface_thrd()
1134 ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_l1); in ihevce_hle_interface_thrd()
1137 ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_coarse_me); in ihevce_hle_interface_thrd()
1140 ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_l0); in ihevce_hle_interface_thrd()
1144 ps_enc_ctxt->s_multi_thrd.i4_delay_pre_me_btw_l0_ipe = 0; in ihevce_hle_interface_thrd()
1145 ps_enc_ctxt->s_multi_thrd.i4_max_delay_pre_me_btw_l0_ipe = in ihevce_hle_interface_thrd()
1150 ps_enc_ctxt->s_multi_thrd.i4_delay_pre_me_btw_l0_ipe = in ihevce_hle_interface_thrd()
1154 ps_enc_ctxt->s_multi_thrd.i4_qp_update_l0_ipe = -1; in ihevce_hle_interface_thrd()
1307 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; ctr++) in ihevce_hle_interface_thrd()
1397 if(ps_enc_ctxt->s_multi_thrd.i4_all_thrds_active_flag) in ihevce_hle_interface_thrd()
1400 pre_enc_ctr -= ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; in ihevce_hle_interface_thrd()
1412 if((pre_enc_ctr + ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) >= in ihevce_hle_interface_thrd()
1425 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_pre_enc_proc_thrds; ctr++) in ihevce_hle_interface_thrd()
1466 [pre_enc_ctr + ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds]; in ihevce_hle_interface_thrd()
1467 if(((pre_enc_ctr + ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) >= in ihevce_hle_interface_thrd()
1482 if(((pre_enc_ctr + ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds) >= in ihevce_hle_interface_thrd()
1519 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_pre_enc_proc_thrds; ctr++) in ihevce_hle_interface_thrd()
1543 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; ctr++) in ihevce_hle_interface_thrd()
2061 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_me); in ihevce_hle_interface_delete()
2064 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_enc_grp_enc_loop); in ihevce_hle_interface_delete()
2069 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.apv_mutex_handle[i]); in ihevce_hle_interface_delete()
2071 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_me_end[i]); in ihevce_hle_interface_delete()
2076 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.apv_mutex_handle_frame_init[i]); in ihevce_hle_interface_delete()
2078 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.apv_post_enc_mutex_handle[i]); in ihevce_hle_interface_delete()
2083 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_decomp); in ihevce_hle_interface_delete()
2084 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_hme); in ihevce_hle_interface_delete()
2085 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_job_q_mutex_hdl_pre_enc_l0ipe); in ihevce_hle_interface_delete()
2086 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_init); in ihevce_hle_interface_delete()
2087 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_decomp_deinit); in ihevce_hle_interface_delete()
2088 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_init); in ihevce_hle_interface_delete()
2089 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_hme_deinit); in ihevce_hle_interface_delete()
2090 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_l0_ipe_init); in ihevce_hle_interface_delete()
2091 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_mutex_hdl_pre_enc_deinit); in ihevce_hle_interface_delete()
2106 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_enc_proc_thrds; ctr++) in ihevce_hle_interface_delete()
2108 osal_sem_destroy(ps_enc_ctxt->s_multi_thrd.apv_enc_thrd_sem_handle[ctr]); in ihevce_hle_interface_delete()
2111 for(ctr = 0; ctr < ps_enc_ctxt->s_multi_thrd.i4_num_pre_enc_proc_thrds; ctr++) in ihevce_hle_interface_delete()
2113 osal_sem_destroy(ps_enc_ctxt->s_multi_thrd.apv_pre_enc_thrd_sem_handle[ctr]); in ihevce_hle_interface_delete()
2121 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_encloop_dep_me[ctr]); in ihevce_hle_interface_delete()
2126 for(i = 0; i < ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel; i++) in ihevce_hle_interface_delete()
2128 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_done[i]); in ihevce_hle_interface_delete()
2131 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_enc_done_for_reenc); in ihevce_hle_interface_delete()
2136 for(i = 0; i < ps_enc_ctxt->s_multi_thrd.i4_num_me_frm_pllel; i++) in ihevce_hle_interface_delete()
2138 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.apv_dep_mngr_prev_frame_me_done[i]); in ihevce_hle_interface_delete()
2144 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_l1); in ihevce_hle_interface_delete()
2149 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_coarse_me); in ihevce_hle_interface_delete()
2154 ihevce_dmgr_del(ps_enc_ctxt->s_multi_thrd.pv_dep_mngr_prev_frame_pre_enc_l0); in ihevce_hle_interface_delete()
2178 if(NULL != ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_mutex_lock_hdl) in ihevce_hle_interface_delete()
2180 osal_mutex_destroy(ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_mutex_lock_hdl); in ihevce_hle_interface_delete()
2183 if(NULL != ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_for_qp_update_mutex_lock_hdl) in ihevce_hle_interface_delete()
2186 ps_enc_ctxt->s_multi_thrd.pv_sub_pic_rc_for_qp_update_mutex_lock_hdl); in ihevce_hle_interface_delete()
2198 s_memtab.pv_base = ps_enc_ctxt->s_multi_thrd.pi4_active_res_id; in ihevce_hle_interface_delete()