Sharing data between MMAPI and VPI

I’ve been using Jetson Multimedia API to handle Jpeg image compression/decompression, and recently found VPI to be useful for processing decoded image data.
I want to know if there’s any efficient way to share data between Multimedia API and VPI, without manual copying using intermediate cpu buffer. Multimedia API seems to abstract image data with a nvbufsurface array fd, while VPIImage also uses fd/memory pointer to represent its internal data.

We have function for wrapping NvBufSurface to VPI image. Please refer to the document:

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