Different size input frames for mfxExtVPPComposite possible?

Different size input frames for mfxExtVPPComposite possible?

Hi,

I am testing the composite feature in VPP.

I configure the VPP to have 2 input streams, first one is 0, 0, 1920, 1080 and second is 0, 0, 1280,720 (x, y, w, h), params.vpp.In with 1290x1080 and params.vpp.Out with 1920x1080 also.

When i input 2 frames with size 1920x1080 it works perfectly and i get the second frame as an picture-in-picture on the first.

However when I try to input a 1280x720 as the second frame setting the mfxFrameInfo the output frame gets corrupted.

Is it possible at all to use different input sizes and if so, how should it be done?

Best Regards

 

 

AttachmentSize
Downloadtext/x-c++src main_2.cpp7.91 KB
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Solved, sort of.

Had not read the manual enough it seems,  a little RTFM gave me a solution.

Got it to work by using same size input frames, copy the smaller frames into the input frames and adjusting the CropWH.

I will call this a workaround until someone with greater wisdom tells me that this is in fact the right way to do it.

Best Regards

 

 

Hi elsparro,

A similar question has been asked before in the forum as well https://software.intel.com/en-us/forums/topic/344229
Your work around seems to be a decent way i.e. by changing the CropW and CropH, which is also mentioned as solution in the forum as well.
However, if you put frames of same resolution you can definitely integrate more vpp resize pipeline to resize the frame according to your needs before passing the frame to other function. 
 

Leave a Comment

Please sign in to add a comment. Not a member? Join today