Home
last modified time | relevance | path

Searched refs:p_dec (Results 1 – 11 of 11) sorted by relevance

/rockchip-linux_mpp/mpp/codec/dec/avs/
H A Davsd_api.c45 AvsdCtx_t *p_dec = (AvsdCtx_t *)decoder; in avsd_deinit() local
50 mpp_packet_deinit(&p_dec->task_pkt); in avsd_deinit()
51 MPP_FREE(p_dec->streambuf); in avsd_deinit()
52 MPP_FREE(p_dec->mem); in avsd_deinit()
71 AvsdCtx_t *p_dec = (AvsdCtx_t *)decoder; in avsd_init() local
74 INP_CHECK(ret, !p_dec); in avsd_init()
76 memset(p_dec, 0, sizeof(AvsdCtx_t)); in avsd_init()
79 p_dec->init = *init; in avsd_init()
80 p_dec->frame_slots = init->frame_slots; in avsd_init()
81 p_dec->packet_slots = init->packet_slots; in avsd_init()
[all …]
H A Davsd_parse.c353 static AvsdFrame_t *get_one_save(AvsdCtx_t *p_dec, HalDecTask *task) in get_one_save() argument
358 for (i = 0; i < MPP_ARRAY_ELEMS(p_dec->mem->save); i++) { in get_one_save()
359 if (!p_dec->mem->save[i].valid) { in get_one_save()
360 p_dec->mem->save[i].valid = 1; in get_one_save()
361 p_cur = &p_dec->mem->save[i]; in get_one_save()
366 mpp_err("mem_save dpb %d slots has not get\n", MPP_ARRAY_ELEMS(p_dec->mem->save)); in get_one_save()
388 MPP_RET set_frame_output(AvsdCtx_t *p_dec, AvsdFrame_t *p) in set_frame_output() argument
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()
405 MPP_RET avsd_reset_parameters(AvsdCtx_t *p_dec) in avsd_reset_parameters() argument
[all …]
H A Davsd_parse.h249 MPP_RET avsd_free_resource(AvsdCtx_t *p_dec);
250 MPP_RET avsd_reset_parameters(AvsdCtx_t *p_dec);
251 MPP_RET set_frame_output(AvsdCtx_t *p_dec, AvsdFrame_t *p);
253 MPP_RET avsd_set_dpb(AvsdCtx_t *p_dec, HalDecTask *task);
255 MPP_RET avsd_fill_parameters(AvsdCtx_t *p_dec, AvsdSyntax_t *syn);
257 MPP_RET avsd_update_dpb(AvsdCtx_t *p_dec);
260 MPP_RET avsd_parse_stream(AvsdCtx_t *p_dec, HalDecTask *task);
/rockchip-linux_mpp/mpp/codec/dec/avs2/
H A Davs2d_api.c47 Avs2dCtx_t *p_dec = (Avs2dCtx_t *)decoder; in avs2d_deinit() local
52 MPP_FREE(p_dec->p_stream->pbuf); in avs2d_deinit()
53 MPP_FREE(p_dec->p_header->pbuf); in avs2d_deinit()
54 MPP_FREE(p_dec->mem); in avs2d_deinit()
55 MPP_FREE(p_dec->p_nals); in avs2d_deinit()
56 mpp_packet_deinit(&p_dec->task_pkt); in avs2d_deinit()
57 avs2d_dpb_destroy(p_dec); in avs2d_deinit()
67 Avs2dCtx_t *p_dec = (Avs2dCtx_t *)decoder; in avs2d_init() local
70 INP_CHECK(ret, !p_dec); in avs2d_init()
72 memset(p_dec, 0, sizeof(Avs2dCtx_t)); in avs2d_init()
[all …]
H A Davs2d_parse.c81 static MPP_RET avs2_add_nalu_header(Avs2dCtx_t *p_dec, RK_U32 header) in avs2_add_nalu_header() argument
86 if (p_dec->nal_cnt + 1 > p_dec->nal_allocated) { in avs2_add_nalu_header()
87 …Avs2dNalu_t *new_buffer = mpp_realloc(p_dec->p_nals, Avs2dNalu_t, p_dec->nal_allocated + MAX_NALU_… in avs2_add_nalu_header()
93 p_dec->p_nals = new_buffer; in avs2_add_nalu_header()
94 memset(&p_dec->p_nals[p_dec->nal_allocated], 0, MAX_NALU_NUM * sizeof(Avs2dNalu_t)); in avs2_add_nalu_header()
95 p_dec->nal_allocated += MAX_NALU_NUM; in avs2_add_nalu_header()
96 AVS2D_PARSE_TRACE("Realloc NALU buffer, current allocated %d", p_dec->nal_allocated); in avs2_add_nalu_header()
100 p_nal = p_dec->p_nals + p_dec->nal_cnt; in avs2_add_nalu_header()
106 p_dec->nal_cnt++; in avs2_add_nalu_header()
107 AVS2D_PARSE_TRACE("add header 0x%x, nal_cnt %d", header, p_dec->nal_cnt); in avs2_add_nalu_header()
[all …]
H A Davs2d_dpb.c40 static RK_U32 dpb_get_size(Avs2dCtx_t *p_dec) in dpb_get_size() argument
47 Avs2dSeqHeader_t *vsh = &p_dec->vsh; in dpb_get_size()
132 MPP_RET avs2d_dpb_create(Avs2dCtx_t *p_dec) in avs2d_dpb_create() argument
136 Avs2dFrameMgr_t *mgr = &p_dec->frm_mgr; in avs2d_dpb_create()
139 mgr->dpb_specific_size = dpb_get_size(p_dec); in avs2d_dpb_create()
158 MPP_RET avs2d_dpb_destroy(Avs2dCtx_t *p_dec) in avs2d_dpb_destroy() argument
162 Avs2dFrameMgr_t *mgr = &p_dec->frm_mgr; in avs2d_dpb_destroy()
203 static void compute_frame_order_index(Avs2dCtx_t *p_dec) in compute_frame_order_index() argument
205 Avs2dSeqHeader_t *vsh = &p_dec->vsh; in compute_frame_order_index()
206 Avs2dPicHeader_t *ph = &p_dec->ph; in compute_frame_order_index()
[all …]
H A Davs2d_ps.c136 static void wq_init_frame_quant_param(Avs2dCtx_t *p_dec) in wq_init_frame_quant_param() argument
139 Avs2dPicHeader_t *ph = &p_dec->ph; in wq_init_frame_quant_param()
141 if (!p_dec->enable_wq || ph->pic_wq_data_index != 1) { in wq_init_frame_quant_param()
176 static void wq_update_frame_matrix(Avs2dCtx_t *p_dec) in wq_update_frame_matrix() argument
182 Avs2dSeqHeader_t *vsh = &p_dec->vsh; in wq_update_frame_matrix()
183 Avs2dPicHeader_t *ph = &p_dec->ph; in wq_update_frame_matrix()
184 RK_U32 (*cur_wqm)[64] = p_dec->cur_wq_matrix; in wq_update_frame_matrix()
188 if (!p_dec->enable_wq) { in wq_update_frame_matrix()
279 MPP_RET avs2d_parse_sequence_header(Avs2dCtx_t *p_dec) in avs2d_parse_sequence_header() argument
285 BitReadCtx_t *bitctx = &p_dec->bitctx; in avs2d_parse_sequence_header()
[all …]
H A Davs2d_dpb.h26 MPP_RET avs2d_dpb_create(Avs2dCtx_t *p_dec);
27 MPP_RET avs2d_dpb_destroy(Avs2dCtx_t *p_dec);
28 MPP_RET avs2d_dpb_insert(Avs2dCtx_t *p_dec, HalDecTask *task);
29 MPP_RET avs2d_dpb_flush(Avs2dCtx_t *p_dec);
30 MPP_RET dpb_remove_unused_frame(Avs2dCtx_t *p_dec);
H A Davs2d_parse.h26 MPP_RET avs2d_reset_parser(Avs2dCtx_t *p_dec);
29 MPP_RET avs2d_fill_parameters(Avs2dCtx_t *p_dec, Avs2dSyntax_t *syntax);
31 MPP_RET avs2d_parse_prepare_fast(Avs2dCtx_t *p_dec, MppPacket *pkt, HalDecTask *task);
32 MPP_RET avs2d_parse_prepare_split(Avs2dCtx_t *p_dec, MppPacket *pkt, HalDecTask *task);
33 MPP_RET avs2d_parse_stream(Avs2dCtx_t *p_dec, HalDecTask *task);
H A Davs2d_ps.h26 MPP_RET avs2d_parse_sequence_header(Avs2dCtx_t *p_dec);
27 MPP_RET avs2d_parse_picture_header(Avs2dCtx_t *p_dec, RK_U32 startcode);
/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_fill.c365 DXVA2_DecodeBufferDesc *p_dec = NULL; in commit_buffer() local
369 p_dec = &p_syn->buf[p_syn->num++]; in commit_buffer()
370 memset(p_dec, 0, sizeof(DXVA2_DecodeBufferDesc)); in commit_buffer()
371 p_dec->CompressedBufferType = DXVA2_PictureParametersBufferType; in commit_buffer()
372 p_dec->pvPVPState = (void *)&dxva_ctx->pp; in commit_buffer()
373 p_dec->DataSize = sizeof(DXVA_PicParams_H264_MVC); in commit_buffer()
374 p_dec->NumMBsInBuffer = 0; in commit_buffer()
376 p_dec = &p_syn->buf[p_syn->num++]; in commit_buffer()
377 memset(p_dec, 0, sizeof(DXVA2_DecodeBufferDesc)); in commit_buffer()
378 p_dec->CompressedBufferType = DXVA2_InverseQuantizationMatrixBufferType; in commit_buffer()
[all …]