How does the tee element split data to multiple pads?

bboyavatar liubing204 at gmail.com
Thu Nov 15 16:38:38 PST 2012


Hi, Thanks so much for your reply! Do you mean that if I link the tee
element to gstomx component, such as omx_videomixer, it will do memcpy to
fill the input buffer of omx_videomixer?

2012/11/16 Stirling Westrup [via GStreamer-devel] <
ml-node+s966125n4656933h53 at n4.nabble.com>

> On Mon, Nov 12, 2012 at 9:11 PM, bboyavatar <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656933&i=0>>
> wrote:
> > Hi, I have a question about the tee element. It is said that this
> element
> > splits the input data and feeds multiple output pads with the same data.
> I
> > read the sourc code and find that it uses gst_pad_push_data()function to
> > feed data to the srcpads. So, I wonder if it does the memcpy or just
> feeds
> > the srcpads with the buffer reference.
> > Could someone answer me? Thanks so much!
> >
>
> That's a more complex question than it sounds like. Whenever possible
> gstreamer passes references to buffers rather than using memcpy, but
> there are cases where this won't work. For example, if your tee
> connects to sinks that produce hardware buffers to fill out, then
> gstreamer will do memcpy operations to fill the hardware buffers.
>
> --
> Stirling Westrup
> Programmer, Entrepreneur.
> https://www.linkedin.com/e/fpf/77228
> http://www.linkedin.com/in/swestrup
> http://technaut.livejournal.com
> http://sourceforge.net/users/stirlingwestrup
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4656933&i=1>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gstreamer-devel.966125.n4.nabble.com/How-does-the-tee-element-split-data-to-multiple-pads-tp4656880p4656933.html
>  To unsubscribe from How does the tee element split data to multiple
> pads?, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656880&code=bGl1YmluZzIwNEBnbWFpbC5jb218NDY1Njg4MHwtMTA0NTI2MTQ5MQ==>
> .
> NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
刘冰




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-does-the-tee-element-split-data-to-multiple-pads-tp4656880p4656940.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121115/6a13ee4c/attachment-0001.html>


More information about the gstreamer-devel mailing list