Lines Matching refs:i4_res_id
510 ihevce_strm_fill_done(void *pv_ctxt, void *pv_curr_out, WORD32 i4_br_id, WORD32 i4_res_id) in ihevce_strm_fill_done() argument
515 out_strm_prms_t *ps_out_strm_prms = &ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id]; in ihevce_strm_fill_done()
539 ps_app_ctxt->ai4_out_strm_end_flag[i4_res_id][i4_br_id] = end_flag; in ihevce_strm_fill_done()
545 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_timestamp_low = in ihevce_strm_fill_done()
547 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_timestamp_high = in ihevce_strm_fill_done()
549 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_bytes_gen = in ihevce_strm_fill_done()
551 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_is_key_frame = 0; in ihevce_strm_fill_done()
552 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_end_flag = end_flag; in ihevce_strm_fill_done()
557 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_is_key_frame = 1; in ihevce_strm_fill_done()
561 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][idx].i4_is_prod = 1; in ihevce_strm_fill_done()
640 if((0 == ps_params->i4_res_id) && (0 == ps_params->i4_br_id)) in ihevce_init()
819 WORD32 i4_res_id; in ihevce_init() local
845 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_init()
848 ai4_num_bitrate_instances[i4_res_id] = in ihevce_init()
849 ps_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[i4_res_id] in ihevce_init()
853 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_init()
855 s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id].i4_size = in ihevce_init()
908 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_init()
910 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_init()
912 buf_size = s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
915 ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].i4_size = in ihevce_init()
917 ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].i4_mem_alignment = 4; in ihevce_init()
921 ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].i4_mem_size = in ihevce_init()
922 (s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
929 ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].i4_mem_size = in ihevce_init()
930 (s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
934 ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].e_mem_type = in ihevce_init()
940 &ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id]); in ihevce_init()
943 (UWORD8 *)ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id].pv_base; in ihevce_init()
955 ctr < s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
959 apv_out_data_bufs[i4_res_id][i4_br_id][ctr] = pu1_tmp_buf; in ihevce_init()
966 s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
970 ps_ctxt->ai4_free_out_buf_idx[i4_res_id][i4_br_id] = 0; in ihevce_init()
981 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].i4_idx = ctr; in ihevce_init()
982 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].i4_is_free = 1; in ihevce_init()
983 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].i4_is_prod = 0; in ihevce_init()
984 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].i4_bytes_gen = 0; in ihevce_init()
985 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].pu1_buf = pu1_tmp_buf; in ihevce_init()
986 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ctr].i4_buf_size = buf_size; in ihevce_init()
992 ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_init()
994 if(NULL == ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_init()
1004 ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_init()
1007 if(NULL == ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_init()
1102 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_init()
1105 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_init()
1107 s_mres_out_desc.s_output_data_buffs[i4_res_id][i4_br_id].i4_size = in ihevce_init()
1112 s_mres_out_desc.s_output_data_buffs[i4_res_id][i4_br_id] in ihevce_init()
1114 s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
1120 s_mres_out_desc.s_output_data_buffs[i4_res_id][i4_br_id] in ihevce_init()
1122 s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
1126 s_mres_out_desc.s_output_data_buffs[i4_res_id][i4_br_id] in ihevce_init()
1128 s_res_layer_output_bufs_req.s_output_buf_req[i4_res_id][i4_br_id] in ihevce_init()
1130 … s_mres_out_desc.s_output_data_buffs[i4_res_id][i4_br_id].ppv_bitstream_bufs = in ihevce_init()
1131 &apv_out_data_bufs[i4_res_id][i4_br_id][0]; in ihevce_init()
1193 WORD32 i4_res_id; in ihevce_init() local
1195 for(i4_res_id = 0; i4_res_id < IHEVCE_MAX_NUM_RESOLUTIONS; i4_res_id++) in ihevce_init()
1200 ps_ctxt->ai4_out_end_flag[i4_res_id][i4_br_id] = 0; in ihevce_init()
1251 WORD32 i4_res_id, i4_br_id; in ihevce_receive_out_buffer() local
1256 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_receive_out_buffer()
1258 ai4_num_bitrate_instances[i4_res_id] = in ihevce_receive_out_buffer()
1259 ps_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[i4_res_id] in ihevce_receive_out_buffer()
1284 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_receive_out_buffer()
1286 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_receive_out_buffer()
1289 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ps_ctxt->i4_prod_out_buf_idx] in ihevce_receive_out_buffer()
1292 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ps_ctxt->i4_prod_out_buf_idx] in ihevce_receive_out_buffer()
1298 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_receive_out_buffer()
1300 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_receive_out_buffer()
1303 ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_receive_out_buffer()
1305 ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_receive_out_buffer()
1323 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_receive_out_buffer()
1325 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_receive_out_buffer()
1328 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][ps_ctxt->i4_prod_out_buf_idx] in ihevce_receive_out_buffer()
1330 if((0 == i4_res_id) && (0 == i4_br_id)) in ihevce_receive_out_buffer()
1411 ihevce_queue_out_buffer(plugin_ctxt_t *ps_ctxt, WORD32 i4_res_id, WORD32 i4_br_id) in ihevce_queue_out_buffer() argument
1420 if(0 == ps_ctxt->ai4_out_end_flag[i4_res_id][i4_br_id]) in ihevce_queue_out_buffer()
1427 free_idx = ps_ctxt->ai4_free_out_buf_idx[i4_res_id][i4_br_id]; in ihevce_queue_out_buffer()
1429 if(1 == ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_is_free) in ihevce_queue_out_buffer()
1433 ps_interface_ctxt, &buf_id_strm, BUFF_QUE_NON_BLOCKING_MODE, i4_br_id, i4_res_id); in ihevce_queue_out_buffer()
1439 osal_result = osal_mutex_lock(ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_queue_out_buffer()
1445 if(1 == ps_app_ctxt->ai4_out_strm_end_flag[i4_res_id][i4_br_id]) in ihevce_queue_out_buffer()
1448 ps_ctxt->ai4_out_end_flag[i4_res_id][i4_br_id] = 1; in ihevce_queue_out_buffer()
1454 ASSERT(ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_is_free == 1); in ihevce_queue_out_buffer()
1455 ASSERT(free_idx == ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_idx); in ihevce_queue_out_buffer()
1458 (void *)ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].pu1_buf; in ihevce_queue_out_buffer()
1460 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_idx; in ihevce_queue_out_buffer()
1461 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_is_free = 0; in ihevce_queue_out_buffer()
1462 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_is_prod = 0; in ihevce_queue_out_buffer()
1463 ps_ctxt->aaas_out_bufs[i4_res_id][i4_br_id][free_idx].i4_bytes_gen = 0; in ihevce_queue_out_buffer()
1465 ps_ctxt->ai4_free_out_buf_idx[i4_res_id][i4_br_id]++; in ihevce_queue_out_buffer()
1468 if(ps_ctxt->ai4_free_out_buf_idx[i4_res_id][i4_br_id] == ps_ctxt->i4_num_out_bufs) in ihevce_queue_out_buffer()
1470 ps_ctxt->ai4_free_out_buf_idx[i4_res_id][i4_br_id] = 0; in ihevce_queue_out_buffer()
1474 osal_result = osal_mutex_unlock(ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_queue_out_buffer()
1481 ps_interface_ctxt, buf_id_strm, i4_br_id, i4_res_id); in ihevce_queue_out_buffer()
1512 WORD32 i4_res_id; in ihevce_close() local
1526 if((0 == ps_ctxt->ps_static_cfg_prms->i4_res_id) && in ihevce_close()
1535 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_close()
1537 ai4_num_bitrate_instances[i4_res_id] = in ihevce_close()
1538 ps_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[i4_res_id] in ihevce_close()
1540 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_close()
1543 ihevce_queue_out_buffer(ps_ctxt, i4_res_id, i4_br_id); in ihevce_close()
1604 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_close()
1606 ai4_num_bitrate_instances[i4_res_id] = in ihevce_close()
1607 ps_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[i4_res_id] in ihevce_close()
1610 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_close()
1614 &ps_ctxt->as_memtab_out_data_buf[i4_res_id][i4_br_id]); in ihevce_close()
1617 osal_mutex_destroy(ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_close()
1620 osal_cond_var_destroy(ps_app_ctxt->as_out_strm_prms[i4_res_id][i4_br_id] in ihevce_close()
1848 if((0 == ps_ctxt->ps_static_cfg_prms->i4_res_id) && in ihevce_encode_header()
1898 WORD32 i4_res_id, i4_br_id; in ihevce_encode() local
1912 if((0 == ps_ctxt->ps_static_cfg_prms->i4_res_id) && in ihevce_encode()
1935 for(i4_res_id = 0; i4_res_id < i4_num_resolutions; i4_res_id++) in ihevce_encode()
1937 ai4_num_bitrate_instances[i4_res_id] = in ihevce_encode()
1938 ps_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[i4_res_id] in ihevce_encode()
1940 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[i4_res_id]; i4_br_id++) in ihevce_encode()
1943 ihevce_queue_out_buffer(ps_ctxt, i4_res_id, i4_br_id); in ihevce_encode()