Best way to copy or clone an image in VPI

Hello,
I’ve been using VPI for a while now, and frequently need to clone an image to have a copy to work with so the original can be un-blocked while I do a heavy operation on it. Currently, whenever this is needed, I use

vpiSubmitConvertImageFormat(stream, backend, src, dest, params)

To do the cloning. This works fine, but got me wondering if there is a more efficient way to clone images using the VPI API.

Thanks!

Hi,

The command targets for color or format conversion.
Did you use it as copying?

Thanks.

Yes, There doesn’t seem to be any built-in function for copying, so I use this function with the source image and destination image being the same format.

It works, but I’m curious if there is a better way.

Hi,

It should be the optimal call already.
When the format between input and output is identical, VPI will copy the image directly without extra calculation.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.