Copy OpenCV GpuMat data to an NvBuffer

Hi,
By referring to this post:
c++ - OpenCV - Copy GpuMat into cuda device data - Stack Overflow

Should be able to get CUDA pointer of a GpuMat and then call cudaMemcpy().