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:
Sil Vilerino
2023-11-19 10:59:53 -05:00
committed by Marge Bot
parent 413b466aea
commit 0c1ff82bc8
2 changed files with 2 additions and 0 deletions

View File

@@ -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) /

View File

@@ -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;