• Home
  • Raw
  • Download

Lines Matching refs:ps_dpb_mgr

75 void ihevc_dpb_mgr_init(dpb_mgr_t *ps_dpb_mgr)  in ihevc_dpb_mgr_init()  argument
78 dpb_info_t *ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ihevc_dpb_mgr_init()
86 ps_dpb_mgr->u1_num_ref_bufs = 0; in ihevc_dpb_mgr_init()
87 ps_dpb_mgr->ps_dpb_head = NULL; in ihevc_dpb_mgr_init()
119 WORD32 ihevc_dpb_mgr_insert_ref(dpb_mgr_t *ps_dpb_mgr, in ihevc_dpb_mgr_insert_ref() argument
126 ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ihevc_dpb_mgr_insert_ref()
155 ps_dpb_info[i].ps_prev_dpb = ps_dpb_mgr->ps_dpb_head; in ihevc_dpb_mgr_insert_ref()
160 ps_dpb_mgr->ps_dpb_head = ps_dpb_info + i; in ihevc_dpb_mgr_insert_ref()
163 ps_dpb_mgr->u1_num_ref_bufs++; in ihevc_dpb_mgr_insert_ref()
196 void ihevc_dpb_mgr_del_ref(dpb_mgr_t *ps_dpb_mgr, in ihevc_dpb_mgr_del_ref() argument
209 ps_next_dpb = ps_dpb_mgr->ps_dpb_head; in ihevc_dpb_mgr_del_ref()
216 for(i = 1; i < ps_dpb_mgr->u1_num_ref_bufs; i++) in ihevc_dpb_mgr_del_ref()
223 if(i == ps_dpb_mgr->u1_num_ref_bufs) in ihevc_dpb_mgr_del_ref()
231 if(ps_unmark_node == ps_dpb_mgr->ps_dpb_head) in ihevc_dpb_mgr_del_ref()
233 ps_dpb_mgr->ps_dpb_head = ps_unmark_node->ps_prev_dpb; in ihevc_dpb_mgr_del_ref()
240 ps_dpb_mgr->u1_num_ref_bufs--; //decrement buffer count in ihevc_dpb_mgr_del_ref()
275 pic_buf_t* ihevc_dpb_mgr_get_ref_by_nearest_poc(dpb_mgr_t *ps_dpb_mgr, WORD32 cur_abs_poc) in ihevc_dpb_mgr_get_ref_by_nearest_poc() argument
283 if((ps_dpb_mgr->as_dpb_info[i].ps_pic_buf) && in ihevc_dpb_mgr_get_ref_by_nearest_poc()
284 (ps_dpb_mgr->as_dpb_info[i].ps_pic_buf->u1_used_as_ref != UNUSED_FOR_REF)) in ihevc_dpb_mgr_get_ref_by_nearest_poc()
286 WORD32 poc_diff = cur_abs_poc - ps_dpb_mgr->as_dpb_info[i].ps_pic_buf->i4_abs_poc; in ihevc_dpb_mgr_get_ref_by_nearest_poc()
290 ps_pic_buf = ps_dpb_mgr->as_dpb_info[i].ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_nearest_poc()
300 if((ps_dpb_mgr->as_dpb_info[i].ps_pic_buf) && in ihevc_dpb_mgr_get_ref_by_nearest_poc()
301 … (ps_dpb_mgr->as_dpb_info[i].ps_pic_buf->u1_used_as_ref != UNUSED_FOR_REF)) in ihevc_dpb_mgr_get_ref_by_nearest_poc()
303 WORD32 poc_diff = cur_abs_poc - ps_dpb_mgr->as_dpb_info[i].ps_pic_buf->i4_abs_poc; in ihevc_dpb_mgr_get_ref_by_nearest_poc()
307 ps_pic_buf = ps_dpb_mgr->as_dpb_info[i].ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_nearest_poc()
342 pic_buf_t* ihevc_dpb_mgr_get_ref_by_poc(dpb_mgr_t *ps_dpb_mgr, WORD32 abs_poc) in ihevc_dpb_mgr_get_ref_by_poc() argument
349 ps_next_ref = ps_dpb_mgr->ps_dpb_head; in ihevc_dpb_mgr_get_ref_by_poc()
350 for(i = 0; i < ps_dpb_mgr->u1_num_ref_bufs; i++) in ihevc_dpb_mgr_get_ref_by_poc()
361 if(i == ps_dpb_mgr->u1_num_ref_bufs) in ihevc_dpb_mgr_get_ref_by_poc()
395 pic_buf_t* ihevc_dpb_mgr_get_ref_by_poc_lsb(dpb_mgr_t *ps_dpb_mgr, WORD32 poc_lsb) in ihevc_dpb_mgr_get_ref_by_poc_lsb() argument
401 ps_next_ref = ps_dpb_mgr->ps_dpb_head; in ihevc_dpb_mgr_get_ref_by_poc_lsb()
402 for(i = 0; i < ps_dpb_mgr->u1_num_ref_bufs; i++) in ihevc_dpb_mgr_get_ref_by_poc_lsb()
413 if(i == ps_dpb_mgr->u1_num_ref_bufs) in ihevc_dpb_mgr_get_ref_by_poc_lsb()
445 void ihevc_dpb_mgr_reset(dpb_mgr_t *ps_dpb_mgr, buf_mgr_t *ps_buf_mgr) in ihevc_dpb_mgr_reset() argument
450 ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ihevc_dpb_mgr_reset()
465 ps_dpb_mgr->u1_num_ref_bufs = 0; in ihevc_dpb_mgr_reset()
466 ps_dpb_mgr->ps_dpb_head = NULL; in ihevc_dpb_mgr_reset()