• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 5.1
• Issue Type( questions, new requirements, bugs) question
Hi there,
I hope you are having a good day.
I am currently working on developing a custom DeepStream plugin with C++. I started studying gstdsexample introduced here and available at sources/gst-plugins/gst-dsexample
on the SDK.
In the code, there is a step when we use cudaMallocHost()
to allocate a buffer on the host memory. Then we use a cv::Mat
and cv::cvtColor
to convert the RGBA input to RGB, so that it can be fed to the example algorithm. We also do mapping and unmapping with NvBufSurfaceMap
and NvBufSurfaceUnMap
. This has been confusing me. Why can’t we just use cv::cuda::GpuMat
instead and do the conversion on GPU as well? This way we also get rid of the whole map/unmapping
Best.