Create VPIImage out of NvBuffer with V4L2_MEMORY_USERPTR memory type

Hi there,

I can create VPIImage from NvBuffer, given it is has V4L2_MEMORY_MMAP memory type, and therefore has valid DMABUF FD, e.g.

vpiImageCreateNvBufferWrapper(buffer.planes[0].fd, &params, 0, &img)

However I cannot achieve this for NvBuffer which has V4L2_MEMORY_USERPTR memory type and therefore has no valid DMABUF FD:

buffer.planes[0].fd == -1

How can I wrap NvBuffer with V4L2_MEMORY_USERPTR into VPIImage?

This is not a supported case. The buffer has to be in V4L2_MEMORY_MMAP or V4L2_MEMORY_DMABUF.

Thank you for clarification.

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