Home
last modified time | relevance | path

Searched refs:slot_idx (Results 1 – 25 of 34) sorted by relevance

12

/rockchip-linux_mpp/mpp/codec/dec/avs2/
H A Davs2d_dpb.c108 f->slot_idx = NO_VAL; in new_frame()
190 if (p->slot_idx == NO_VAL) { in recompute_cycle_order_index()
217 if (p->slot_idx == NO_VAL) { in compute_frame_order_index()
256 if (p && p->slot_idx != NO_VAL && !p->invisible && !p->is_output) { in is_outputable_frame()
311 if (p->slot_idx >= 0 && !p->invisible && !p->is_output) { in output_display_frame()
315 mpp_buf_slot_set_flag(p_dec->frame_slots, p->slot_idx, SLOT_QUEUE_USE); in output_display_frame()
316 mpp_buf_slot_enqueue(p_dec->frame_slots, p->slot_idx, QUEUE_DISPLAY); in output_display_frame()
317 avs2d_dbg_dpb("output display frame poi %d slot_idx %d, pts %lld", p->poi, p->slot_idx, in output_display_frame()
341 mpp_buf_slot_get_prop(p_dec->frame_slots, p->slot_idx, SLOT_BUFFER, &buffer); in dpb_remove_frame()
345 mpp_buf_slot_clr_flag(p_dec->frame_slots, p->slot_idx, SLOT_CODEC_USE); in dpb_remove_frame()
[all …]
H A Davs2d_dpb.h31 Avs2dFrame_t* get_dpb_frm_by_slot_idx(Avs2dFrameMgr_t *mgr, RK_S32 slot_idx);
H A Davs2d_global.h297 RK_S32 slot_idx; member
/rockchip-linux_mpp/mpp/codec/dec/avs/
H A Davsd_parse.c349 p->slot_idx = -1; in reset_one_save()
379 if (p && p->slot_idx >= 0) { in set_frame_unref()
380 mpp_buf_slot_clr_flag(pdec->frame_slots, p->slot_idx, SLOT_CODEC_USE); in set_frame_unref()
390 if (p && p->slot_idx >= 0 && !p->had_display) { in set_frame_output()
391 mpp_buf_slot_set_flag(p_dec->frame_slots, p->slot_idx, SLOT_QUEUE_USE); in set_frame_output()
392 mpp_buf_slot_enqueue(p_dec->frame_slots, p->slot_idx, QUEUE_DISPLAY); in set_frame_output()
427 frm->slot_idx = -1; in avsd_reset_parameters()
442 RK_S32 slot_idx = -1; in avsd_set_dpb() local
446 mpp_buf_slot_get_unused(p_dec->frame_slots, &slot_idx); in avsd_set_dpb()
447 if (slot_idx < 0) { in avsd_set_dpb()
[all …]
H A Davsd_parse.h196 RK_S32 slot_idx; member
H A Davsd_api.c100 frm->slot_idx = -1; in avsd_init()
/rockchip-linux_mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c60 RK_S32 slot_idx; member
119 pp->wDecodedPictureIndex = hdr_curr->slot_idx; in h263d_fill_picture_parameters()
120 pp->wForwardRefPictureIndex = hdr_ref0->slot_idx; in h263d_fill_picture_parameters()
236 p->hdr_curr.slot_idx = H263_INVALID_VOP; in mpp_h263_parser_init()
237 p->hdr_ref0.slot_idx = H263_INVALID_VOP; in mpp_h263_parser_init()
269 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_flush()
290 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_reset()
296 hdr_curr->slot_idx = -1; in mpp_h263_parser_reset()
299 index = hdr_ref0->slot_idx; in mpp_h263_parser_reset()
302 hdr_ref0->slot_idx = -1; in mpp_h263_parser_reset()
[all …]
/rockchip-linux_mpp/mpp/codec/enc/h265/
H A Dh265e_dpb.h66 RK_S32 slot_idx; member
149 MPP_RET h265e_dpb_hal_start(H265eDpb *dpb, RK_S32 slot_idx);
150 MPP_RET h265e_dpb_hal_end(H265eDpb *dpb, RK_S32 slot_idx);
H A Dh265e_syntax.c355 sp->recon_pic.slot_idx = h->dpb->curr->slot_idx; in fill_ref_parameters()
360 sp->ref_pic.slot_idx = slice->m_refPicList[0][0]->prev_ref_idx; in fill_ref_parameters()
362 sp->ref_pic.slot_idx = ref_frame->slot_idx; in fill_ref_parameters()
364 sp->ref_pic.slot_idx = h->dpb->curr->slot_idx; in fill_ref_parameters()
H A Dh265e_dpb.c148 h265e_dbg_dpb("get free dpb slot_index %d", dpb->curr->slot_idx); in h265e_dpb_get_curr()
199 p->frame_list[i].slot_idx = i; in h265e_dpb_init()
700 …if ((cpb->curr.force_pskip_is_ref) && (frm->slot_idx == dpb->curr->slice->m_refPicList[0][0]->slot… in h265e_pskip_ref_check()
701 …bg_dpb("hold refr buf as skip frm recon buf, poc %d slot idx %d.", frm->slice->poc, frm->slot_idx); in h265e_pskip_ref_check()
705 …if ((cpb->refr.force_pskip_is_ref) && (frm->slot_idx == dpb->curr->slice->m_refPicList[0][0]->prev… in h265e_pskip_ref_check()
706 …bg_dpb("hold refr buf as skip frm recon buf, poc %d slot idx %d.", frm->slice->poc, frm->slot_idx); in h265e_pskip_ref_check()
931 MPP_RET h265e_dpb_hal_start(H265eDpb *dpb, RK_S32 slot_idx) in h265e_dpb_hal_start() argument
933 H265eDpbFrm *frm = &dpb->frame_list[slot_idx]; in h265e_dpb_hal_start()
940 MPP_RET h265e_dpb_hal_end(H265eDpb *dpb, RK_S32 slot_idx) in h265e_dpb_hal_end() argument
942 H265eDpbFrm *frm = &dpb->frame_list[slot_idx]; in h265e_dpb_hal_end()
H A Dh265e_api.c375 p->dpb->curr->prev_ref_idx = syntax->sp.recon_pic.slot_idx; in h265e_proc_enc_skip()
/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_dpb.h54 RK_S32 slot_idx; member
157 MPP_RET h264e_dpb_hal_start(H264eDpb *dpb, RK_S32 slot_idx);
158 MPP_RET h264e_dpb_hal_end(H264eDpb *dpb, RK_S32 slot_idx);
H A Dh264e_dpb.c115 dpb->frames[i].slot_idx = i; in h264e_dpb_init()
582 seq_idx, dpb->curr->slot_idx, dpb->refr->slot_idx); in h264e_dpb_proc()
651 curr->seq_idx, curr->lt_idx, tmp->slot_idx); in h264e_dpb_check()
735 MPP_RET h264e_dpb_hal_start(H264eDpb *dpb, RK_S32 slot_idx) in h264e_dpb_hal_start() argument
737 H264eDpbFrm *frm = &dpb->frames[slot_idx]; in h264e_dpb_hal_start()
744 MPP_RET h264e_dpb_hal_end(H264eDpb *dpb, RK_S32 slot_idx) in h264e_dpb_hal_end() argument
746 H264eDpbFrm *frm = &dpb->frames[slot_idx]; in h264e_dpb_hal_end()
H A Dh264e_api_v2.c423 if (temp_frm->slot_idx != frms->refr_idx) { in h264e_pskip_ref_check()
468 frms->curr_idx = curr->slot_idx; in h264e_proc_dpb()
474 frms->refr_idx = refr->slot_idx; in h264e_proc_dpb()
476 frms->refr_idx = curr->slot_idx; in h264e_proc_dpb()
/rockchip-linux_mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_parser.c144 RK_S32 slot_idx; member
441 header->slot_idx = -1; in init_mpg4_header()
857 (p->hdr_ref0.slot_idx == -1 || p->hdr_ref1.slot_idx == -1)) { in mpeg4_parse_vop_header()
957 pp->wDecodedPictureIndex = hdr_curr->slot_idx; in mpg4d_fill_picture_parameters()
958 pp->wForwardRefPictureIndex = hdr_ref0->slot_idx; in mpg4d_fill_picture_parameters()
959 pp->wBackwardRefPictureIndex = hdr_ref1->slot_idx; in mpg4d_fill_picture_parameters()
1126 RK_S32 index = hdr_ref0->slot_idx; in mpp_mpg4_parser_flush()
1147 RK_S32 index = hdr_ref0->slot_idx; in mpp_mpg4_parser_reset()
1158 hdr_ref0->slot_idx = -1; in mpp_mpg4_parser_reset()
1161 index = hdr_ref1->slot_idx; in mpp_mpg4_parser_reset()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_init.c408 mpp_buf_slot_get_unused(p_Vid->p_Dec->frame_slots, &p_mark[idx].slot_idx); in dpb_mark_malloc()
409 if (p_mark[idx].slot_idx < 0) { in dpb_mark_malloc()
572 … mpp_buf_slot_set_prop(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_FRAME, p_Dec->curframe); in dpb_mark_malloc()
573 … mpp_buf_slot_get_prop(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_FRAME_PTR, &cur_mark->mframe); in dpb_mark_malloc()
579 if (cur_mark->slot_idx < 0) { in dpb_mark_malloc()
593 cur_mark->slot_idx, dec_pic->slice_type, dec_pic->structure, in dpb_mark_malloc()
596 p_Vid->p_Dec->in_task->output = cur_mark->slot_idx; in dpb_mark_malloc()
597 mpp_buf_slot_set_flag(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_HAL_OUTPUT); in dpb_mark_malloc()
598 p_Dec->last_frame_slot_idx = cur_mark->slot_idx; in dpb_mark_malloc()
1479 … H264D_DBG(H264D_DBG_DPB_REF_ERR, "find short reference, slot_idx=%d.\n", tmp->mem_mark->slot_idx); in check_ref_pic_list()
[all …]
H A Dh264d_dpb.c643 && p_mark->out_flag == 0 && (p_mark->slot_idx >= 0)) { in free_dpb_mark()
644 mpp_buf_slot_clr_flag(p_Dec->frame_slots, p_mark->slot_idx, SLOT_CODEC_USE); in free_dpb_mark()
792 ASSERT(fs->top_field->mem_mark->slot_idx == fs->bottom_field->mem_mark->slot_idx); in dpb_combine_field_yuv()
855 mpp_buf_slot_get_prop(p_Vid->p_Dec->frame_slots, p_mark->slot_idx, SLOT_FRAME_PTR, &mframe); in write_picture()
889 … if (!match_mark || !match_mark->pic || !match_mark->out_flag || match_mark->slot_idx < 0) in write_picture()
911 i, match_mark->slot_idx, match_mark->pic->layer_id, match_mark->pic->poc); in write_picture()
916 i, match_mark->slot_idx, match_mark->pic->layer_id, match_mark->pic->poc); in write_picture()
928 … mpp_buf_slot_set_flag(p_Vid->p_Dec->frame_slots, out_mark_list[i]->slot_idx, SLOT_QUEUE_USE); in write_picture()
929 … mpp_buf_slot_enqueue(p_Vid->p_Dec->frame_slots, out_mark_list[i]->slot_idx, QUEUE_DISPLAY); in write_picture()
931 p_Vid->p_Dec->last_frame_slot_idx = out_mark_list[i]->slot_idx; in write_picture()
[all …]
/rockchip-linux_mpp/mpp/hal/rkdec/avs2d/
H A Dhal_avs2d_vdpu383.c437 … RK_S32 slot_idx = task_dec->refer[i] < 0 ? task_dec->refer[valid_slot] : task_dec->refer[i]; in fill_registers() local
439 if (slot_idx < 0) { in fill_registers()
445 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &frame_ref); in fill_registers()
448 regs->avs2d_addrs.reg170_185_ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers()
449 … regs->avs2d_addrs.reg195_210_payload_st_ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers()
450 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
458 RK_S32 slot_idx = p_hal->syntax.refp.scene_ref_slot_idx; in fill_registers() local
461 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &scene_ref); in fill_registers()
464 regs->avs2d_addrs.reg170_185_ref_base[replace_idx] = get_frame_fd(p_hal, slot_idx); in fill_registers()
466 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
H A Dhal_avs2d_rkv.c406 … RK_S32 slot_idx = task_dec->refer[i] < 0 ? task_dec->refer[valid_slot] : task_dec->refer[i]; in fill_registers() local
408 if (slot_idx < 0) { in fill_registers()
414 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &frame_ref); in fill_registers()
427 p_regs->avs2d_addr.ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers()
428 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
437 i, slot_idx, p_regs->avs2d_addr.ref_base[i], in fill_registers()
444 RK_S32 slot_idx = p_hal->syntax.refp.scene_ref_slot_idx; in fill_registers() local
447 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &scene_ref); in fill_registers()
450 p_regs->avs2d_addr.ref_base[replace_idx] = get_frame_fd(p_hal, slot_idx); in fill_registers()
451 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
H A Dhal_avs2d_vdpu382.c462 … RK_S32 slot_idx = task_dec->refer[i] < 0 ? task_dec->refer[valid_slot] : task_dec->refer[i]; in fill_registers() local
464 if (slot_idx < 0) { in fill_registers()
470 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &frame_ref); in fill_registers()
483 p_regs->avs2d_addr.ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers()
484 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
492 i, slot_idx, p_regs->avs2d_addr.ref_base[i], in fill_registers()
500 RK_S32 slot_idx = p_hal->syntax.refp.scene_ref_slot_idx; in fill_registers() local
502 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &scene_ref); in fill_registers()
505 p_regs->avs2d_addr.ref_base[replace_idx] = get_frame_fd(p_hal, slot_idx); in fill_registers()
506 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
/rockchip-linux_mpp/mpp/codec/dec/jpeg/
H A Djpegd_parser.c1057 RK_S32 slot_idx = ctx->frame_slot_index; in jpegd_allocate_frame() local
1059 if (slot_idx == -1) { in jpegd_allocate_frame()
1091 mpp_buf_slot_get_unused(slots, &slot_idx); in jpegd_allocate_frame()
1092 ctx->frame_slot_index = slot_idx; in jpegd_allocate_frame()
1093 jpegd_dbg_parser("frame_slot_index:%d\n", slot_idx); in jpegd_allocate_frame()
1099 if (mpp_buf_slot_set_prop(slots, slot_idx, SLOT_FRAME, output)) in jpegd_allocate_frame()
1101 mpp_buf_slot_set_flag(slots, slot_idx, SLOT_CODEC_USE); in jpegd_allocate_frame()
1102 mpp_buf_slot_set_flag(slots, slot_idx, SLOT_HAL_OUTPUT); in jpegd_allocate_frame()
/rockchip-linux_mpp/mpp/hal/rkdec/avsd/
H A Dhal_avsd_base.h97 RK_S32 slot_idx; member
/rockchip-linux_mpp/osal/driver/
H A Dmpp_server.c85 rk_s32 slot_idx; member
467 task->slot_idx, task->task_id); in process_task()
519 session->client, task->slot_idx, server->pending_count); in send_task()
722 task->slot_idx = i; in server_attach()
/rockchip-linux_mpp/mpp/common/
H A Dh265e_syntax_new.h24 RK_U8 slot_idx; member
/rockchip-linux_mpp/mpp/hal/rkenc/h265e/
H A Dhal_h265e_vepu511.c260 HalBuf *hal_buf = hal_bufs_get_buf(ctx->dpb_bufs, syn->sp.ref_pic.slot_idx); in vepu511_h265e_dump()
279 hal_buf = hal_bufs_get_buf(ctx->dpb_bufs, syn->sp.recon_pic.slot_idx); in vepu511_h265e_dump()
285 …e_len, "/mnt/sdcard/dump/recn_fbd_%d_frm%d_slot%d.bin", pid, frm_num, syn->sp.recon_pic.slot_idx); in vepu511_h265e_dump()
288 …e_len, "/mnt/sdcard/dump/recn_fbh_%d_frm%d_slot%d.bin", pid, frm_num, syn->sp.recon_pic.slot_idx); in vepu511_h265e_dump()
291 …e_len, "/mnt/sdcard/dump/recn_dsp_%d_frm%d_slot%d.bin", pid, frm_num, syn->sp.recon_pic.slot_idx); in vepu511_h265e_dump()
2767 frm_cfg->hal_curr_idx = ctx->syn->sp.recon_pic.slot_idx; in hal_h265e_vepu511_get_task()
2768 frm_cfg->hal_refr_idx = ctx->syn->sp.ref_pic.slot_idx; in hal_h265e_vepu511_get_task()

12