frontend/va: Add h264 encode ip_period param
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456>
This commit is contained in:
@@ -207,6 +207,7 @@ vlVaHandleVAEncSequenceParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *con
|
||||
context->desc.h264enc.intra_refresh.need_sequence_header = 0;
|
||||
}
|
||||
|
||||
context->desc.h264enc.ip_period = h264->ip_period;
|
||||
context->desc.h264enc.intra_idr_period =
|
||||
h264->intra_idr_period != 0 ? h264->intra_idr_period : PIPE_DEFAULT_INTRA_IDR_PERIOD;
|
||||
context->gop_coeff = ((1024 + context->desc.h264enc.intra_idr_period - 1) /
|
||||
|
@@ -602,6 +602,7 @@ struct pipe_h264_enc_picture_desc
|
||||
struct pipe_h264_enc_dbk_param dbk;
|
||||
|
||||
unsigned intra_idr_period;
|
||||
unsigned ip_period;
|
||||
|
||||
unsigned quant_i_frames;
|
||||
unsigned quant_p_frames;
|
||||
|
Reference in New Issue
Block a user