mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
frontends/va: Add H264 encode more_rbsp_data PPS flag
Cc: mesa-stable Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36351>
This commit is contained in:
parent
a501d26dee
commit
6247c7fdc1
2 changed files with 3 additions and 1 deletions
|
|
@ -751,7 +751,8 @@ static void parseEncPpsParamsH264(vlVaContext *context, struct vl_rbsp *rbsp)
|
|||
pic->deblocking_filter_control_present_flag = vl_rbsp_u(rbsp, 1);
|
||||
pic->constrained_intra_pred_flag = vl_rbsp_u(rbsp, 1);
|
||||
pic->redundant_pic_cnt_present_flag = vl_rbsp_u(rbsp, 1);
|
||||
if (vl_rbsp_more_data(rbsp)) {
|
||||
pic->more_rbsp_data = vl_rbsp_more_data(rbsp);
|
||||
if (pic->more_rbsp_data) {
|
||||
pic->transform_8x8_mode_flag = vl_rbsp_u(rbsp, 1);
|
||||
if (vl_rbsp_u(rbsp, 1)) { /* pic_scaling_matrix_present_flag */
|
||||
debug_error("PPS scaling matrix not supported");
|
||||
|
|
|
|||
|
|
@ -724,6 +724,7 @@ struct pipe_h264_enc_pic_control
|
|||
uint32_t deblocking_filter_control_present_flag : 1;
|
||||
uint32_t constrained_intra_pred_flag : 1;
|
||||
uint32_t redundant_pic_cnt_present_flag : 1;
|
||||
uint32_t more_rbsp_data : 1;
|
||||
uint32_t transform_8x8_mode_flag : 1;
|
||||
};
|
||||
uint8_t nal_ref_idc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue