Lines Matching refs:ps_pic_buf
82 ps_dpb_info[i].ps_pic_buf = NULL; in ihevc_dpb_mgr_init()
120 pic_buf_t *ps_pic_buf, in ihevc_dpb_mgr_insert_ref() argument
131 if((ps_dpb_info[i].ps_pic_buf == ps_pic_buf) in ihevc_dpb_mgr_insert_ref()
132 && (ps_dpb_info[i].ps_pic_buf->u1_used_as_ref)) in ihevc_dpb_mgr_insert_ref()
143 if(NULL == ps_dpb_info[i].ps_pic_buf) in ihevc_dpb_mgr_insert_ref()
154 ps_dpb_info[i].ps_pic_buf = ps_pic_buf; in ihevc_dpb_mgr_insert_ref()
156 ps_dpb_info[i].ps_pic_buf->u1_buf_id = buf_id; in ihevc_dpb_mgr_insert_ref()
157 ps_dpb_info[i].ps_pic_buf->u1_used_as_ref = SHORT_TERM_REF; in ihevc_dpb_mgr_insert_ref()
210 if(ps_next_dpb->ps_pic_buf->i4_abs_poc == i4_abs_poc) in ihevc_dpb_mgr_del_ref()
218 if(ps_next_dpb->ps_prev_dpb->ps_pic_buf->i4_abs_poc == i4_abs_poc) in ihevc_dpb_mgr_del_ref()
243 ihevc_buf_mgr_release((buf_mgr_t *)ps_buf_mgr, ps_unmark_node->ps_pic_buf->u1_buf_id, in ihevc_dpb_mgr_del_ref()
246 ps_unmark_node->ps_pic_buf = NULL; in ihevc_dpb_mgr_del_ref()
279 pic_buf_t *ps_pic_buf = NULL; in ihevc_dpb_mgr_get_ref_by_nearest_poc() local
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()
295 if(NULL == 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()
313 return ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_nearest_poc()
346 pic_buf_t *ps_pic_buf = NULL; in ihevc_dpb_mgr_get_ref_by_poc() local
352 if(ps_next_ref->ps_pic_buf->i4_abs_poc == abs_poc) in ihevc_dpb_mgr_get_ref_by_poc()
354 ps_pic_buf = ps_next_ref->ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_poc()
363 ps_pic_buf = NULL; in ihevc_dpb_mgr_get_ref_by_poc()
366 return ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_poc()
397 pic_buf_t *ps_pic_buf = NULL; in ihevc_dpb_mgr_get_ref_by_poc_lsb() local
404 if(ps_next_ref->ps_pic_buf->i4_poc_lsb == poc_lsb) in ihevc_dpb_mgr_get_ref_by_poc_lsb()
406 ps_pic_buf = ps_next_ref->ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_poc_lsb()
415 ps_pic_buf = NULL; in ihevc_dpb_mgr_get_ref_by_poc_lsb()
418 return ps_pic_buf; in ihevc_dpb_mgr_get_ref_by_poc_lsb()
454 if(ps_dpb_info[i].ps_pic_buf->u1_used_as_ref) in ihevc_dpb_mgr_reset()
456 ps_dpb_info[i].ps_pic_buf->u1_used_as_ref = UNUSED_FOR_REF; in ihevc_dpb_mgr_reset()
459 ihevc_buf_mgr_release(ps_buf_mgr, ps_dpb_info[i].ps_pic_buf->u1_buf_id, in ihevc_dpb_mgr_reset()
462 ps_dpb_info[i].ps_pic_buf = NULL; in ihevc_dpb_mgr_reset()