Lines Matching refs:dxva_ctx

28 static MPP_RET realloc_slice_list(H264dDxvaCtx_t *dxva_ctx)  in realloc_slice_list()  argument
32 dxva_ctx->max_slice_size += ADD_SLICE_SIZE; in realloc_slice_list()
33 dxva_ctx->slice_long = mpp_realloc(dxva_ctx->slice_long, in realloc_slice_list()
35 dxva_ctx->max_slice_size); in realloc_slice_list()
36 MEM_CHECK(ret, dxva_ctx->slice_long); in realloc_slice_list()
43 static MPP_RET fill_slice_stream(H264dDxvaCtx_t *dxva_ctx, H264_Nalu_t *p_nal) in fill_slice_stream() argument
48 if (dxva_ctx->slice_count >= dxva_ctx->max_slice_size) { in fill_slice_stream()
49 FUN_CHECK(ret = realloc_slice_list(dxva_ctx)); in fill_slice_stream()
51 p_long = &dxva_ctx->slice_long[dxva_ctx->slice_count]; in fill_slice_stream()
53 p_long->BSNALunitDataLocation = dxva_ctx->strm_offset; in fill_slice_stream()
294 MPP_RET fill_slice_syntax(H264_SLICE_t *currSlice, H264dDxvaCtx_t *dxva_ctx) in fill_slice_syntax() argument
301 FUN_CHECK(ret = fill_slice_stream(dxva_ctx, &currSlice->p_Cur->nalu)); in fill_slice_syntax()
302 p_long = &dxva_ctx->slice_long[dxva_ctx->slice_count]; in fill_slice_syntax()
311 p_long->slice_id = dxva_ctx->slice_count; in fill_slice_syntax()
347 dxva_ctx->slice_count++; in fill_slice_syntax()
362 void commit_buffer(H264dDxvaCtx_t *dxva_ctx) in commit_buffer() argument
364 H264dSyntax_t *p_syn = &dxva_ctx->syn; in commit_buffer()
372 p_dec->pvPVPState = (void *)&dxva_ctx->pp; in commit_buffer()
379 p_dec->pvPVPState = (void *)&dxva_ctx->qm; in commit_buffer()
386 p_dec->DataSize = MPP_ALIGN(dxva_ctx->strm_offset, 16); in commit_buffer()
387 memset(dxva_ctx->bitstream + dxva_ctx->strm_offset, 0, p_dec->DataSize - dxva_ctx->strm_offset); in commit_buffer()
388 p_dec->pvPVPState = (void *)dxva_ctx->bitstream; in commit_buffer()
393 p_dec->NumMBsInBuffer = (dxva_ctx->pp.wFrameHeightInMbsMinus1 + 1) in commit_buffer()
394 * (dxva_ctx->pp.wFrameWidthInMbsMinus1 + 1); in commit_buffer()
395 p_dec->pvPVPState = dxva_ctx->slice_long; in commit_buffer()
396 p_dec->DataSize = dxva_ctx->slice_count * sizeof(DXVA_Slice_H264_Long); in commit_buffer()
399 dxva_ctx->slice_count = 0; in commit_buffer()
400 dxva_ctx->strm_offset = 0; in commit_buffer()