Lines Matching refs:ps_dpb_mgr
87 void ih264_dpb_mgr_init(dpb_mgr_t *ps_dpb_mgr) in ih264_dpb_mgr_init() argument
90 dpb_info_t *ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ih264_dpb_mgr_init()
95 ps_dpb_mgr->as_top_field_pics[i].i4_used_as_ref = INVALID; in ih264_dpb_mgr_init()
96 ps_dpb_mgr->as_bottom_field_pics[i].i4_used_as_ref = INVALID; in ih264_dpb_mgr_init()
97 ps_dpb_mgr->as_top_field_pics[i].i1_field_type = INVALID; in ih264_dpb_mgr_init()
98 ps_dpb_mgr->as_bottom_field_pics[i].i1_field_type = INVALID; in ih264_dpb_mgr_init()
99 ps_dpb_mgr->as_top_field_pics[i].i4_long_term_frame_idx = -1; in ih264_dpb_mgr_init()
100 ps_dpb_mgr->as_bottom_field_pics[i].i4_long_term_frame_idx = -1; in ih264_dpb_mgr_init()
103 ps_dpb_mgr->u1_num_short_term_ref_bufs = 0; in ih264_dpb_mgr_init()
104 ps_dpb_mgr->u1_num_long_term_ref_bufs = 0; in ih264_dpb_mgr_init()
105 ps_dpb_mgr->ps_dpb_short_term_head = NULL; in ih264_dpb_mgr_init()
106 ps_dpb_mgr->ps_dpb_long_term_head = NULL; in ih264_dpb_mgr_init()
138 WORD32 ih264_dpb_mgr_sort_short_term_fields_by_frame_num(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() argument
143 dpb_info_t *ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num()
177 ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num()
227 WORD32 ih264_dpb_mgr_sort_short_term_fields_by_poc_l0(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_sort_short_term_fields_by_poc_l0() argument
231 dpb_info_t *ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_poc_l0()
266 ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_poc_l0()
316 WORD32 ih264_dpb_mgr_sort_short_term_fields_by_poc_l1(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_sort_short_term_fields_by_poc_l1() argument
320 dpb_info_t *ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_poc_l1()
355 ps_dpb_node1 = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_sort_short_term_fields_by_poc_l1()
400 WORD32 ih264_dpb_mgr_sort_long_term_fields_by_frame_idx(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_sort_long_term_fields_by_frame_idx() argument
403 dpb_info_t *ps_dpb_node1 = ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_sort_long_term_fields_by_frame_idx()
433 ps_dpb_node1 = ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_sort_long_term_fields_by_frame_idx()
482 WORD32 ih264_dpb_mgr_alternate_ref_fields(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_alternate_ref_fields() argument
499 ps_dpb_mgr->ps_dpb_short_term_head: in ih264_dpb_mgr_alternate_ref_fields()
500 ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_alternate_ref_fields()
541 ps_dpb_mgr->ps_dpb_short_term_head = ps_dpb_head->ps_prev_dpb; in ih264_dpb_mgr_alternate_ref_fields()
545 ps_dpb_mgr->ps_dpb_long_term_head = ps_dpb_head->ps_prev_dpb; in ih264_dpb_mgr_alternate_ref_fields()
586 WORD32 ih264_dpb_mgr_insert_ref_field(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_insert_ref_field() argument
596 ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ih264_dpb_mgr_insert_ref_field()
622 ?ps_dpb_mgr->ps_dpb_short_term_head in ih264_dpb_mgr_insert_ref_field()
623 :ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_insert_ref_field()
638 ps_dpb_mgr->ps_dpb_short_term_head = ps_dpb_info + i; in ih264_dpb_mgr_insert_ref_field()
641 ps_dpb_mgr->u1_num_short_term_ref_bufs++; in ih264_dpb_mgr_insert_ref_field()
646 ps_dpb_mgr->ps_dpb_long_term_head = ps_dpb_info + i; in ih264_dpb_mgr_insert_ref_field()
649 ps_dpb_mgr->u1_num_long_term_ref_bufs++; in ih264_dpb_mgr_insert_ref_field()
688 WORD32 ih264_dpb_mgr_insert_ref_frame(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_insert_ref_frame() argument
705 ps_pic_bottom = &ps_dpb_mgr->as_bottom_field_pics[buf_id]; in ih264_dpb_mgr_insert_ref_frame()
708 ret = ih264_dpb_mgr_insert_ref_field(ps_dpb_mgr, in ih264_dpb_mgr_insert_ref_frame()
718 ret = ih264_dpb_mgr_insert_ref_field(ps_dpb_mgr, in ih264_dpb_mgr_insert_ref_frame()
756 WORD32 ih264_dpb_mgr_count_ref_frames(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_count_ref_frames() argument
770 if(ps_dpb_mgr->ps_dpb_short_term_head != NULL) in ih264_dpb_mgr_count_ref_frames()
773 ih264_dpb_mgr_sort_short_term_fields_by_frame_num(ps_dpb_mgr, in ih264_dpb_mgr_count_ref_frames()
778 ps_dpb_node = ps_dpb_mgr->ps_dpb_short_term_head; in ih264_dpb_mgr_count_ref_frames()
800 if(ps_dpb_mgr->ps_dpb_long_term_head != NULL) in ih264_dpb_mgr_count_ref_frames()
802 ih264_dpb_mgr_sort_long_term_fields_by_frame_idx(ps_dpb_mgr, in ih264_dpb_mgr_count_ref_frames()
805 ps_dpb_node = ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_count_ref_frames()
849 WORD32 ih264_dpb_mgr_delete_ref_frame(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_delete_ref_frame() argument
863 ?ps_dpb_mgr->ps_dpb_short_term_head in ih264_dpb_mgr_delete_ref_frame()
864 :ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_delete_ref_frame()
878 ps_dpb_mgr->ps_dpb_short_term_head = NULL; in ih264_dpb_mgr_delete_ref_frame()
881 ps_dpb_mgr->u1_num_short_term_ref_bufs = 0; in ih264_dpb_mgr_delete_ref_frame()
886 ps_dpb_mgr->ps_dpb_long_term_head = NULL; in ih264_dpb_mgr_delete_ref_frame()
889 ps_dpb_mgr->u1_num_long_term_ref_bufs = 0; in ih264_dpb_mgr_delete_ref_frame()
911 ps_dpb_mgr->ps_dpb_short_term_head = NULL; in ih264_dpb_mgr_delete_ref_frame()
914 ps_dpb_mgr->u1_num_short_term_ref_bufs = 0; in ih264_dpb_mgr_delete_ref_frame()
919 ps_dpb_mgr->ps_dpb_long_term_head = NULL; in ih264_dpb_mgr_delete_ref_frame()
922 ps_dpb_mgr->u1_num_long_term_ref_bufs = 0; in ih264_dpb_mgr_delete_ref_frame()
982 WORD32 ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx() argument
990 while(ps_dpb_mgr->ps_dpb_long_term_head != NULL) in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
992 if(ps_dpb_mgr->ps_dpb_long_term_head->ps_pic_buf->i4_long_term_frame_idx in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
997 ps_dpb_mgr->ps_dpb_long_term_head->ps_pic_buf->i4_used_as_ref = UNUSED_FOR_REF; in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
998 ps_dpb_mgr->ps_dpb_long_term_head->ps_pic_buf = NULL; in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
999 ps_dpb_mgr->ps_dpb_long_term_head = ps_dpb_mgr->ps_dpb_long_term_head->ps_prev_dpb; in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
1002 ps_dpb_node1 = ps_dpb_mgr->ps_dpb_long_term_head; in ih264_dpb_mgr_delete_long_ref_fields_max_frame_idx()
1052 WORD32 ih264_dpb_mgr_delete_short_ref_frame(dpb_mgr_t *ps_dpb_mgr, in ih264_dpb_mgr_delete_short_ref_frame() argument
1058 ret = ih264_dpb_mgr_sort_short_term_fields_by_frame_num(ps_dpb_mgr, in ih264_dpb_mgr_delete_short_ref_frame()
1064 ret = ih264_dpb_mgr_delete_ref_frame(ps_dpb_mgr,SHORT_TERM_REF); in ih264_dpb_mgr_delete_short_ref_frame()
1093 WORD32 ih264_dpb_mgr_delete_all_ref_frames(dpb_mgr_t *ps_dpb_mgr) in ih264_dpb_mgr_delete_all_ref_frames() argument
1096 while(ps_dpb_mgr->ps_dpb_short_term_head != NULL) in ih264_dpb_mgr_delete_all_ref_frames()
1098 ih264_dpb_mgr_delete_ref_frame(ps_dpb_mgr,SHORT_TERM_REF); in ih264_dpb_mgr_delete_all_ref_frames()
1102 while(ps_dpb_mgr->ps_dpb_long_term_head != NULL) in ih264_dpb_mgr_delete_all_ref_frames()
1104 ih264_dpb_mgr_delete_ref_frame(ps_dpb_mgr,LONG_TERM_REF); in ih264_dpb_mgr_delete_all_ref_frames()
1110 void ih264_dpb_mgr_reset(dpb_mgr_t *ps_dpb_mgr, buf_mgr_t *ps_buf_mgr) in ih264_dpb_mgr_reset() argument
1117 ps_dpb_info = ps_dpb_mgr->as_dpb_info; in ih264_dpb_mgr_reset()
1132 ps_dpb_mgr->u1_num_short_term_ref_bufs = 0; in ih264_dpb_mgr_reset()
1133 ps_dpb_mgr->u1_num_long_term_ref_bufs = 0; in ih264_dpb_mgr_reset()
1134 ps_dpb_mgr->ps_dpb_short_term_head = NULL; in ih264_dpb_mgr_reset()
1135 ps_dpb_mgr->ps_dpb_long_term_head = NULL; in ih264_dpb_mgr_reset()