Home
last modified time | relevance | path

Searched refs:ps_enc_ctxt (Results 1 – 16 of 16) sorted by relevance

/external/libhevc/encoder/
Dihevce_function_selector.c128 static void ihevce_init_function_ptr_generic(enc_ctxt_t *ps_enc_ctxt) in ihevce_init_function_ptr_generic() argument
130 ps_enc_ctxt->s_func_selector.ihevc_deblk_chroma_horz_fptr = &ihevc_deblk_chroma_horz; in ihevce_init_function_ptr_generic()
131 ps_enc_ctxt->s_func_selector.ihevc_deblk_chroma_vert_fptr = &ihevc_deblk_chroma_vert; in ihevce_init_function_ptr_generic()
132 ps_enc_ctxt->s_func_selector.ihevc_deblk_422chroma_horz_fptr = &ihevc_deblk_422chroma_horz; in ihevce_init_function_ptr_generic()
133 ps_enc_ctxt->s_func_selector.ihevc_deblk_422chroma_vert_fptr = &ihevc_deblk_422chroma_vert; in ihevce_init_function_ptr_generic()
134 ps_enc_ctxt->s_func_selector.ihevc_deblk_luma_vert_fptr = &ihevc_deblk_luma_vert; in ihevce_init_function_ptr_generic()
135 ps_enc_ctxt->s_func_selector.ihevc_deblk_luma_horz_fptr = &ihevc_deblk_luma_horz; in ihevce_init_function_ptr_generic()
136 ps_enc_ctxt->s_func_selector.ihevc_inter_pred_chroma_copy_fptr = &ihevc_inter_pred_chroma_copy; in ihevce_init_function_ptr_generic()
137ps_enc_ctxt->s_func_selector.ihevc_inter_pred_chroma_copy_w16out_fptr = &ihevc_inter_pred_chroma_c… in ihevce_init_function_ptr_generic()
138 ps_enc_ctxt->s_func_selector.ihevc_inter_pred_chroma_horz_fptr = &ihevc_inter_pred_chroma_horz; in ihevce_init_function_ptr_generic()
[all …]
Dihevce_hle_q_func.c132 enc_ctxt_t *ps_enc_ctxt = (enc_ctxt_t *)pv_enc_ctxt; in ihevce_q_get_free_buff() local
133 i4_mres_single_out = ps_enc_ctxt->ps_stat_prms->s_tgt_lyr_prms.i4_mres_single_out; in ihevce_q_get_free_buff()
138 osal_mutex_lock(ps_enc_ctxt->s_enc_ques.pv_q_mutex_hdl); in ihevce_q_get_free_buff()
142 ihevce_buff_que_get_free_buf(ps_enc_ctxt->s_enc_ques.apv_q_hdl[i4_q_id], pi4_buff_id); in ihevce_q_get_free_buff()
145 osal_mutex_unlock(ps_enc_ctxt->s_enc_ques.pv_q_mutex_hdl); in ihevce_q_get_free_buff()
165 pv_sem_handle = ps_enc_ctxt->s_thrd_sem_ctxt.pv_inp_data_sem_handle; in ihevce_q_get_free_buff()
172 pv_sem_handle = ps_enc_ctxt->s_thrd_sem_ctxt.pv_inp_ctrl_sem_handle; in ihevce_q_get_free_buff()
177 pv_sem_handle = ps_enc_ctxt->s_thrd_sem_ctxt.pv_lap_inp_data_sem_hdl; in ihevce_q_get_free_buff()
185 pv_sem_handle = ps_enc_ctxt->s_thrd_sem_ctxt.pv_out_common_mres_sem_hdl; in ihevce_q_get_free_buff()
189 pv_sem_handle = ps_enc_ctxt->s_thrd_sem_ctxt.apv_out_strm_sem_handle[0]; in ihevce_q_get_free_buff()
[all …]
Dihevce_hle_interface.c143 void ihevce_context_reset(enc_ctxt_t *ps_enc_ctxt) in ihevce_context_reset() argument
145 ps_enc_ctxt->i4_end_flag = 0; in ihevce_context_reset()
148 ps_enc_ctxt->s_enc_ques.pv_q_mutex_hdl = NULL; in ihevce_context_reset()
151 ps_enc_ctxt->i4_io_queues_created = 0; in ihevce_context_reset()
154 ps_enc_ctxt->i4_frame_limit_reached = 0; in ihevce_context_reset()
179 enc_ctxt_t *ps_enc_ctxt; in ihevce_hle_interface_create() local
306 ps_enc_ctxt = (enc_ctxt_t *)s_memtab.pv_base; in ihevce_hle_interface_create()
308 ps_enc_ctxt->ps_stat_prms = ps_enc_static_cfg_params; in ihevce_hle_interface_create()
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()
[all …]
Dihevce_frame_process.c318 void complexity_RC_reset_marking(enc_ctxt_t *ps_enc_ctxt, WORD32 i4_cur_ipe_idx, WORD32 i4_end_flag) in complexity_RC_reset_marking() argument
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()
329 i4_max_temporal_layers = ps_enc_ctxt->ps_stat_prms->s_coding_tools_prms.i4_max_temporal_layers; in complexity_RC_reset_marking()
335 ps_enc_ctxt->i4_past_RC_reset_count = 0; in complexity_RC_reset_marking()
340 ps_enc_ctxt->i4_past_RC_scd_reset_count = 0; in complexity_RC_reset_marking()
342 ps_enc_ctxt->i4_past_RC_reset_count++; in complexity_RC_reset_marking()
343 ps_enc_ctxt->i4_past_RC_scd_reset_count++; 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()
360 ps_enc_ctxt->i4_future_RC_reset = 0; in complexity_RC_reset_marking()
[all …]
Dihevce_memory_init.c159 void ihevce_mem_manager_init(enc_ctxt_t *ps_enc_ctxt, ihevce_hle_ctxt_t *ps_intrf_ctxt) in ihevce_mem_manager_init() argument
185 WORD32 i, i4_resolution_id = ps_enc_ctxt->i4_resolution_id; //counter in ihevce_mem_manager_init()
203 i4_num_bitrate_inst = ps_enc_ctxt->i4_num_bitrates; in ihevce_mem_manager_init()
204 i4_field_pic = ps_enc_ctxt->ps_stat_prms->s_src_prms.i4_field_pic; in ihevce_mem_manager_init()
215 ps_enc_ctxt->s_multi_thrd.ai4_acc_ctb_ctr[i][j] = 0; in ihevce_mem_manager_init()
216 ps_enc_ctxt->s_multi_thrd.ai4_ctb_ctr[i][j] = 0; in ihevce_mem_manager_init()
218 ps_enc_ctxt->s_multi_thrd.ai4_threshold_reached[i][j] = 0; in ihevce_mem_manager_init()
220 ps_enc_ctxt->s_multi_thrd.ai4_curr_qp_acc[i][j] = 0; in ihevce_mem_manager_init()
222 ps_enc_ctxt->s_multi_thrd.af_acc_hdr_bits_scale_err[i][j] = 0; in ihevce_mem_manager_init()
226 ps_enc_ctxt->s_multi_thrd.ai4_thrd_id_valid_flag[i][j][k] = -1; in ihevce_mem_manager_init()
[all …]
Dihevce_entropy_cod.c147 enc_ctxt_t *ps_enc_ctxt; in ihevce_ent_coding_thrd() local
172 ps_enc_ctxt = (enc_ctxt_t *)ps_thrd_ctxt->pv_enc_ctxt; in ihevce_ent_coding_thrd()
176 i4_resolution_id = ps_enc_ctxt->i4_resolution_id; in ihevce_ent_coding_thrd()
185 i4_bufque_id = ps_enc_ctxt->i4_ref_mbr_id; in ihevce_ent_coding_thrd()
187 else if(i4_bitrate_instance_num == ps_enc_ctxt->i4_ref_mbr_id) in ihevce_ent_coding_thrd()
192 if(1 == ps_enc_ctxt->ps_stat_prms->s_tgt_lyr_prms.i4_mres_single_out) in ihevce_ent_coding_thrd()
197 pv_entropy_hdl = ps_enc_ctxt->s_module_ctxt.apv_ent_cod_ctxt[i4_bitrate_instance_num]; in ihevce_ent_coding_thrd()
205 (void *)ps_enc_ctxt, in ihevce_ent_coding_thrd()
209 if(1 == ps_enc_ctxt->ps_stat_prms->s_tgt_lyr_prms.i4_mres_single_out) in ihevce_ent_coding_thrd()
213 if(1 == ps_enc_ctxt->s_multi_thrd.pi4_active_res_id[i4_resolution_id]) in ihevce_ent_coding_thrd()
[all …]
Dihevce_frame_process.h79 enc_ctxt_t *ps_enc_ctxt,
85 enc_ctxt_t *ps_enc_ctxt,
93 enc_ctxt_t *ps_enc_ctxt,
104 enc_ctxt_t *ps_enc_ctxt,
114 void ihevce_set_pre_enc_prms(enc_ctxt_t *ps_enc_ctxt);
Dihevce_frame_process_utils.c336 enc_ctxt_t *ps_enc_ctxt, in ihevce_fill_sei_payload() argument
347 (void)ps_enc_ctxt; in ihevce_fill_sei_payload()
416 enc_ctxt_t *ps_enc_ctxt = in ihevce_dyn_bitrate() local
420 if(ps_enc_ctxt->ps_stat_prms->i4_log_dump_level > 0) in ihevce_dyn_bitrate()
434 osal_mutex_lock(ps_enc_ctxt->pv_rc_mutex_lock_hdl); in ihevce_dyn_bitrate()
437 ps_enc_ctxt->s_module_ctxt.apv_rc_ctxt[ps_dyn_bitrate_prms->i4_tgt_br_id], in ihevce_dyn_bitrate()
442 osal_mutex_unlock(ps_enc_ctxt->pv_rc_mutex_lock_hdl); in ihevce_dyn_bitrate()
Dihevce_memory_init.h66 void ihevce_mem_manager_init(enc_ctxt_t *ps_enc_ctxt, ihevce_hle_ctxt_t *ps_intrf_ctxt);
69 enc_ctxt_t *ps_enc_ctxt,
76 void ihevce_mem_manager_free(enc_ctxt_t *ps_enc_ctxt, ihevce_hle_ctxt_t *ps_intrf_ctxt);
Dihevce_encode_header.h101 enc_ctxt_t *ps_enc_ctxt,
111 enc_ctxt_t *ps_enc_ctxt,
Dihevce_tile_interface.c445 enc_ctxt_t *ps_enc_ctxt, in ihevce_tiles_mem_init() argument
458 frm_ctb_ctxt_t *ps_frm_ctb_prms = &ps_enc_ctxt->s_frm_ctb_prms; in ihevce_tiles_mem_init()
495 ps_enc_ctxt->ai4_column_width_array[i4_i] = in ihevce_tiles_mem_init()
500 ps_enc_ctxt->ai4_row_height_array[i4_i] = in ihevce_tiles_mem_init()
Dihevce_frame_process_utils.h80 enc_ctxt_t *ps_enc_ctxt,
Dihevce_tile_interface.h65 enc_ctxt_t *ps_enc_ctxt,
Dihevce_enc_loop_pass.c5872 enc_ctxt_t *ps_enc_ctxt, in ihevce_enc_loop_frame_init() argument
5926 ps_ctxt->i4_chroma_format = ps_enc_ctxt->ps_stat_prms->s_src_prms.i4_chr_format; in ihevce_enc_loop_frame_init()
5932 if(1 == ps_enc_ctxt->s_multi_thrd.i4_num_enc_loop_frm_pllel) in ihevce_enc_loop_frame_init()
5945 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5948 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5950 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5953 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5955 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5958 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
5960 ps_enc_ctxt->s_multi_thrd in ihevce_enc_loop_frame_init()
[all …]
Dihevce_enc_loop_pass.h111 enc_ctxt_t *ps_enc_ctxt,
Dihevce_encode_header.c1992 enc_ctxt_t *ps_enc_ctxt, in ihevce_populate_vps() argument
2126 if(ps_enc_ctxt->i4_blu_ray_spec == 1) in ihevce_populate_vps()
2168 if(ps_enc_ctxt->i4_blu_ray_spec == 1) in ihevce_populate_vps()
2276 enc_ctxt_t *ps_enc_ctxt, in ihevce_populate_sps() argument
2488 if(ps_enc_ctxt->i4_blu_ray_spec == 1) in ihevce_populate_sps()
2599 if(ps_enc_ctxt->i4_blu_ray_spec == 1) in ihevce_populate_sps()