/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() 532 pu1_buf = ps_pic_buf->pu1_luma; in ihevcd_pic_buf_mgr_add_bufs() 539 pu1_buf = ps_pic_buf->pu1_luma; in ihevcd_pic_buf_mgr_add_bufs() 545 pu1_buf = ps_pic_buf->pu1_chroma; in ihevcd_pic_buf_mgr_add_bufs() 555 pu1_buf = ps_pic_buf->pu1_chroma; in ihevcd_pic_buf_mgr_add_bufs() 562 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() 570 ps_pic_buf++; 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 | 957 if(ps_dpb_mgr->as_dpb_info[i].ps_pic_buf) in ihevcd_parse_slice_header() 959 pic_buf_t *ps_pic_buf = ps_dpb_mgr->as_dpb_info[i].ps_pic_buf; in ihevcd_parse_slice_header() local 963 …((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() 968 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 | 1102 ps_codec->ps_pic_buf = (pic_buf_t *)ps_codec->pv_pic_buf_base; in ihevcd_init() 1104 memset(ps_codec->ps_pic_buf, 0, BUF_MGR_MAX_CNT * sizeof(pic_buf_t)); in ihevcd_init() 2308 pic_buf_t *ps_pic_buf; in ihevcd_set_display_frame() local 2316 ps_pic_buf = (pic_buf_t *)ps_codec->ps_pic_buf; in ihevcd_set_display_frame() 2338 ps_pic_buf->pu1_luma = pu1_buf; in ihevcd_set_display_frame() 2351 ps_pic_buf->pu1_chroma = pu1_buf; in ihevcd_set_display_frame() 2353 buf_ret = ihevc_buf_mgr_add((buf_mgr_t *)ps_codec->pv_pic_buf_mgr, ps_pic_buf, i); in ihevcd_set_display_frame() 2368 ps_pic_buf++; in ihevcd_set_display_frame()
|
D | ihevcd_structs.h | 1956 void *ps_pic_buf; member
|
/external/libmpeg2/decoder/ |
D | impeg2d_pic_proc.c | 363 pic_buf_t *ps_pic_buf; in impeg2d_pre_pic_dec_proc() local 366 … 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() 368 if (NULL == ps_pic_buf) in impeg2d_pre_pic_dec_proc() 378 ps_pic_buf->e_pic_type = ps_dec->e_pic_type; in impeg2d_pre_pic_dec_proc() 379 ps_dec->ps_cur_pic = ps_pic_buf; in impeg2d_pre_pic_dec_proc() 380 ps_dec->s_cur_frm_buf.pu1_y = ps_pic_buf->pu1_y; in impeg2d_pre_pic_dec_proc() 381 ps_dec->s_cur_frm_buf.pu1_u = ps_pic_buf->pu1_u; in impeg2d_pre_pic_dec_proc() 382 ps_dec->s_cur_frm_buf.pu1_v = ps_pic_buf->pu1_v; in impeg2d_pre_pic_dec_proc() 409 pic_buf_t *ps_pic_buf; in impeg2d_pre_pic_dec_proc() local 414 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() [all …]
|
D | impeg2d_api_main.c | 234 pic_buf_t *ps_pic_buf; in impeg2d_api_set_display_frame() local 235 ps_pic_buf = (pic_buf_t *)ps_dec_state->pv_pic_buf_base; in impeg2d_api_set_display_frame() 266 ps_pic_buf->pu1_y = dec_disp_ip->s_disp_buffer[i].pu1_bufs[0]; in impeg2d_api_set_display_frame() 269 ps_pic_buf->pu1_u = dec_disp_ip->s_disp_buffer[i].pu1_bufs[1]; in impeg2d_api_set_display_frame() 270 ps_pic_buf->pu1_v = dec_disp_ip->s_disp_buffer[i].pu1_bufs[2]; in impeg2d_api_set_display_frame() 274 ps_pic_buf->pu1_u = ps_dec_state->pu1_chroma_ref_buf[i]; in impeg2d_api_set_display_frame() 275 ps_pic_buf->pu1_v = ps_dec_state->pu1_chroma_ref_buf[i] + in impeg2d_api_set_display_frame() 279 ps_pic_buf->i4_buf_id = i; in impeg2d_api_set_display_frame() 281 ps_pic_buf->u1_used_as_ref = 0; in impeg2d_api_set_display_frame() 283 ps_pic_buf->u4_ts = 0; in impeg2d_api_set_display_frame() [all …]
|
/external/libavc/decoder/ |
D | ih264d_dpb_mgr.c | 79 ps_dpb_info[i].ps_pic_buf = NULL; in ih264d_init_ref_bufs() 300 ps_mov_node->ps_pic_buf->u1_long_term_frm_idx = u4_lt_idx; in ih264d_insert_lt_node() 338 ps_mov_node->ps_pic_buf->u1_is_short = 0; in ih264d_insert_lt_node() 365 struct pic_buffer_t *ps_pic_buf, in ih264d_insert_st_node() argument 371 UWORD8 u1_picture_type = ps_pic_buf->u1_picturetype; in ih264d_insert_st_node() 375 if((ps_dpb_info[i].ps_pic_buf == ps_pic_buf) in ih264d_insert_st_node() 379 if(ps_dpb_info[i].ps_pic_buf->u1_pic_type == FRM_PIC) in ih264d_insert_st_node() 406 ps_dpb_info[i].ps_pic_buf = ps_pic_buf; in ih264d_insert_st_node() 412 ps_dpb_info[i].ps_pic_buf->i4_frame_num = u4_cur_pic_num; in ih264d_insert_st_node() 420 ps_pic_buf->u1_is_short = IS_SHORT_TERM; in ih264d_insert_st_node() [all …]
|
D | ih264d_dpb_manager.h | 72 struct pic_buffer_t *ps_pic_buf; /** Pointer to picture buffer structure */ member 137 struct pic_buffer_t *ps_pic_buf, 147 struct pic_buffer_t *ps_pic_buf,
|
D | ih264d_utils.c | 1458 i4_ref_frame_num = ps_next_dpb->ps_pic_buf->i4_frame_num; in ih264d_assign_pic_num() 1470 ps_next_dpb->ps_pic_buf->i4_pic_num = i4_pic_num; in ih264d_assign_pic_num() 1472 ps_next_dpb->ps_pic_buf->u1_long_term_frm_idx = MAX_REF_BUFS + 1; in ih264d_assign_pic_num() 1751 struct pic_buffer_t *ps_pic_buf; in ih264d_create_pic_buffers() local 1758 ps_pic_buf = ps_dec->ps_pic_buf_base; in ih264d_create_pic_buffers() 1810 ps_pic_buf->pu1_buf1 = (UWORD8 *)(pu1_luma) + u4_offset; in ih264d_create_pic_buffers() 1817 ps_pic_buf->pu1_buf2 = (UWORD8 *)(pu1_chroma) + u4_offset; in ih264d_create_pic_buffers() 1818 ps_pic_buf->pu1_buf3 = (UWORD8 *)(NULL) + u4_offset; in ih264d_create_pic_buffers() 1825 ps_pic_buf->pu1_buf1 = (UWORD8 *)ps_dec->disp_bufs[i].buf[0] in ih264d_create_pic_buffers() 1837 ps_pic_buf->pu1_buf2 = (UWORD8 *)(pu1_chroma) + u4_offset; in ih264d_create_pic_buffers() [all …]
|
D | ih264d_process_pslice.c | 1019 i4_ref_pic_num = ps_next_dpb->ps_pic_buf->i4_pic_num; in ih264d_init_ref_idx_lx_p() 1034 aps_st_pic_bufs[j] = ps_next_dpb->ps_pic_buf; in ih264d_init_ref_idx_lx_p() 1097 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_p()
|
D | ih264d_process_bslice.c | 1261 i_ref_poc = ps_next_dpb->ps_pic_buf->i4_poc; in ih264d_init_ref_idx_lx_b() 1281 aps_st_pic_bufs[j] = ps_next_dpb->ps_pic_buf; in ih264d_init_ref_idx_lx_b() 1372 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b() 1484 ps_next_dpb->ps_pic_buf); in ih264d_init_ref_idx_lx_b()
|
D | ih264d_api.c | 2120 pic_buffer_t *ps_pic_buf; in ih264d_video_decode() local 2121 ps_pic_buf = (pic_buffer_t *)ih264_buf_mgr_get_next_free( in ih264d_video_decode() 2124 if(ps_pic_buf == NULL) in ih264d_video_decode()
|
/external/libavc/encoder/ |
D | ih264e_encode.c | 567 pic_buf_t *ps_pic_buf = NULL; in ih264e_encode() local 589 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_encode() 594 ps_pic_buf = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_encode() 612 if (ps_pic_buf) in ih264e_encode() 616 ps_pic_buf, in ih264e_encode() 627 ps_pic_buf->i4_buf_id, BUF_MGR_IO); in ih264e_encode() 669 ps_cur_pic = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_encode() 709 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_encode()
|
D | ih264e_utils.c | 801 UWORD8 *pu1_buf = (UWORD8 *) ps_codec->ps_pic_buf; in ih264e_pic_buf_mgr_add_bufs() 802 pic_buf_t *ps_pic_buf = (pic_buf_t *) ps_codec->ps_pic_buf; in ih264e_pic_buf_mgr_add_bufs() local 831 ps_pic_buf->pu1_luma = pu1_buf + ps_codec->i4_rec_strd * PAD_TOP in ih264e_pic_buf_mgr_add_bufs() 835 ps_pic_buf->pu1_chroma = pu1_buf in ih264e_pic_buf_mgr_add_bufs() 840 ps_pic_buf, i); in ih264e_pic_buf_mgr_add_bufs() 848 ps_pic_buf++; in ih264e_pic_buf_mgr_add_bufs() 1614 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_pic_init() 1631 aps_ref_pic[1] = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_pic_init() 1639 aps_ref_pic[0] = ps_codec->as_ref_set[i].ps_pic_buf; in ih264e_pic_init() 1688 ps_codec->as_ref_set[i].ps_pic_buf->i4_buf_id); in ih264e_pic_init() [all …]
|
D | ih264e_structs.h | 679 pic_buf_t *ps_pic_buf; member 2368 void *ps_pic_buf; member
|
D | ih264e_api.c | 3143 ps_codec->ps_pic_buf = (pic_buf_t *) ps_codec->pv_pic_buf_base; in ih264e_init() 3144 memset(ps_codec->ps_pic_buf, 0, BUF_MGR_MAX_CNT * sizeof(pic_buf_t)); in ih264e_init()
|