From fe70a03e0bacad4bc7b96a168b5dc290f7ca95cf Mon Sep 17 00:00:00 2001 From: "Zhang, Furong" Date: Mon, 22 May 2023 13:56:44 +0800 Subject: [PATCH] Remove the limitation of VPP resolution reset. Signed-off-by: Zhang, Furong --- _studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp b/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp index de2f0f9150..673f4dfca4 100644 --- a/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp +++ b/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp @@ -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.