Can NvBufSurfaceMapEglImage be applied directly to the NvBufSurface of the input GstBuffer?
I want to know if I can avoid creating another NvBufSurface and doing a NvBufSurfTransform if all I want to do is performing CUDA computations directly on NV12 frames in CUDA memory.
Hi,
It should work. You can create EGLImage by calling NvBufSurfaceMapEglImage() and then call cuGraphicsEGLRegisterImage(), cuGraphicsResourceGetMappedEglFrame(). Sample code is at