I have implemented OpenCV processing in the 12_camera_v4l2_cuda example by passing the CUeglFrame pPitch to a GpuMat constructor. However, this modifies the existing buffer.
I have some extra processing in OpenCV to do, after which I have a final GpuMat that is not mapped to any existing NvBuffer. I can create a new NvBuffer for my output, but I need to copy/map my GpuMat to that NvBuffer so that I can pass it into a NvVideoEncoder later.
Would appreciate any assistance in this matter.