<div class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-FAMILY: Arial">[Sending this again from subscribed e-mail. Sincere Apologies if the </span></div>
<div class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-FAMILY: Arial">other mail also reaches the list]</span></div>
<div>&nbsp;</div>
<div>
<div><font face="Arial" color="#000000" size="2">Hi All,</font></div>
<div><font face="Arial" color="#000000" size="2">I have a hardware implementation of a filter and need to write a gsteramer</font></div>
<div><font face="Arial" color="#000000" size="2">&nbsp;wrapper for this work </font><font face="Arial" color="#000000" size="2">in a gstreamer pipeline. As a first step, I want to test</font></div>
<div><font face="Arial" color="#000000" size="2">&nbsp;this on a&nbsp; gstemare pipeline witth </font><font face="Arial" color="#000000" size="2">videotetsrc -&gt; filter -&gt;tvout. Here filter </font></div>
<div><font face="Arial" color="#000000" size="2">and tvout are hardware modules for which I will be writing the gstreamer </font></div>
<div><font face="Arial" color="#000000" size="2">plugins. However, in doing this I have run into following problem:</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font face="Arial" color="#000000" size="2">1.&nbsp;I need to allocate physically continuous memory such that the hardware</font></div>
<div><font face="Arial" color="#000000" size="2">&nbsp;modules can do DMA on them. In this regard, I tried writing a buffer_allocation </font></div>
<div><font face="Arial" color="#000000" size="2">callback (with gst_pad_set_bufferalloc_fuction) for the filter sinkpad. If id this, </font></div>
<div><font face="Arial" color="#000000" size="2">can I assume that the GstBuffer pushed by videotestsrc will be allocated </font></div>
<div><font face="Arial" color="#000000" size="2">using this? If not how do I do this?</font></div><font face="Arial" color="#000000" size="2">
<div><br>2.&nbsp;the callback function has the prototype </div>
<div>GstFlowReturn (*GstPadBufferAllocFunction)&nbsp; (GstPad *pad, </div>
<div>guint64 offset, guint size,&nbsp; GstCaps *caps, GstBuffer **buf);</div>
<div>In the callback function, I am doing the follwing<br>a.&nbsp;malloc memory for GstBuffer structure<br>b.&nbsp;create a copy of GstCaps and pointing to GstBuffer <br>c.&nbsp;set the offset for the GstBuffer<br>d.&nbsp;allocate physically continuouse memory and point it to GstBuffer data
<br>Is it sufficient or am is missing anything?</div>
<div><br>Thanks in advance <br>Kugan</div></font></div>
<div><font face="Arial" color="#000000" size="2"><br></font></div><br clear="all">