<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> </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"> 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"> this on a gstemare pipeline witth </font><font face="Arial" color="#000000" size="2">videotetsrc -> filter ->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> </div>
<div><font face="Arial" color="#000000" size="2">1. I need to allocate physically continuous memory such that the hardware</font></div>
<div><font face="Arial" color="#000000" size="2"> 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. the callback function has the prototype </div>
<div>GstFlowReturn (*GstPadBufferAllocFunction) (GstPad *pad, </div>
<div>guint64 offset, guint size, GstCaps *caps, GstBuffer **buf);</div>
<div>In the callback function, I am doing the follwing<br>a. malloc memory for GstBuffer structure<br>b. create a copy of GstCaps and pointing to GstBuffer <br>c. set the offset for the GstBuffer<br>d. 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">