Home
last modified time | relevance | path

Searched refs:slot_index (Results 1 – 23 of 23) sorted by relevance

/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_refs.c40 if (!frame->frame || (frame->slot_index == 0xff)) in mpp_hevc_unref_frame()
47 if (frame->slot_index <= 0x7f) { in mpp_hevc_unref_frame()
48 h265d_dbg(H265D_DBG_REF, "poc %d clr ref index %d", frame->poc, frame->slot_index); in mpp_hevc_unref_frame()
49 mpp_buf_slot_clr_flag(s->slots, frame->slot_index, SLOT_CODEC_USE); in mpp_hevc_unref_frame()
51 …5d_dbg(H265D_DBG_REF, "unref_frame poc %d frame->slot_index %d \n", frame->poc, frame->slot_index); in mpp_hevc_unref_frame()
53 frame->slot_index = 0xff; in mpp_hevc_unref_frame()
90 if (frame->slot_index != 0xff) { in alloc_frame()
152 ret = mpp_buf_slot_get_unused(s->slots, &frame->slot_index); in alloc_frame()
170 if ((frame->slot_index != 0xff) && frame->sequence == s->seq_decode && in mpp_hevc_set_new_ref()
192 h265d_dbg(H265D_DBG_REF, "alloc frame poc %d slot_index %d", poc, ref->slot_index); in mpp_hevc_set_new_ref()
[all …]
H A Dh265d_parser2_syntax.c85 fill_picture_entry(&pp->CurrPic, current_picture->slot_index, 0); in fill_picture_parameters()
237 if (frame && (frame->slot_index != 0xff)) { in fill_picture_parameters()
238 …fill_picture_entry(&pp->RefPicList[i], frame->slot_index, !!(frame->flags & HEVC_FRAME_FLAG_LONG_R… in fill_picture_parameters()
240 mpp_buf_slot_set_flag(h->slots, frame->slot_index, SLOT_HAL_INPUT); in fill_picture_parameters()
241 h->task->refer[i] = frame->slot_index; in fill_picture_parameters()
257 pp->ref_list[i] = get_refpic_index(pp, frame->slot_index); \ in fill_picture_parameters()
H A Dh265d_parser.c1167 mpp_buf_slot_set_flag(s->slots, s->ref->slot_index, SLOT_QUEUE_USE); in mpp_hevc_out_dec_order()
1168 mpp_buf_slot_enqueue(s->slots, s->ref->slot_index, QUEUE_DISPLAY); in mpp_hevc_out_dec_order()
1220 mpp_buf_slot_set_flag(s->slots, frame->slot_index, SLOT_QUEUE_USE); in mpp_hevc_output_frame()
1221 mpp_buf_slot_enqueue(s->slots, frame->slot_index, QUEUE_DISPLAY); in mpp_hevc_output_frame()
1224 … "Output frame with POC %d frame->slot_index = %d\n", frame->poc, frame->slot_index); in mpp_hevc_output_frame()
1237 mpp_buf_slot_set_flag(s->slots, frame->slot_index, SLOT_QUEUE_USE); in mpp_hevc_output_frame()
1238 mpp_buf_slot_enqueue(s->slots, frame->slot_index, QUEUE_DISPLAY); in mpp_hevc_output_frame()
1241 frame_next_ready->poc, frame_next_ready->slot_index); in mpp_hevc_output_frame()
1331 mpp_buf_slot_set_prop(s->slots, s->ref->slot_index, SLOT_FRAME, s->ref->frame); in hevc_frame_start()
2171 s->DPB[i].slot_index = 0xff; in hevc_init_context()
[all …]
H A Dh265d_parser.h497 RK_S32 slot_index; member
/rockchip-linux_mpp/mpp/codec/dec/m2v/
H A Dm2vd_parser.c173 ctx->Framehead[i].slot_index = -1; in m2vd_parser_init_ctx()
318 if (p->frame_cur->slot_index >= 0) in m2vd_parser_reset()
319 mpp_buf_slot_clr_flag(p->frame_slots, p->frame_cur->slot_index, in m2vd_parser_reset()
322 if (p->frame_ref0->slot_index >= 0) { in m2vd_parser_reset()
324 mpp_buf_slot_set_flag(p->frame_slots, p->frame_ref0->slot_index, in m2vd_parser_reset()
326 mpp_buf_slot_enqueue(p->frame_slots, p->frame_ref0->slot_index, in m2vd_parser_reset()
330 mpp_buf_slot_clr_flag(p->frame_slots, p->frame_ref0->slot_index, in m2vd_parser_reset()
334 if (p->frame_ref1->slot_index >= 0) in m2vd_parser_reset()
335 mpp_buf_slot_clr_flag(p->frame_slots, p->frame_ref1->slot_index, in m2vd_parser_reset()
342 p->frame_cur->slot_index = -1; in m2vd_parser_reset()
[all …]
H A Dm2vd_parser.h120 RK_S32 slot_index; member
/rockchip-linux_mpp/mpp/codec/dec/dummy/
H A Ddummy_dec_api.c51 RK_S32 slot_index[DUMMY_DEC_REF_COUNT]; member
87 p->slot_index[i] = -1; in dummy_dec_init()
248 RK_S32 index = p->slot_index[i]; in dummy_dec_parse()
265 mpp_buf_slot_clr_flag(slots, p->slot_index[i], SLOT_CODEC_USE); in dummy_dec_parse()
266 p->slot_index[i] = -1; in dummy_dec_parse()
271 if (p->slot_index[replace_index] >= 0) in dummy_dec_parse()
272 mpp_buf_slot_clr_flag(slots, p->slot_index[replace_index], SLOT_CODEC_USE); in dummy_dec_parse()
274 p->slot_index[replace_index] = output; in dummy_dec_parse()
/rockchip-linux_mpp/mpp/codec/dec/vp8/
H A Dvp8d_parser.c257 || frame->slot_index >= 0x7f) { in vp8d_unref_frame()
265 if (frame->slot_index < 0x7f) { in vp8d_unref_frame()
268 mpp_buf_slot_get_prop(p->frame_slots, frame->slot_index, SLOT_BUFFER, &framebuf); in vp8d_unref_frame()
272 mpp_buf_slot_clr_flag(p->frame_slots, frame->slot_index, SLOT_CODEC_USE); in vp8d_unref_frame()
274 frame->slot_index = 0xff; in vp8d_unref_frame()
567 p->dxva_ctx->CurrPic.Index7Bits = p->frame_out->slot_index; in vp8d_convert_to_syntx()
571 pic_param->lst_fb_idx.Index7Bits = p->frame_ref->slot_index; in vp8d_convert_to_syntx()
572 mpp_buf_slot_set_flag(p->frame_slots, p->frame_ref->slot_index, in vp8d_convert_to_syntx()
574 in_task->refer[0] = p->frame_ref->slot_index; in vp8d_convert_to_syntx()
580 pic_param->gld_fb_idx.Index7Bits = p->frame_golden->slot_index; in vp8d_convert_to_syntx()
[all …]
H A Dvp8d_parser.h80 RK_S32 slot_index; member
/rockchip-linux_mpp/mpp/codec/dec/av1/
H A Dav1d_parser.c573 if (!f->ref || f->ref->ref_count <= 0 || f->slot_index >= 0x7f) { in av1d_frame_unref()
581 if (f->slot_index < 0x7f) { in av1d_frame_unref()
582 av1d_dbg(AV1D_DBG_REF, "clr f->slot_index = %d", f->slot_index); in av1d_frame_unref()
589 mpp_buf_slot_get_prop(s->slots, f->slot_index, SLOT_BUFFER, &framebuf); in av1d_frame_unref()
595 mpp_buf_slot_clr_flag(s->slots, f->slot_index, SLOT_CODEC_USE); in av1d_frame_unref()
597 f->slot_index = 0xff; in av1d_frame_unref()
615 mpp_buf_slot_get_prop(s->slots, s->cur_frame.slot_index, SLOT_FRAME_PTR, &frame); in set_output_frame()
624 mpp_buf_slot_set_flag(s->slots, s->cur_frame.slot_index, SLOT_QUEUE_USE); in set_output_frame()
625 mpp_buf_slot_enqueue(s->slots, s->cur_frame.slot_index, QUEUE_DISPLAY); in set_output_frame()
650 if (src->slot_index >= 0x7f) { in av1d_frame_ref()
[all …]
H A Dav1d_parser2_syntax.c34 pp->CurrPic.Index7Bits = h->cur_frame.slot_index; in av1d_fill_picparams()
35 pp->CurrPicTextureIndex = h->cur_frame.slot_index; in av1d_fill_picparams()
126 pp->frame_refs[i].Index = ref_frame->slot_index; in av1d_fill_picparams()
169 if (ref_frame->slot_index < 0x7f) in av1d_fill_picparams()
170 pp->RefFrameMapTextureIndex[i] = ref_frame->slot_index; in av1d_fill_picparams()
H A Dav1d_parser.h70 RK_S32 slot_index; member
H A Dav1d_cbs.c2064 ctx->ref[current->ref_frame_idx[current->primary_ref_frame]].slot_index, in mpp_av1_uncompressed_header()
/rockchip-linux_mpp/mpp/codec/dec/vp9/
H A Dvp9d_parser.c260 if (src->ref == NULL || src->slot_index >= 0x7f) { in vp9_ref_frame()
264 dst->slot_index = src->slot_index; in vp9_ref_frame()
269 mpp_buf_slot_get_prop(s->slots, src->slot_index, SLOT_FRAME, &dst->f); in vp9_ref_frame()
277 if (f->ref->ref_count <= 0 || f->slot_index >= 0x7f) { in vp9_unref_frame()
283 if (f->slot_index <= 0x7f) { in vp9_unref_frame()
287 mpp_buf_slot_get_prop(s->slots, f->slot_index, SLOT_BUFFER, &framebuf); in vp9_unref_frame()
291 mpp_buf_slot_clr_flag(s->slots, f->slot_index, SLOT_CODEC_USE); in vp9_unref_frame()
294 f->slot_index = 0xff; in vp9_unref_frame()
330 s->frames[i].slot_index = 0x7f; in vp9_frame_init()
341 s->refs[i].slot_index = 0x7f; in vp9_frame_init()
[all …]
H A Dvp9d_parser2_syntax.c100 pic->CurrPic.Index7Bits = s->frames[CUR_FRAME].slot_index; in vp9d_fill_picparams()
103 pic->ref_frame_map[i].Index7Bits = s->refs[i].slot_index; in vp9d_fill_picparams()
H A Dvp9d_parser.h97 RK_S32 slot_index; member
/rockchip-linux_mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_vdpu_com.c211 priv->new_dpb[i].slot_index = pp->RefFrameList[i].Index7Bits; in get_info_input()
279 fill_picture_entry(&pp->RefFrameList[i], old_dpb[i].slot_index, in refill_info_input()
371 find_flag = ((old_dpb[i].slot_index in adjust_input()
372 == new_dpb[j].slot_index) in adjust_input()
H A Dhal_h264d_vdpu_com.h36 RK_S32 slot_index; member
H A Dhal_h264d_vdpu1.c590 priv->ilt_dpb->slot_index, in vdpu1_set_asic_regs()
H A Dhal_h264d_vdpu2.c707 priv->ilt_dpb->slot_index, in set_asic_regs()
/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_init.c1505 RK_S32 slot_idx = p_Dec->dpb_info[pref[i].dpb_idx].slot_index; in check_ref_dbp_err()
1575 p->slot_index = -1; in reset_dpb_info()
1613 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ref[j]->frame->mem_mark->slot_idx; in prepare_init_dpb_info()
1622 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ref[j]->top_field->mem_mark->slot_idx; in prepare_init_dpb_info()
1629 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ref[j]->bottom_field->mem_mark->slot_idx; in prepare_init_dpb_info()
1662 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ltref[j]->frame->mem_mark->slot_idx; in prepare_init_dpb_info()
1671 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ltref[j]->top_field->mem_mark->slot_idx; in prepare_init_dpb_info()
1679 … p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ltref[j]->bottom_field->mem_mark->slot_idx; in prepare_init_dpb_info()
1708 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ilref[j]->frame->mem_mark->slot_idx; in prepare_init_dpb_info()
1727 p_Dec->dpb_info[i].slot_index = p_Dpb->fs_ilref[j]->frame->mem_mark->slot_idx; in prepare_init_dpb_info()
[all …]
H A Dh264d_fill.c113 … fill_picture_entry(&pp->RefFrameList[i], dpb_info[i].slot_index, dpb_info[i].is_long_term); in fill_picparams()
H A Dh264d_global.h275 RK_S32 slot_index; member