Skip to content

Commit

Permalink
[Encode] Remove per frame SeqParams and only update for new ones
Browse files Browse the repository at this point in the history
There is VPL patch to remove per frame SeqParams and keep this params submitted with I frames or with BRC reset scenarios. Accordingly Driver only need to update new seq params.
  • Loading branch information
chenhao5-Intel authored and intel-mediadev committed Sep 25, 2024
1 parent a781e11 commit 5ac4de1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ namespace encode

EncoderParams *encodeParams = (EncoderParams *)params;

ENCODE_CHK_STATUS_RETURN(SetSequenceStructs());
// If new seq, need to set sequence structs
// If RATECONTROL_CQL, need to update quality and bitrate .etc
if (encodeParams->bNewSeq || m_basicFeature->m_av1SeqParams->RateControlMethod == RATECONTROL_CQL)
{
ENCODE_CHK_STATUS_RETURN(SetSequenceStructs());
}

const auto& seqParams = *m_basicFeature->m_av1SeqParams;

Expand Down

0 comments on commit 5ac4de1

Please sign in to comment.