Use downstream buffers

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

Use downstream buffers

ak.ashwini
Hi All,
 
I want to use downstream buffer in my app.
 
I mean, i want save on the copy efforts at my sink element. I want the decoder to write data into the buffer which is provided by my sink, not the buffer allocated by decoder. This will save me a copy operation from decoder buffer to sink buffer.
 
Is such a mechanism available in GStreamer? If yes can you please point me to a example or function thru which such happens?
 
Thanks,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Use downstream buffers

Wim Taymans
On 05/20/2011 08:33 AM, Ashwini Sharma wrote:
> Hi All,
> I want to use downstream buffer in my app.
> I mean, i want save on the copy efforts at my sink element. I want the
> decoder to write data into the buffer which is provided by my sink, not
> the buffer allocated by decoder. This will save me a copy operation from
> decoder buffer to sink buffer.
> Is such a mechanism available in GStreamer? If yes can you please point
> me to a example or function thru which such happens?

Check out the buffer_alloc function and gst_pad_alloc_buffer(). An
example element would be ximagesink.

Wim

> Thanks,
> Ashwini
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel