dmabuf support in gst-omx

sudipj sudipj79 at gmail.com
Wed Nov 30 07:06:19 UTC 2016


Jeegar,

Seems like your pipeline is v4l2src ! omx encoder

I used a temporary workaround for omx v4l2 decoder to export dmabuf fd by
adding the handle in gst_omx_memory_allocator_alloc as below (but that was
2 years back).

gst_omx_memory_allocator_alloc (GstAllocator * allocator, GstMemoryFlags
flags,

buf->omx_buf->nAllocLen, align, 0, buf->omx_buf->nAllocLen);

{

  ...

   mem->buf = buf;

+  mem->fd = *((int *)buf->omx_buf->pOutputPortPrivate);


}


Also, “openmax” allocator is not included in
gst-plugins-base/gst-libs/allocators/ as dmabuf allocator (not sure if its
the same now), so could not cast GstOMXMemory,  need to add definition
locally in downstream element to retrieve the fd.


Sudip




On 30 November 2016 at 05:21, Jeegar32 [via GStreamer-devel] <
ml-node+s966125n4680945h26 at n4.nabble.com> wrote:

> Hello  Sebastian Dröge, Sudip Jain
>
> So its been 2 years since this post made and still i have same concern.
>
> Do gst-omx have now support of dma-export or dma-import (fd exported by
> v4l2src and used by gst-omx) ?
> Any discussion or ticket of patches available for this?
>
> Thanks,
> Jeegar Patel
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://gstreamer-devel.966125.n4.nabble.com/dmabuf-support-
> in-gst-omx-tp4668459p4680945.html
> To start a new topic under GStreamer-devel, email
> ml-node+s966125n966125h6 at n4.nabble.com
> To unsubscribe from GStreamer-devel, click here
> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=966125&code=c3VkaXBqNzlAZ21haWwuY29tfDk2NjEyNXw0NDQwMzY5MzY=>
> .
> NAML
> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/dmabuf-support-in-gst-omx-tp4668459p4680953.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161129/fcc1e1f1/attachment.html>


More information about the gstreamer-devel mailing list