Home | History | Annotate | Download | only in encoder

Lines Matching refs:res_ctr

656     WORD32 res_ctr,
663 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
665 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
674 &ps_mres_output_data_buffs_desc->s_output_data_buffs[res_ctr][0],
675 &ps_mres_recon_data_buffs_desc->s_recon_data_buffs[res_ctr][0]);
683 if(0 == res_ctr)
724 WORD32 ctr, res_ctr;
781 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
783 i4_num_bit_rate_instances[res_ctr] =
784 ps_enc_ctxt_base->ps_stat_prms->s_tgt_lyr_prms.as_tgt_params[res_ctr]
792 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
794 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
807 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
811 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
920 for(i = 0; i < i4_num_bit_rate_instances[res_ctr]; i++)
955 for(i = 0; i < i4_num_bit_rate_instances[res_ctr]; i++)
966 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
968 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1067 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1069 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1101 for(i = 0; i < i4_num_bit_rate_instances[res_ctr]; i++)
1227 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1233 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1236 ps_enc_ctxt_base->ps_stat_prms->s_tgt_lyr_prms.as_tgt_params[res_ctr]
1252 aps_entropy_thrd_ctxt[res_ctr][ctr] = (frm_proc_thrd_ctxt_t *)s_memtab.pv_base;
1255 aps_entropy_thrd_ctxt[res_ctr][ctr]->i4_thrd_id = ctr;
1256 aps_entropy_thrd_ctxt[res_ctr][ctr]->ps_hle_ctxt = ps_hle_ctxt;
1257 aps_entropy_thrd_ctxt[res_ctr][ctr]->pv_enc_ctxt = (void *)ps_enc_ctxt;
1268 (void *)(aps_entropy_thrd_ctxt[res_ctr]
1283 apv_entropy_thrd_hdls[res_ctr][ctr] =
1285 if(NULL == apv_entropy_thrd_hdls[res_ctr][ctr])
1295 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1300 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1304 for(i4_loop_count = 0; i4_loop_count < res_ctr; i4_loop_count++)
1344 aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr] = (frm_proc_thrd_ctxt_t *)s_memtab.pv_base;
1347 aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->i4_thrd_id = ctr;
1349 aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->ps_hle_ctxt = ps_hle_ctxt;
1351 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1353 aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->pv_enc_ctxt = (void *)ps_enc_ctxt;
1363 s_thread_attr.thread_param = (void *)(aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr]);
1396 apv_enc_frm_proc_hdls[res_ctr][ctr] =
1398 if(NULL == apv_enc_frm_proc_hdls[res_ctr][ctr])
1409 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1414 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1418 for(i4_loop_count = 0; i4_loop_count < res_ctr; i4_loop_count++)
1462 aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr] = (frm_proc_thrd_ctxt_t *)s_memtab.pv_base;
1465 aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->i4_thrd_id = ctr;
1467 aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->ps_hle_ctxt = ps_hle_ctxt;
1468 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1469 aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr]->pv_enc_ctxt = (void *)ps_enc_ctxt;
1479 s_thread_attr.thread_param = (void *)(aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr]);
1518 apv_pre_enc_frm_proc_hdls[res_ctr][ctr] =
1520 if(NULL == apv_pre_enc_frm_proc_hdls[res_ctr][ctr])
1538 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1540 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1545 osal_thread_wait(apv_pre_enc_frm_proc_hdls[res_ctr][ctr]);
1548 osal_thread_destroy(apv_pre_enc_frm_proc_hdls[res_ctr][ctr]);
1552 s_memtab.pv_base = (void *)aps_pre_enc_frm_proc_thrd_ctxt[res_ctr][ctr];
1562 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1564 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
1569 osal_thread_wait(apv_enc_frm_proc_hdls[res_ctr][ctr]);
1572 osal_thread_destroy(apv_enc_frm_proc_hdls[res_ctr][ctr]);
1576 s_memtab.pv_base = (void *)aps_enc_frm_proc_thrd_ctxt[res_ctr][ctr];
1586 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
1589 ps_enc_ctxt_base->ps_stat_prms->s_tgt_lyr_prms.as_tgt_params[res_ctr]
1595 osal_thread_wait(apv_entropy_thrd_hdls[res_ctr][ctr]);
1598 osal_thread_destroy(apv_entropy_thrd_hdls[res_ctr][ctr]);
1604 s_memtab.pv_base = (void *)aps_entropy_thrd_ctxt[res_ctr][ctr];
2039 WORD32 ctr = 0, i, res_ctr, i4_num_resolutions;
2050 for(res_ctr = 0; res_ctr < i4_num_resolutions && ps_hle_ctxt->apv_enc_hdl[res_ctr]; res_ctr++)
2052 ps_enc_ctxt = (enc_ctxt_t *)ps_hle_ctxt->apv_enc_hdl[res_ctr];
2054 if(res_ctr == 0)
2074 for(i = 0; i < ps_hle_ctxt->ps_static_cfg_prms->s_tgt_lyr_prms.as_tgt_params[res_ctr]
2188 if(res_ctr == 0)
2215 (res_ctr == 0))
2225 if(res_ctr == (i4_num_resolutions - 1))
2246 ps_hle_ctxt->apv_enc_hdl[res_ctr] = NULL;
2250 for(res_ctr = 0; res_ctr < i4_num_resolutions; res_ctr++)
2254 PROFILE_END(&ps_hle_ctxt->profile_pre_enc[res_ctr], "pre enc process");
2255 for(i4_br_id = 0; i4_br_id < ai4_num_bitrate_instances[res_ctr]; i4_br_id++)
2257 PROFILE_END(&ps_hle_ctxt->profile_enc[res_ctr][i4_br_id], "enc process");
2258 PROFILE_END(&ps_hle_ctxt->profile_entropy[res_ctr][i4_br_id], "entropy process");