| /rockchip-linux_mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_vdpu383.c | 330 h265d_dxva2_picture_context_t *dxva_ctx = (h265d_dxva2_picture_context_t*)dxva; in hal_h265d_vdpu383_scalinglist_packet() local 333 if (!dxva_ctx->pp.scaling_list_enabled_flag) { in hal_h265d_vdpu383_scalinglist_packet() 337 if (memcmp((void*)&dxva_ctx->qm, reg_ctx->scaling_qm, sizeof(DXVA_Qmatrix_HEVC))) { in hal_h265d_vdpu383_scalinglist_packet() 343 sl.sl[0][i][pos] = dxva_ctx->qm.ucScalingLists0[i][j]; in hal_h265d_vdpu383_scalinglist_packet() 348 sl.sl[1][i][pos] = dxva_ctx->qm.ucScalingLists1[i][j]; in hal_h265d_vdpu383_scalinglist_packet() 349 sl.sl[2][i][pos] = dxva_ctx->qm.ucScalingLists2[i][j]; in hal_h265d_vdpu383_scalinglist_packet() 352 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists3[0][j]; in hal_h265d_vdpu383_scalinglist_packet() 354 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists3[1][j]; in hal_h265d_vdpu383_scalinglist_packet() 356 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists2[i][j]; in hal_h265d_vdpu383_scalinglist_packet() 359 sl.sl_dc[0][i] = dxva_ctx->qm.ucScalingListDCCoefSizeID2[i]; in hal_h265d_vdpu383_scalinglist_packet() [all …]
|
| H A D | hal_h265d_vdpu384a.c | 298 h265d_dxva2_picture_context_t *dxva_ctx = (h265d_dxva2_picture_context_t*)dxva; in hal_h265d_vdpu384a_scalinglist_packet() local 301 if (!dxva_ctx->pp.scaling_list_enabled_flag) { in hal_h265d_vdpu384a_scalinglist_packet() 305 if (memcmp((void*)&dxva_ctx->qm, reg_ctx->scaling_qm, sizeof(DXVA_Qmatrix_HEVC))) { in hal_h265d_vdpu384a_scalinglist_packet() 311 sl.sl[0][i][pos] = dxva_ctx->qm.ucScalingLists0[i][j]; in hal_h265d_vdpu384a_scalinglist_packet() 316 sl.sl[1][i][pos] = dxva_ctx->qm.ucScalingLists1[i][j]; in hal_h265d_vdpu384a_scalinglist_packet() 317 sl.sl[2][i][pos] = dxva_ctx->qm.ucScalingLists2[i][j]; in hal_h265d_vdpu384a_scalinglist_packet() 320 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists3[0][j]; in hal_h265d_vdpu384a_scalinglist_packet() 322 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists3[1][j]; in hal_h265d_vdpu384a_scalinglist_packet() 324 sl.sl[3][i][pos] = dxva_ctx->qm.ucScalingLists2[i][j]; in hal_h265d_vdpu384a_scalinglist_packet() 327 sl.sl_dc[0][i] = dxva_ctx->qm.ucScalingListDCCoefSizeID2[i]; in hal_h265d_vdpu384a_scalinglist_packet() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_fill.c | 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() [all …]
|
| H A D | h264d_api.c | 242 free_dxva_ctx(&p_Dec->mem->dxva_ctx); in free_dec_ctx() 266 p_Dec->mem->dxva_ctx.p_Dec = p_Dec; in init_dec_ctx() 267 FUN_CHECK(ret = init_dxva_ctx(&p_Dec->mem->dxva_ctx)); in init_dec_ctx() 268 p_Dec->dxva_ctx = &p_Dec->mem->dxva_ctx; in init_dec_ctx() 276 mpp_packet_init(&p_Dec->task_pkt, p_Dec->dxva_ctx->bitstream, p_Dec->dxva_ctx->max_strm_size); in init_dec_ctx() 458 p_Dec->dxva_ctx->strm_offset = 0; in h264d_reset() 459 p_Dec->dxva_ctx->slice_count = 0; in h264d_reset() 599 memset(p_Dec->dxva_ctx->bitstream + p_Dec->dxva_ctx->strm_offset, 0, in h264d_prepare() 600 MPP_ALIGN(p_Dec->dxva_ctx->strm_offset, 16) - p_Dec->dxva_ctx->strm_offset); in h264d_prepare() 601 mpp_packet_set_data(p_Dec->task_pkt, p_Dec->dxva_ctx->bitstream); in h264d_prepare() [all …]
|
| H A D | h264d_parse.c | 376 …ic MPP_RET store_cur_nalu(H264dCurCtx_t *p_Cur, H264dCurStream_t *p_strm, H264dDxvaCtx_t *dxva_ctx) in store_cur_nalu() argument 436 if ((dxva_ctx->strm_offset + add_size) >= dxva_ctx->max_strm_size) { in store_cur_nalu() 437 … FUN_CHECK(ret = realloc_buffer(&dxva_ctx->bitstream, &dxva_ctx->max_strm_size, add_size)); in store_cur_nalu() 440 p_des = &dxva_ctx->bitstream[dxva_ctx->strm_offset]; in store_cur_nalu() 443 dxva_ctx->strm_offset += add_size; in store_cur_nalu() 660 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare() 711 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare() 724 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare() 794 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare_fast() 800 FUN_CHECK(ret = store_cur_nalu(p_Cur, p_strm, p_Dec->dxva_ctx)); in parse_prepare_fast() [all …]
|
| H A D | h264d_fill.h | 36 MPP_RET fill_slice_syntax(H264_SLICE_t *currSlice, H264dDxvaCtx_t *dxva_ctx);
|
| H A D | h264d_global.h | 1069 struct h264d_dxva_ctx_t dxva_ctx; member 1131 struct h264d_dxva_ctx_t *dxva_ctx; member
|
| H A D | h264d_init.c | 2107 H264dDxvaCtx_t *dxva_ctx = p_Dec->dxva_ctx; in init_picture() local 2109 fill_picparams(currSlice->p_Vid, &dxva_ctx->pp); in init_picture() 2110 if (dxva_ctx->pp.scaleing_list_enable_flag) { in init_picture() 2112 fill_scanlist(currSlice->p_Vid, &dxva_ctx->qm); in init_picture()
|
| /rockchip-linux_mpp/mpp/codec/dec/m2v/ |
| H A D | m2vd_parser.c | 149 ctx->dxva_ctx = mpp_calloc(M2VDDxvaParam, 1); in m2vd_parser_init_ctx() 285 if (p->dxva_ctx) { in m2vd_parser_deinit() 286 mpp_free(p->dxva_ctx); in m2vd_parser_deinit() 287 p->dxva_ctx = NULL; in m2vd_parser_deinit() 1342 M2VDDxvaParam *dst = p->dxva_ctx; in m2vd_convert_to_dxva() 1527 in_task->syntax.data = (void *)p->dxva_ctx; in m2vd_parser_parse() 1547 if (p->dxva_ctx->seq_disp_ext.color_description) { in m2vd_parser_parse() 1548 mpp_frame_set_color_primaries(frame, p->dxva_ctx->seq_disp_ext.color_primaries); in m2vd_parser_parse() 1549 mpp_frame_set_color_trc(frame, p->dxva_ctx->seq_disp_ext.transfer_characteristics); in m2vd_parser_parse() 1550 mpp_frame_set_colorspace(frame, p->dxva_ctx->seq_disp_ext.matrix_coefficients); in m2vd_parser_parse()
|
| H A D | m2vd_parser.h | 228 M2VDDxvaParam *dxva_ctx; member
|
| /rockchip-linux_mpp/mpp/codec/dec/vp8/ |
| H A D | vp8d_parser.c | 235 p->dxva_ctx = mpp_calloc(DXVA_PicParams_VP8, 1); in vp8d_parser_init() 237 if (NULL == p->dxva_ctx) { in vp8d_parser_init() 325 if (NULL != p->dxva_ctx) { in vp8d_parser_deinit() 326 mpp_free(p->dxva_ctx); in vp8d_parser_deinit() 327 p->dxva_ctx = NULL; in vp8d_parser_deinit() 492 DXVA_PicParams_VP8 *pic_param = p->dxva_ctx; in vp8d_convert_to_syntx() 567 p->dxva_ctx->CurrPic.Index7Bits = p->frame_out->slot_index; in vp8d_convert_to_syntx() 1317 in_task->syntax.data = (void *)p->dxva_ctx; in vp8d_parser_parse()
|
| H A D | vp8d_parser.h | 87 DXVA_PicParams_VP8 *dxva_ctx; member
|