Lines Matching refs:p_dxva
199 static MPP_RET free_dxva_ctx(H264dDxvaCtx_t *p_dxva) in free_dxva_ctx() argument
203 INP_CHECK(ret, NULL == p_dxva); in free_dxva_ctx()
205 MPP_FREE(p_dxva->slice_long); in free_dxva_ctx()
206 MPP_FREE(p_dxva->bitstream); in free_dxva_ctx()
207 MPP_FREE(p_dxva->syn.buf); in free_dxva_ctx()
213 static MPP_RET init_dxva_ctx(H264dDxvaCtx_t *p_dxva) in init_dxva_ctx() argument
217 INP_CHECK(ret, !p_dxva); in init_dxva_ctx()
219 p_dxva->slice_count = 0; in init_dxva_ctx()
220 p_dxva->max_slice_size = MAX_SLICE_NUM; in init_dxva_ctx()
221 p_dxva->max_strm_size = BITSTREAM_MAX_SIZE; in init_dxva_ctx()
222 p_dxva->slice_long = mpp_calloc(DXVA_Slice_H264_Long, p_dxva->max_slice_size); in init_dxva_ctx()
223 MEM_CHECK(ret, p_dxva->slice_long); in init_dxva_ctx()
224 p_dxva->bitstream = mpp_malloc(RK_U8, p_dxva->max_strm_size); in init_dxva_ctx()
225 p_dxva->syn.buf = mpp_calloc(DXVA2_DecodeBufferDesc, SYNTAX_BUF_SIZE); in init_dxva_ctx()
226 MEM_CHECK(ret, p_dxva->bitstream && p_dxva->syn.buf); in init_dxva_ctx()