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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user