Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Change Vpp resolution dynamically

kkbee
Beginner
255 Views

Does SDK support VPP change resolution(MFXVideoVPP_Reset) dynamically such as MFXVideoENCODE_Reset?

I call MFXVideoVPP_Reset and MFXVideoVPP_Reset return MFX_ERR_NONE.

But output resolution doesn't change.

Thanks

0 Kudos
1 Reply
Petter_L_Intel
Employee
255 Views
Hi kkbee, sorry for the late reply. Dynamic VPP output resolution change is supported without needing to call Reset() with the limitation that the dynamically selected resolution must be smaller than the resolution set during VPP initialization. If there is a need to change to greater resolution compared to Init resolution then VPP pipeline must be reinitialized and surfaces reallocated to the new resolution. The Media SDK manual is somewhat misleading when it comes to describing this usage. We will work to improve the manual to describe this better. To change to new output resolution at runtime the only thing you have to do is to modify the CropW and CropH values in the output surface Info field (mfxFrameSurface1). This will effectively resize the frame to the new desired resolution. Regards, Petter
0 Kudos
Reply