Potentially yes, you could save one memcpy by doing that. No idea of exactly how much you would gain by doing that for compressed data buffers, might be worth a try :)<br><br clear="all">Julien Moutte,<br>FLUENDO S.A.<br>
<br><br><div class="gmail_quote">On Tue, Dec 22, 2009 at 11:15 AM, Lionel Landwerlin <span dir="ltr"><<a href="mailto:llandwerlin@gmail.com">llandwerlin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well...<br>
<br>
I'm expecting mpegts data from various sources (file/http/udp/etc...)<br>
to be transfered through dma to the hardware demuxer.<br>
Does it make sense ?<br>
<br>
--<br>
<font color="#888888">Lionel Landwerlin<br>
</font><div><div></div><div class="h5"><br>
On Tue, Dec 22, 2009 at 11:04 AM, Julien Moutte <<a href="mailto:julien@moutte.net">julien@moutte.net</a>> wrote:<br>
> If your source element directly produce video frames then it makes sense to<br>
> implement such allocation functions.<br>
><br>
> As most source elements are producing compressed data (filesrc,<br>
> demuxers,etc...), it does not really make sense to write into a downstream<br>
> allocated buffer.<br>
><br>
> Hope this helps,<br>
><br>
> Julien Moutte,<br>
> FLUENDO S.A.<br>
><br>
><br>
> On Tue, Dec 22, 2009 at 10:47 AM, Lionel Landwerlin <<a href="mailto:llandwerlin@gmail.com">llandwerlin@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi gstreamer-devel,<br>
>><br>
>> I'm interested in writing a bunch of plugins/elements to get gstreamer<br>
>> perform well enough to display SD/HD videos on a set top box chip.<br>
>> >From my firsts investigations, it seems quite possible and development<br>
>> should start quite soon. However, after reading a few article about<br>
>> gstreamer on TI OMAP chips (this one in particular<br>
>><br>
>> <a href="http://www.eetimes.com/news/design/showArticle.jhtml?articleID=193401461&pgno=2" target="_blank">http://www.eetimes.com/news/design/showArticle.jhtml?articleID=193401461&pgno=2</a><br>
>> ),<br>
>> I'm wondering why most of the source elements does not use the<br>
>> gst_pad_alloc_buffer function.<br>
>><br>
>> In my case, this would be quite interesting to avoid a memory copy and<br>
>> to directly write into a contigeous dma mmapped buffer.<br>
>><br>
>> Is it something to be done ?<br>
>> Is there a very few interest from the community ?<br>
>><br>
>> Thanks in advance for your responses.<br>
>><br>
>> --<br>
>> Lionel Landwerlin<br>
>><br>
>><br>
>> ------------------------------------------------------------------------------<br>
>> This SF.Net email is sponsored by the Verizon Developer Community<br>
>> Take advantage of Verizon's best-in-class app development support<br>
>> A streamlined, 14 day to market process makes app distribution fast and<br>
>> easy<br>
>> Join now and get one step closer to millions of Verizon customers<br>
>> <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
>> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Verizon Developer Community<br>
> Take advantage of Verizon's best-in-class app development support<br>
> A streamlined, 14 day to market process makes app distribution fast and easy<br>
> Join now and get one step closer to millions of Verizon customers<br>
> <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
><br>
<br>
------------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Verizon Developer Community<br>
Take advantage of Verizon's best-in-class app development support<br>
A streamlined, 14 day to market process makes app distribution fast and easy<br>
Join now and get one step closer to millions of Verizon customers<br>
<a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>