/external/libavc/common/ |
D | ih264_dpb_mgr.c | 94 ps_dpb_info[i].ps_pic_buf = NULL; in ih264_dpb_mgr_init() 147 pic_buf_t *ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() local 156 frame_num_node1 = ps_dpb_node1->ps_pic_buf->i4_frame_num; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 157 frame_num_node2 = ps_dpb_node2->ps_pic_buf->i4_frame_num; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 166 ps_pic_buf = ps_dpb_node1->ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 167 ps_dpb_node1->ps_pic_buf = ps_dpb_node2->ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 168 ps_dpb_node2->ps_pic_buf = ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 181 pic_buf_t *ps_pic_node1 = ps_dpb_node1->ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 182 pic_buf_t *ps_pic_node2 = ps_dpb_node2->ps_pic_buf; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() 190 ps_dpb_node1->ps_pic_buf = ps_pic_node2; in ih264_dpb_mgr_sort_short_term_fields_by_frame_num() [all …]
|
D | ih264_dpb_mgr.h | 64 pic_buf_t *ps_pic_buf; member 120 pic_buf_t *ps_pic_buf, 139 pic_buf_t *ps_pic_buf,
|
/external/libhevc/common/ |
D | ihevc_dpb_mgr.c | 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() [all …]
|
D | ihevc_dpb_mgr.h | 61 pic_buf_t *ps_pic_buf; member 92 pic_buf_t *ps_pic_buf,
|
/external/libhevc/decoder/ |
D | ihevcd_ref_list.c | 101 pic_buf_t *ps_pic_buf; in ihevcd_ref_list() local 315 if(ps_dpb_mgr->as_dpb_info[i].ps_pic_buf) in ihevcd_ref_list() 316 ps_dpb_mgr->as_dpb_info[i].ps_pic_buf->u1_used_as_ref = UNUSED_FOR_REF; in ihevcd_ref_list() 324 ps_pic_buf = ihevc_dpb_mgr_get_ref_by_poc_lsb(ps_dpb_mgr, ai4_poc_lt_curr[i]); in ihevcd_ref_list() 325 if(NULL != ps_pic_buf) in ihevcd_ref_list() 326 ps_pic_buf->u1_used_as_ref = LONG_TERM_REF; in ihevcd_ref_list() 328 as_ref_pic_lt_curr[i] = ps_pic_buf; in ihevcd_ref_list() 332 ps_pic_buf = ihevc_dpb_mgr_get_ref_by_poc(ps_dpb_mgr, ai4_poc_lt_curr[i]); in ihevcd_ref_list() 333 if(NULL != ps_pic_buf) in ihevcd_ref_list() 334 ps_pic_buf->u1_used_as_ref = LONG_TERM_REF; in ihevcd_ref_list() [all …]
|
D | ihevcd_utils.c | 460 pic_buf_t *ps_pic_buf; in ihevcd_pic_buf_mgr_add_bufs() local 484 ps_pic_buf = (pic_buf_t *)ps_codec->ps_pic_buf; in ihevcd_pic_buf_mgr_add_bufs() 515 ps_pic_buf->pu1_luma = pu1_buf + ps_codec->i4_strd * PAD_TOP + PAD_LEFT; in ihevcd_pic_buf_mgr_add_bufs() 518 ps_pic_buf->pu1_chroma = pu1_buf + ps_codec->i4_strd * (PAD_TOP / 2) + PAD_LEFT; in ihevcd_pic_buf_mgr_add_bufs() 521 buf_ret = ihevc_buf_mgr_add((buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps_pic_buf, i); in ihevcd_pic_buf_mgr_add_bufs() 529 ps_pic_buf++; in ihevcd_pic_buf_mgr_add_bufs() 541 ps_pic_buf = ihevc_buf_mgr_get_buf((buf_mgr_t *)ps_codec->pv_pic_buf_mgr, i); in ihevcd_pic_buf_mgr_add_bufs() 542 if((NULL == ps_pic_buf) || in ihevcd_pic_buf_mgr_add_bufs() 543 (NULL == ps_pic_buf->pu1_luma) || in ihevcd_pic_buf_mgr_add_bufs() 544 (NULL == ps_pic_buf->pu1_chroma)) in ihevcd_pic_buf_mgr_add_bufs() [all …]
|
D | ihevcd_mv_merge.c | 295 pic_buf_t *ps_pic_buf; in ihevcd_collocated_mvp() local 328 ps_pic_buf = (pic_buf_t *)((ps_ref_list[0][ref_idx_l0].pv_pic_buf)); in ihevcd_collocated_mvp() 329 cur_ref_poc = ps_pic_buf->i4_abs_poc; in ihevcd_collocated_mvp() 330 cur_ref_poc_lt = (ps_pic_buf->u1_used_as_ref == LONG_TERM_REF); in ihevcd_collocated_mvp() 374 ps_pic_buf = (pic_buf_t *)((ps_ref_list[1][ref_idx_l1].pv_pic_buf)); in ihevcd_collocated_mvp() 375 cur_ref_poc = ps_pic_buf->i4_abs_poc; in ihevcd_collocated_mvp() 376 cur_ref_poc_lt = (ps_pic_buf->u1_used_as_ref == LONG_TERM_REF); in ihevcd_collocated_mvp()
|
D | ihevcd_parse_slice_header.c | 874 if(ps_dpb_mgr->as_dpb_info[i].ps_pic_buf) in ihevcd_parse_slice_header() 876 pic_buf_t *ps_pic_buf = ps_dpb_mgr->as_dpb_info[i].ps_pic_buf; in ihevcd_parse_slice_header() local 880 …((dpb_mgr_t *)ps_codec->pv_dpb_mgr, (buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps_pic_buf->i4_abs_poc); in ihevcd_parse_slice_header() 885 if(ps_mv_buf && ps_mv_buf->i4_abs_poc == ps_pic_buf->i4_abs_poc) in ihevcd_parse_slice_header()
|
D | ihevcd_api.c | 1074 ps_codec->ps_pic_buf = (pic_buf_t *)ps_codec->pv_pic_buf_base; in ihevcd_init() 1076 memset(ps_codec->ps_pic_buf, 0, BUF_MGR_MAX_CNT * sizeof(pic_buf_t)); in ihevcd_init() 2163 pic_buf_t *ps_pic_buf; in ihevcd_set_display_frame() local 2171 ps_pic_buf = (pic_buf_t *)ps_codec->ps_pic_buf; in ihevcd_set_display_frame() 2192 ps_pic_buf->pu1_luma = pu1_buf; in ihevcd_set_display_frame() 2205 ps_pic_buf->pu1_chroma = pu1_buf; in ihevcd_set_display_frame() 2207 buf_ret = ihevc_buf_mgr_add((buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps_pic_buf, i); in ihevcd_set_display_frame() 2222 ps_pic_buf++; in ihevcd_set_display_frame()
|
D | ihevcd_structs.h | 1950 void *ps_pic_buf; member
|
/external/libmpeg2/decoder/ |
D | impeg2d_pic_proc.c | 361 pic_buf_t *ps_pic_buf; in impeg2d_pre_pic_dec_proc() local 364 … ps_pic_buf = impeg2_buf_mgr_get_next_free(ps_dec->pv_pic_buf_mg, &ps_dec->i4_cur_buf_id); in impeg2d_pre_pic_dec_proc() 366 if (NULL == ps_pic_buf) in impeg2d_pre_pic_dec_proc() 376 ps_pic_buf->u4_ts = ps_dec->u4_inp_ts; in impeg2d_pre_pic_dec_proc() 377 ps_pic_buf->e_pic_type = ps_dec->e_pic_type; in impeg2d_pre_pic_dec_proc() 378 ps_dec->ps_cur_pic = ps_pic_buf; in impeg2d_pre_pic_dec_proc() 379 ps_dec->s_cur_frm_buf.pu1_y = ps_pic_buf->pu1_y; in impeg2d_pre_pic_dec_proc() 380 ps_dec->s_cur_frm_buf.pu1_u = ps_pic_buf->pu1_u; in impeg2d_pre_pic_dec_proc() 381 ps_dec->s_cur_frm_buf.pu1_v = ps_pic_buf->pu1_v; in impeg2d_pre_pic_dec_proc() 403 pic_buf_t *ps_pic_buf; in impeg2d_pre_pic_dec_proc() local [all …]
|
D | impeg2d_api_main.c | 229 pic_buf_t *ps_pic_buf; in impeg2d_api_set_display_frame() local 230 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_set_display_frame() 234 ps_pic_buf->pu1_y = dec_disp_ip->s_disp_buffer[i].pu1_bufs[0]; in impeg2d_api_set_display_frame() 237 ps_pic_buf->pu1_u = dec_disp_ip->s_disp_buffer[i].pu1_bufs[1]; in impeg2d_api_set_display_frame() 238 ps_pic_buf->pu1_v = dec_disp_ip->s_disp_buffer[i].pu1_bufs[2]; in impeg2d_api_set_display_frame() 242 ps_pic_buf->pu1_u = ps_dec_state->pu1_chroma_ref_buf[i]; in impeg2d_api_set_display_frame() 243 ps_pic_buf->pu1_v = ps_dec_state->pu1_chroma_ref_buf[i] + in impeg2d_api_set_display_frame() 247 ps_pic_buf->i4_buf_id = i; in impeg2d_api_set_display_frame() 249 ps_pic_buf->u1_used_as_ref = 0; in impeg2d_api_set_display_frame() 251 ps_pic_buf->u4_ts = 0; in impeg2d_api_set_display_frame() [all …]
|
/external/libavc/decoder/ |
D | ih264d_dpb_mgr.c | 76 ps_dpb_info[i].ps_pic_buf = NULL; in ih264d_init_ref_bufs() 294 ps_mov_node->ps_pic_buf->u1_long_term_frm_idx = u4_lt_idx; in ih264d_insert_lt_node() 332 ps_mov_node->ps_pic_buf->u1_is_short = 0; in ih264d_insert_lt_node() 359 struct pic_buffer_t *ps_pic_buf, in ih264d_insert_st_node() argument 365 UWORD8 u1_picture_type = ps_pic_buf->u1_picturetype; in ih264d_insert_st_node() 369 if((ps_dpb_info[i].ps_pic_buf == ps_pic_buf) in ih264d_insert_st_node() 392 ps_dpb_info[i].ps_pic_buf = ps_pic_buf; in ih264d_insert_st_node() 398 ps_dpb_info[i].ps_pic_buf->i4_frame_num = u4_cur_pic_num; in ih264d_insert_st_node() 406 ps_pic_buf->u1_is_short = IS_SHORT_TERM; in ih264d_insert_st_node() 518 UWORD8 *pu1_src = ps_unmark_node->ps_pic_buf->pu1_col_zero_flag; in ih264d_delete_st_node_or_make_lt() [all …]
|
D | ih264d_dpb_manager.h | 71 struct pic_buffer_t *ps_pic_buf; /** Pointer to picture buffer structure */ member 135 struct pic_buffer_t *ps_pic_buf, 145 struct pic_buffer_t *ps_pic_buf,
|
D | ih264d_utils.c | 1397 i4_ref_frame_num = ps_next_dpb->ps_pic_buf->i4_frame_num; in ih264d_assign_pic_num() 1409 ps_next_dpb->ps_pic_buf->i4_pic_num = i4_pic_num; in ih264d_assign_pic_num() 1411 ps_next_dpb->ps_pic_buf->u1_long_term_frm_idx = MAX_REF_BUFS + 1; in ih264d_assign_pic_num() 1680 struct pic_buffer_t *ps_pic_buf; in ih264d_create_pic_buffers() local 1687 ps_pic_buf = ps_dec->ps_pic_buf_base; in ih264d_create_pic_buffers() 1739 ps_pic_buf->pu1_buf1 = (UWORD8 *)(pu1_luma) + u4_offset; in ih264d_create_pic_buffers() 1746 ps_pic_buf->pu1_buf2 = (UWORD8 *)(pu1_chroma) + u4_offset; in ih264d_create_pic_buffers() 1747 ps_pic_buf->pu1_buf3 = (UWORD8 *)(NULL) + u4_offset; in ih264d_create_pic_buffers() 1754 ps_pic_buf->pu1_buf1 = (UWORD8 *)ps_dec->disp_bufs[i].buf[0] in ih264d_create_pic_buffers() 1766 ps_pic_buf->pu1_buf2 = (UWORD8 *)(pu1_chroma) + u4_offset; in ih264d_create_pic_buffers() [all …]
|
D | ih264d_process_bslice.c | 1242 i_ref_poc = ps_next_dpb->ps_pic_buf->i4_poc; in ih264d_init_ref_idx_lx_b() 1297 if((WORD32)ps_next_dpb->ps_pic_buf->i4_poc == i_temp_poc) in ih264d_init_ref_idx_lx_b() 1301 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() 1319 if((WORD32)ps_next_dpb->ps_pic_buf->i4_poc == i_temp_poc) in ih264d_init_ref_idx_lx_b() 1322 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() 1344 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() 1423 if((WORD32)ps_next_dpb->ps_pic_buf->i4_poc == i_temp_poc) in ih264d_init_ref_idx_lx_b() 1426 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() 1453 if((WORD32)ps_next_dpb->ps_pic_buf->i4_poc == i_temp_poc) in ih264d_init_ref_idx_lx_b() 1456 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() [all …]
|
D | ih264d_process_pslice.c | 1001 i4_ref_pic_num = ps_next_dpb->ps_pic_buf->i4_pic_num; in ih264d_init_ref_idx_lx_p() 1052 if((WORD32)ps_next_dpb->ps_pic_buf->i4_pic_num == i4_temp_pic_num) in ih264d_init_ref_idx_lx_p() 1056 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_p() 1077 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_p()
|
D | ih264d_api.c | 1781 pic_buffer_t *ps_pic_buf; in ih264d_video_decode() local 1782 ps_pic_buf = (pic_buffer_t *)ih264_buf_mgr_get_next_free( in ih264d_video_decode() 1785 if(ps_pic_buf == NULL) in ih264d_video_decode()
|
/external/libavc/encoder/ |
D | ih264e_encode.c | 481 pic_buf_t *ps_pic_buf = NULL; in ih264e_encode() local 503 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_encode() 508 ps_pic_buf = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_encode() 526 if (ps_pic_buf) in ih264e_encode() 530 ps_pic_buf, in ih264e_encode() 541 ps_pic_buf->i4_buf_id, BUF_MGR_IO); in ih264e_encode() 583 ps_cur_pic = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_encode() 623 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_encode()
|
D | ih264e_utils.c | 789 UWORD8 *pu1_buf = (UWORD8 *) ps_codec->ps_pic_buf; in ih264e_pic_buf_mgr_add_bufs() 790 pic_buf_t *ps_pic_buf = (pic_buf_t *) ps_codec->ps_pic_buf; in ih264e_pic_buf_mgr_add_bufs() local 819 ps_pic_buf->pu1_luma = pu1_buf + ps_codec->i4_rec_strd * PAD_TOP in ih264e_pic_buf_mgr_add_bufs() 823 ps_pic_buf->pu1_chroma = pu1_buf in ih264e_pic_buf_mgr_add_bufs() 828 ps_pic_buf, i); in ih264e_pic_buf_mgr_add_bufs() 836 ps_pic_buf++; in ih264e_pic_buf_mgr_add_bufs() 1602 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_pic_init() 1619 aps_ref_pic[1] = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_pic_init() 1627 aps_ref_pic[0] = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_pic_init() 1676 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_pic_init() [all …]
|
D | ih264e_structs.h | 667 pic_buf_t *ps_pic_buf; member 2178 void *ps_pic_buf; member
|
D | ih264e_api.c | 2573 ps_codec->ps_pic_buf = (pic_buf_t *) ps_codec->pv_pic_buf_base; in ih264e_init() 2574 memset(ps_codec->ps_pic_buf, 0, BUF_MGR_MAX_CNT * sizeof(pic_buf_t)); in ih264e_init()
|