Sharing data between MMAPI and VPI

Hello,
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.

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

https://docs.nvidia.com/vpi/group__VPI__Image.html#ga3e7cf2520dd568a7e7a9a6876ea7995c

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