<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US"><div>Le lundi 23 mai 2016 à 01:44 +0000, Bing Song a écrit :</div><blockquote type="cite">
<div class="WordSection1">
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Hi,<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Currently V4L2 element can import and export DMA FD memory. glimagesink/kmssink can import DMA memory. Is there common DMA GStreamer allocator? So we can use the common DMA
 allocator if driver can't export DMA FD. As I know, ion driver (Android develop it) which in Linux Kernel stage fold can allocate DMA memory. Do GStreamer can accept common DMA GStreamer allocator based on ion driver?</span></p></div></blockquote><div><br></div><div>A common DMA allocator is somehow an eutopia. It exist on Android since you generally can't dynamically connect other video devices, hence you can intersect the alignment requirement of all drivers  and hardware on the platform. That being said, an GST ion based DMABuf allocator for Android would definatly be acceptable. A fair use will be for vendor using the same kernel/userspace for both Android and generic Linux. For DMABuf FD wrapping, there is the GstDmabufAllocator object. It's not really an allocator, because it does not allocate, but it wraps the FD into GstMemory objects for you. Normally, we tend to put the exportation of DMABuf FD near the producer of large frames (like decoders). There even exist non-standard OMX hack to make the stack export DMABuf.</div><div><br></div><div>Nicolas</div><div>
</div></body></html>