mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
gallium vdpau: Fill out level_idc and MinLumaBiPredSize8x8
Reviewed-by: Leo Liu <leo.liu@amd.com> Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16286>
This commit is contained in:
parent
67fad86c96
commit
701fadd45f
1 changed files with 5 additions and 2 deletions
|
|
@ -348,7 +348,7 @@ vlVdpDecoderRenderVC1(struct pipe_vc1_picture_desc *picture,
|
|||
|
||||
static VdpStatus
|
||||
vlVdpDecoderRenderH264(struct pipe_h264_picture_desc *picture,
|
||||
VdpPictureInfoH264 *picture_info)
|
||||
VdpPictureInfoH264 *picture_info, unsigned level_idc)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
|
@ -361,11 +361,14 @@ vlVdpDecoderRenderH264(struct pipe_h264_picture_desc *picture,
|
|||
picture->pps->sps->log2_max_pic_order_cnt_lsb_minus4 = picture_info->log2_max_pic_order_cnt_lsb_minus4;
|
||||
picture->pps->sps->delta_pic_order_always_zero_flag = picture_info->delta_pic_order_always_zero_flag;
|
||||
picture->pps->sps->direct_8x8_inference_flag = picture_info->direct_8x8_inference_flag;
|
||||
picture->pps->sps->level_idc = level_idc;
|
||||
picture->pps->sps->MinLumaBiPredSize8x8 = (level_idc >= 31); /* See section A.3.3.2 of H264 spec */;
|
||||
|
||||
picture->pps->transform_8x8_mode_flag = picture_info->transform_8x8_mode_flag;
|
||||
picture->pps->chroma_qp_index_offset = picture_info->chroma_qp_index_offset;
|
||||
picture->pps->second_chroma_qp_index_offset = picture_info->second_chroma_qp_index_offset;
|
||||
picture->pps->pic_init_qp_minus26 = picture_info->pic_init_qp_minus26;
|
||||
/*picture->pps-> pic_init_qs_minus26 not passed in VdpPictureInfoH264*/
|
||||
picture->pps->entropy_coding_mode_flag = picture_info->entropy_coding_mode_flag;
|
||||
picture->pps->deblocking_filter_control_present_flag = picture_info->deblocking_filter_control_present_flag;
|
||||
picture->pps->redundant_pic_cnt_present_flag = picture_info->redundant_pic_cnt_present_flag;
|
||||
|
|
@ -658,7 +661,7 @@ vlVdpDecoderRender(VdpDecoder decoder,
|
|||
break;
|
||||
case PIPE_VIDEO_FORMAT_MPEG4_AVC:
|
||||
desc.h264.pps = &pps_h264;
|
||||
ret = vlVdpDecoderRenderH264(&desc.h264, (VdpPictureInfoH264 *)picture_info);
|
||||
ret = vlVdpDecoderRenderH264(&desc.h264, (VdpPictureInfoH264 *)picture_info, dec->level);
|
||||
break;
|
||||
case PIPE_VIDEO_FORMAT_HEVC:
|
||||
desc.h265.pps = &pps_h265;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue