Home
last modified time | relevance | path

Searched refs:dxva_ctx (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/
H A Dh264d_fill.c28 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()
[all …]
H A Dh264d_api.c232 free_dxva_ctx(&p_Dec->mem->dxva_ctx); in free_dec_ctx()
256 p_Dec->mem->dxva_ctx.p_Dec = p_Dec; in init_dec_ctx()
257 FUN_CHECK(ret = init_dxva_ctx(&p_Dec->mem->dxva_ctx)); in init_dec_ctx()
258 p_Dec->dxva_ctx = &p_Dec->mem->dxva_ctx; in init_dec_ctx()
266 mpp_packet_init(&p_Dec->task_pkt, p_Dec->dxva_ctx->bitstream, p_Dec->dxva_ctx->max_strm_size); in init_dec_ctx()
444 p_Dec->dxva_ctx->strm_offset = 0; in h264d_reset()
445 p_Dec->dxva_ctx->slice_count = 0; in h264d_reset()
578 memset(p_Dec->dxva_ctx->bitstream + p_Dec->dxva_ctx->strm_offset, 0, in h264d_prepare()
579 MPP_ALIGN(p_Dec->dxva_ctx->strm_offset, 16) - p_Dec->dxva_ctx->strm_offset); in h264d_prepare()
580 mpp_packet_set_data(p_Dec->task_pkt, p_Dec->dxva_ctx->bitstream); in h264d_prepare()
[all …]
H A Dh264d_parse.c336 …ic MPP_RET store_cur_nalu(H264dCurCtx_t *p_Cur, H264dCurStream_t *p_strm, H264dDxvaCtx_t *dxva_ctx) in store_cur_nalu() argument
369 if ((dxva_ctx->strm_offset + add_size) >= dxva_ctx->max_strm_size) { in store_cur_nalu()
370 … FUN_CHECK(ret = realloc_buffer(&dxva_ctx->bitstream, &dxva_ctx->max_strm_size, add_size)); in store_cur_nalu()
373 p_des = &dxva_ctx->bitstream[dxva_ctx->strm_offset]; in store_cur_nalu()
376 dxva_ctx->strm_offset += add_size; in store_cur_nalu()
554 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare()
600 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare()
613 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare()
682 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare_fast()
688 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare_fast()
[all …]
H A Dh264d_fill.h36 MPP_RET fill_slice_syntax(H264_SLICE_t *currSlice, H264dDxvaCtx_t *dxva_ctx);
H A Dh264d_global.h1062 struct h264d_dxva_ctx_t dxva_ctx; member
1124 struct h264d_dxva_ctx_t *dxva_ctx; member
H A Dh264d_init.c2092 H264dDxvaCtx_t *dxva_ctx = p_Dec->dxva_ctx; in init_picture() local
2094 fill_picparams(currSlice->p_Vid, &dxva_ctx->pp); in init_picture()
2095 if (dxva_ctx->pp.scaleing_list_enable_flag) { in init_picture()
2097 fill_scanlist(currSlice->p_Vid, &dxva_ctx->qm); in init_picture()
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/vp8/
H A Dvp8d_parser.c233 p->dxva_ctx = mpp_calloc(DXVA_PicParams_VP8, 1); in vp8d_parser_init()
235 if (NULL == p->dxva_ctx) { in vp8d_parser_init()
323 if (NULL != p->dxva_ctx) { in vp8d_parser_deinit()
324 mpp_free(p->dxva_ctx); in vp8d_parser_deinit()
325 p->dxva_ctx = NULL; in vp8d_parser_deinit()
486 DXVA_PicParams_VP8 *pic_param = p->dxva_ctx; in vp8d_convert_to_syntx()
561 p->dxva_ctx->CurrPic.Index7Bits = p->frame_out->slot_index; in vp8d_convert_to_syntx()
1254 in_task->syntax.data = (void *)p->dxva_ctx; in vp8d_parser_parse()
H A Dvp8d_parser.h86 DXVA_PicParams_VP8 *dxva_ctx; member
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/m2v/
H A Dm2vd_parser.c149 ctx->dxva_ctx = mpp_calloc(M2VDDxvaParam, 1); in m2vd_parser_init_ctx()
284 if (p->dxva_ctx) { in m2vd_parser_deinit()
285 mpp_free(p->dxva_ctx); in m2vd_parser_deinit()
286 p->dxva_ctx = NULL; in m2vd_parser_deinit()
1318 M2VDDxvaParam *dst = p->dxva_ctx; in m2vd_convert_to_dxva()
1503 in_task->syntax.data = (void *)p->dxva_ctx; in m2vd_parser_parse()
1523 if (p->dxva_ctx->seq_disp_ext.color_description) { in m2vd_parser_parse()
1524 mpp_frame_set_color_primaries(frame, p->dxva_ctx->seq_disp_ext.color_primaries); in m2vd_parser_parse()
1525 mpp_frame_set_color_trc(frame, p->dxva_ctx->seq_disp_ext.transfer_characteristics); in m2vd_parser_parse()
1526 mpp_frame_set_colorspace(frame, p->dxva_ctx->seq_disp_ext.matrix_coefficients); in m2vd_parser_parse()
H A Dm2vd_parser.h228 M2VDDxvaParam *dxva_ctx; member