buffer passing through pads .

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

buffer passing through pads .

Sudarshan Bisht
Hi All ,
               I want to know does Gstreamer pass buffers from one plugin to another using pads , what internally pad does in order to send buffer to next plugin's pad .
 I mean is it some sort of shared buffer mechanism  ?    

 
--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: buffer passing through pads .

lrn-2
sudarshan bisht wrote:
> Hi All ,
>                I want to know does Gstreamer pass buffers from one plugin to
> another using pads , what internally pad does in order to send buffer to
> next plugin's pad .
>  I mean is it some sort of shared buffer mechanism  ?
>
>  
1) Some elements will try to ask downstream elements to allocate the
buffer for them. Sinks usually do. This allows GStreamre to eliminate
unnecessary buffer copying.
2) Whenever you do gst_pad_push, you're losing the buffer you've pushed
(if you want to keep it around, _ref() it). Some elements can do
in-place transformations, without creating a new output buffer from
input buffer. In extreme cases (pipelines) a single buffer produced
(allocated) by the source element will travel downstream all the way
without actually moving in memory, and will be copied only by the sink
element.
3) You can run gst-launch-0.10 in gdb, break on gst_pad_push() and see
for yourself how exactly does it work.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel