<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 gstemare pipeline witth videotetsrc -> filter ->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. 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. the callback function has the prototype GstFlowReturn (*GstPadBufferAllocFunction) (GstPad *pad, guint64 offset, guint size, GstCaps *caps, GstBuffer **buf);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?<BR>Thanks in advance <BR>-Kugan</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><BR></FONT> </DIV></BODY></HTML>