[gst-devel] Use of own buffer_alloc function

Felipe Contreras felipe.contreras at gmail.com
Thu Mar 12 08:29:16 CET 2009


On Wed, Mar 11, 2009 at 3:18 PM, Daniel James Laird
<daniel.j.laird at nxp.com> wrote:
> Okay, many thanks for the reply.
>
> So if I understand this correctly the filesrc supplies the buffer to the demux
> The demux then 'demuxes' this data and passes it to the downstream component.  I.E a decoder.
>
> The demux does not ask the sink for a buffer to output the 'demuxed' data into.
>
> Is there anyway that I can get DMA to work then?
> Because if the demux is not going to ask for buffers then I cannot provide a buffer from a memory region that can be dma'd,.
>
> I really would like to be able to get the demux to directly demux data into memory buffers that I provide and then can be dma'd to my decoder.
>
> As this is all new I am probably not quite getting it!

Some demuxers do pad_alloc, but probably they are not properly designed.

The filesrc is probably accessing the file with mmap, and doing
pad_alloc on the demuxer. AFAIK you can't use both the mmap of a file
and DMA of the sink at the same time.

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list