Home
last modified time | relevance | path

Searched refs:p_Dec (Results 1 – 13 of 13) sorted by relevance

/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_api.c159 free_storable_picture(p_Vid->p_Dec, p_Vid->dec_pic); in free_vid_ctx()
235 static MPP_RET free_dec_ctx(H264_DecCtx_t *p_Dec) in free_dec_ctx() argument
239 INP_CHECK(ret, NULL == p_Dec); in free_dec_ctx()
241 if (p_Dec->mem) { in free_dec_ctx()
242 free_dxva_ctx(&p_Dec->mem->dxva_ctx); in free_dec_ctx()
243 MPP_FREE(p_Dec->mem); in free_dec_ctx()
246 mpp_packet_deinit(&p_Dec->task_pkt); in free_dec_ctx()
251 static MPP_RET init_dec_ctx(H264_DecCtx_t *p_Dec) in init_dec_ctx() argument
256 INP_CHECK(ret, !p_Dec); in init_dec_ctx()
258 p_Dec->mem = mpp_calloc(H264_DecMem_t, 1); in init_dec_ctx()
[all …]
H A Dh264d_parse.c84 currSlice->p_Dec = p_Vid->p_Dec; in reset_slice()
178 p_Cur->p_Dec->svc_valid = 1; in parser_nalu_header()
195 p_Cur->p_Dec->mvc_valid = 1; in parser_nalu_header()
217 p_Cur->p_Dec->nalu_ret = StartofNalu; in parser_nalu_header()
221 p_Cur->p_Dec->nalu_ret = ReadNaluError; in parser_nalu_header()
233 currSlice->p_Dec->nalu_ret = NaluNotSupport; in parser_one_nalu()
238 !currSlice->p_Dec->cfg->base.enable_mvc) { in parser_one_nalu()
239 currSlice->p_Dec->nalu_ret = MvcDisAble; in parser_one_nalu()
249 currSlice->p_Dec->nalu_ret = StartOfPicture; in parser_one_nalu()
254 currSlice->p_Dec->nalu_ret = NALU_SPS; in parser_one_nalu()
[all …]
H A Dh264d_init.c204 H264_DecCtx_t *p_Dec = p_Dpb->p_Vid->p_Dec; in store_proc_picture_in_dpb() local
209 free_storable_picture(p_Dec, fs->frame); in store_proc_picture_in_dpb()
213 free_storable_picture(p_Dec, fs->top_field); in store_proc_picture_in_dpb()
217 free_storable_picture(p_Dec, fs->bottom_field); in store_proc_picture_in_dpb()
395 H264_DecCtx_t *p_Dec = p_Vid->p_Dec; in dpb_mark_malloc() local
396 H264_DpbMark_t *p_mark = p_Vid->p_Dec->dpb_mark; in dpb_mark_malloc()
408 mpp_buf_slot_get_unused(p_Vid->p_Dec->frame_slots, &p_mark[idx].slot_idx); in dpb_mark_malloc()
420 MppFrameFormat out_fmt = p_Dec->cfg->base.out_fmt; in dpb_mark_malloc()
421 MppFrameImpl *impl = (MppFrameImpl *)p_Dec->curframe; in dpb_mark_malloc()
431 mpp_slots_set_prop(p_Dec->frame_slots, SLOTS_LEN_ALIGN, rkv_len_align_422); in dpb_mark_malloc()
[all …]
H A Dh264d_dpb.c155 static void unmark_for_reference(H264_DecCtx_t *p_Dec, H264_FrameStore_t* fs) in unmark_for_reference() argument
180 (void)p_Dec; in unmark_for_reference()
276 unmark_for_reference(p_Dpb->p_Vid->p_Dec, p_Dpb->fs_ref[i]); in mm_unmark_short_term_for_reference()
549 unmark_for_reference(p_Dpb->p_Vid->p_Dec, p_Dpb->fs_ref[i]); in mm_unmark_all_short_term_for_reference()
580 unmark_for_reference(p_Dpb->p_Vid->p_Dec, p_Dpb->fs[i]); in sliding_window_memory_management()
632 static void free_dpb_mark(H264_DecCtx_t *p_Dec, H264_DpbMark_t *p_mark, RK_S32 structure) in free_dpb_mark() argument
644 mpp_buf_slot_clr_flag(p_Dec->frame_slots, p_mark->slot_idx, SLOT_CODEC_USE); in free_dpb_mark()
655 H264_DecCtx_t *p_Dec = NULL; in remove_frame_from_dpb() local
661 p_Dec = p_Dpb->p_Vid->p_Dec; in remove_frame_from_dpb()
662 INP_CHECK(ret, !p_Dec); in remove_frame_from_dpb()
[all …]
H A Dh264d_dpb.h33 void free_storable_picture(H264_DecCtx_t *p_Dec, H264_StorePic_t *p);
34 void free_frame_store(H264_DecCtx_t *p_Dec, H264_FrameStore_t *f);
43 MPP_RET output_dpb (H264_DecCtx_t *p_Dec, H264_DpbBuf_t *p_Dpb);
H A Dh264d_init.h31 MPP_RET update_dpb (H264_DecCtx_t *p_Dec);
34 void flush_dpb_buf_slot(H264_DecCtx_t *p_Dec);
H A Dh264d_fill.c103 H264_DpbInfo_t *dpb_info = p_Vid->p_Dec->dpb_info; in fill_picparams()
323 dpb_idx = currSlice->p_Dec->refpic_info_p[i].dpb_idx; in fill_slice_syntax()
324 dpb_valid = currSlice->p_Dec->refpic_info_p[i].valid; in fill_slice_syntax()
327 bottom_flag = currSlice->p_Dec->refpic_info_p[i].bottom_flag; in fill_slice_syntax()
336 dpb_idx = currSlice->p_Dec->refpic_info_b[list][i].dpb_idx; in fill_slice_syntax()
337 dpb_valid = currSlice->p_Dec->refpic_info_b[list][i].valid; in fill_slice_syntax()
340 bottom_flag = currSlice->p_Dec->refpic_info_b[list][i].bottom_flag; in fill_slice_syntax()
H A Dh264d_sps.c173 static MPP_RET parser_sps(BitReadCtx_t *p_bitctx, H264_SPS_t *cur_sps, H264_DecCtx_t *p_Dec) in parser_sps() argument
185 p_Dec->errctx.un_spt_flag = 0; // init unspport flag first in parser_sps()
223 p_Dec->errctx.un_spt_flag = MPP_FRAME_ERR_UNSUPPORT; in parser_sps()
233 p_Dec->errctx.un_spt_flag = MPP_FRAME_ERR_UNSUPPORT; in parser_sps()
289 (void)p_Dec; in parser_sps()
468 FUN_CHECK(ret = parser_sps(p_bitctx, cur_sps, currSlice->p_Dec)); in process_sps()
548 FUN_CHECK(ret = parser_sps(p_bitctx, &cur_subsps->sps, currSlice->p_Dec)); in process_subsps()
598 if (p_Vid->p_Dec->mvc_valid && p_Vid->p_Dpb_layer[1]->size > 0) { in activate_sps()
H A Dh264d_parse.h34 MPP_RET parse_loop(H264_DecCtx_t *p_Dec);
H A Dh264d_global.h751 struct h264_dec_ctx_t *p_Dec; member
832 struct h264_dec_ctx_t *p_Dec; // H264_DecCtx_t member
874 struct h264_dec_ctx_t *p_Dec; member
879 struct h264_dec_ctx_t *p_Dec; member
960 struct h264_dec_ctx_t *p_Dec; member
986 struct h264_dec_ctx_t *p_Dec; //!< H264_DecCtx_t member
H A Dh264d_slice.c250 p_Vid->p_Dec->errctx.used_ref_flag = currSlice->nal_reference_idc ? 1 : 0; in init_slice_parmeters()
252 p_Vid->p_Dec->errctx.dpb_err_flag = 0; in init_slice_parmeters()
393 VAL_CHECK(ret, check_sps_pps(cur_sps, cur_subsps, cur_pps, p_Vid->p_Dec->hw_info) != MPP_NOK); in set_slice_user_parmeters()
409 if (p_Vid->p_Dec->mvc_valid) { in set_slice_user_parmeters()
H A Dh264d_sei.c248 sei_msg->p_Dec = currSlice->p_Dec; in process_sei()
/rockchip-linux_mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_api.c321 Mpg4dCtx *p_Dec = (Mpg4dCtx *)dec; in mpg4d_callback() local
332 mpp_buf_slot_get_prop(p_Dec->frame_slots, task_dec->output, SLOT_FRAME_PTR, &mframe); in mpg4d_callback()
338p_Dec->frame_count, task_dec->output, task_err, ctx->hard_err, task_dec->flags.used_for_ref, in mpg4d_callback()