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.fd, ¶ms, 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.fd == -1
How can I wrap NvBuffer with V4L2_MEMORY_USERPTR into VPIImage?