dmabuf to obtain zero copy ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

dmabuf to obtain zero copy ?

Lusine
Hi Folks,
I want to have a plugin which acts as src and it will receive dma fd.
I need  to access the gpu memory with the given fd and give it to gpu encoder without cpu conversion:
  GstMemory *mem = gst_dmabuf_allocator_alloc(allocator, fd, nBufSize);

So my question:
Is it possible to achieve zero-copy with dmabuf? Does gstreamer copies the memory?