frontends/va: get gaps_in_frame for h264 dec

Get gaps_in_frame_num_value_allowed_flag value from Va-api interface.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36056>
(cherry picked from commit a7567ec6f4)
This commit is contained in:
Boyuan Zhang 2025-07-09 11:59:49 -04:00 committed by Eric Engestrom
parent 20ef415020
commit 5e6edfd65b
2 changed files with 3 additions and 2 deletions

View file

@ -6014,7 +6014,7 @@
"description": "frontends/va: get gaps_in_frame for h264 dec",
"nominated": false,
"nomination_type": 0,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -61,7 +61,8 @@ void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context,
context->desc.h264.num_ref_frames = h264->num_ref_frames;
context->desc.h264.pps->sps->chroma_format_idc = h264->seq_fields.bits.chroma_format_idc;
/*residual_colour_transform_flag*/
/*gaps_in_frame_num_value_allowed_flag*/
context->desc.h264.pps->sps->gaps_in_frame_num_value_allowed_flag =
h264->seq_fields.bits.gaps_in_frame_num_value_allowed_flag;
context->desc.h264.pps->sps->frame_mbs_only_flag =
h264->seq_fields.bits.frame_mbs_only_flag;
context->desc.h264.pps->sps->mb_adaptive_frame_field_flag =