How convert cv::GPUmat to Nvbuffer or dmabuf_df?

Hi

I want to draw picture files(png, jpeg) as Picture in Picture using cuda and nveglrenderer it…
Using opencv library is a way I am trying.
But opencv rendering buffer GPUmat cannot be inputted to nveglrenderer->render.
How convert cv::GPUmat to Nvbuffer or dmabuf_df?

Hi,
Converting cv::GpuMat to NvBuffer may not work, but converting NvBuffer to cv::GpuMat should work. Please refer to this post