<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 28 déc. 2020 12 h 45, Gururaj <<a href="mailto:gururajspeaks@gmail.com">gururajspeaks@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
I have created a gstreamer plugin which acts as a source element for camera<br>
data.<br>
In that plugin i have started the camera device in DMA buf mode using v4l2<br>
api and drm api's<br>
I'm able to get the data using the drmfd with the below ioctl call:<br>
ioctl(drmfd, DRM_IOCTL_MODE_MAP_DUMB, &arg);<br>
<br>
But i want to pass the fd to downstream elements<br>
<br>
Can someone please hekp on how can i pass this fd to downstream elements so</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
that they can use that fd for accessing</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Have you looked at existing element, v4l2src already produce dmabuf by default. It uses the GstDMABufAllocator to wrap the FD, this is a common class that let downstream know the type of memory and retrieve the FD without mapping.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> the dma buffer</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>