<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<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 wrapper for this work in a gstreamer pipeline. As a first step, I want to test this on a&nbsp; gstemare pipeline witth videotetsrc -&gt; filter -&gt;tvout. Here filter and tvout are hardware modules for which I will be writing the gstreamer plugins. However, in doing this I have run into following problem:</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2>1.&nbsp;I need to allocate physically continuous memory such that the hardware modules can do DMA on them. In this regard, I tried writing a buffer_allocation callback (with gst_pad_set_bufferalloc_fuction) for the filter sinkpad. If id this, can I assume that the GstBuffer pushed by videotestsrc will be allocated using this? If not how do I do this?<BR>2.&nbsp;the callback function has the prototype GstFlowReturn (*GstPadBufferAllocFunction)&nbsp; (GstPad *pad, guint64 offset, guint size,&nbsp; GstCaps *caps, GstBuffer **buf);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?<BR>Thanks in advance <BR>-Kugan</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><BR></FONT>&nbsp;</DIV></BODY></HTML>