Skip to content

Commit

Permalink
Remove the limitation of VPP resolution reset.
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang, Furong <[email protected]>
  • Loading branch information
FurongZhang committed May 22, 2023
1 parent ad1c93f commit fe70a03
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions _studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,14 +1140,6 @@ mfxStatus VideoVPPBase::Reset(mfxVideoParam *par)
return MFX_ERR_INCOMPATIBLE_VIDEO_PARAM;
}

/* in general, in/out resolution should be <= m_initParam.resolution */
if( (par->vpp.In.Width > m_InitState.In.Width) || (par->vpp.In.Height > m_InitState.In.Height) ||
(par->vpp.Out.Width > m_InitState.Out.Width) || (par->vpp.Out.Height > m_InitState.Out.Height) )
{
return MFX_ERR_INCOMPATIBLE_VIDEO_PARAM;
}
//-----------------------------------------------------

bool isCompositionModeInNewParams = IsCompositionMode(par);
// Enabling/disabling composition via Reset() doesn't work currently.
// This is a workaround to prevent undefined behavior.
Expand Down

0 comments on commit fe70a03

Please sign in to comment.