I want to using nvv4l2h265enc to encode the video. I am currently using CUDA inside the Gstreamer plugin in order to accelerate the process. However, I need to copy the memory from host to device and after device process copy it back to host. Then I need to use nvvidconv plugin to convert gstreamer buffer into nvvidia dwa buffer. Finally, I can feed the data into nvv4l2h265enc plugin.
I am wondering does CUDA divice memory and nvidia dwa buffer share the same memory address? If so, I do not need to copy over and over again. I can import CUDA device memory into nvv4l2h265enc plugin directly?
Thank you very much.