frontends/va: Store picture type for buffers in encode DPB

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32479>
This commit is contained in:
David Rosca
2024-12-04 12:12:45 +01:00
committed by Marge Bot
parent c2f8f20ef7
commit cd8ad03364
2 changed files with 3 additions and 0 deletions
@@ -262,6 +262,8 @@ vlVaHandleVAEncSliceParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *contex
context->desc.h264enc.picture_type = PIPE_H2645_ENC_PICTURE_TYPE_SKIP;
}
context->desc.h264enc.dpb[context->desc.h264enc.dpb_curr_pic].picture_type = context->desc.h264enc.picture_type;
context->desc.h264enc.pic_ctrl.enc_cabac_init_idc = h264->cabac_init_idc;
context->desc.h264enc.dbk.disable_deblocking_filter_idc = h264->disable_deblocking_filter_idc;
context->desc.h264enc.dbk.alpha_c0_offset_div2 = h264->slice_alpha_c0_offset_div2;
+1
View File
@@ -762,6 +762,7 @@ struct pipe_h264_enc_dpb_entry
bool is_ltr;
struct pipe_video_buffer *buffer;
bool evict;
enum pipe_h2645_enc_picture_type picture_type;
};
struct pipe_h264_enc_picture_desc