Use downstream buffers

Wim Taymans wim.taymans at gmail.com
Thu May 19 23:40:26 PDT 2011


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
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list