Skip to content

Commit

Permalink
[Encode] Remove per frame SeqParams in packer
Browse files Browse the repository at this point in the history
Currently SeqParams are submitted per frame which is redundant. This
patch is to remove per frame SeqParams and keep this params submitted
with I frames or with BRC reset scenarios.
  • Loading branch information
chenhao5-Intel authored and gfxVPLsdm committed Sep 25, 2024
1 parent 0039e3a commit 118511f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,11 @@ void VAPacker::SubmitTask(const FeatureBlocks& blocks, TPushST Push)
auto& par = Glob::DDI_SubmitParam::Get(global);
par.clear();

par.push_back(PackVaBuffer(VAEncSequenceParameterBufferType, m_sps));
if (IsI(task.FrameType))
{
par.push_back(PackVaBuffer(VAEncSequenceParameterBufferType, m_sps));
}

par.push_back(PackVaBuffer(VAEncPictureParameterBufferType, m_pps));

if (!m_tile_groups_task.empty())
Expand Down

0 comments on commit 118511f

Please sign in to comment.